Replies
Hello Quan Mac,
Thank you for posting in our community.
Let solve the issues one by one.
First, if you want to change something in the cell layout or styling the proper place for this should be in CSS or in JS.
If the target cell that need to be styled is placed after the depended cell (which value you are using to determine whether to trigger this styling or not) in the row, there is a chance to handle this styling only in the CSS. There is a CSS selector for a sibling DOM element (https://developer.mozilla.org/en-US/docs/Web/CSS/Adjacent_sibling_selectors). It depends on the logic you rely on.
If the logic is too complicated, the you can use JS code to handle this issue by adding some custom css class and define your custom styles in it.
Please, send more details about what is the logic in your scenario to determine whether the target cell should be styled.
Hi Ravikumar Tamilarasu,
Thank you for posting in our community!
In order to resolve your issues we have to investigate it from all point of view, not only as a widget problem. That is why we will need some isolated working sample of your project where the issue can be observed. That means small project or website that contains only the needed files and code for the issue reproduction. Nothing superfluous. Please, send it as an attachment. Once we receive it we will be able to continue with our investigation.
Note: Additionally, I would like to let you know that Monday (May, 23rd) and Tuesday (May, 24th) are holidays. So Wednesday is the first working day of the next week.
Hi Jdag,
Thank you for post in our community!
There is no problem to use empty string if you want to achieve blank value in the dropdown editor. I'm sending you a sample that demonstrate such behavior.
Please, let me know whether you need any further assistance!
Hi Kyle Wingate,
I investigated your project and found that when you call JS method clearContent you execute $("#htmlEditor").empty(); which "Remove all child nodes of the set of matched elements from the DOM." (source – https://api.jquery.com/empty/).
But after executing this method the igHtmlEditor is still existing. And when you try to re-create it in loadHTMLEditor method, actually it does not re-create it, but just re-initialize it. It means that it does not call _create() method of the wigdet, but only _init(). (More information about these methods: _create, _init)
And here is the root of the problem, because we create the inner document in the _create() method and in the _init() it is accessed and used. Once you try to re-initialize it, without re-create it, you actually try to access element that is not created. This causes the error.
The fix for this is to destroy the widget
$("#htmlEditor").igHtmlEditor("destroy")
instead of just remove its child nodes with $("#htmlEditor").empty();
Hope this helps you!
Hi Kyle Wingate,
Thank you for using Infragistics products!
I have a problem to run your code because of missing parts of it: CRMScript, _CrmScriptRepository…
It will be more convenient and easier to investigate if you send a small sample of your project as attachment, where the issue is isolated. Sending of code is acceptable when you want to show only few lines. Otherwise, often some parts of the project are missing and it is impossible to assemble working project (as it is in your case). As soon as we receive working sample, we can start investigate the issue you complaining of.