Hello everyone,
I have a basic doubt. When i was looking for ar apo reference so i saw three things to initialise, to get and to set values . So i wanted to ask to set or set any features do we have to initialise it first always? And when we use type picker , or combo it gets auto instantiated?.
Hello Rohit,
I have been looking into your question and can you please clarify which API references do you refer to exactly?
Based on the following question:
Rohit Rawat said:And when we use type picker , or combo it gets auto instantiated?
I assume you are referring to the igGridFiltering feature and its options. Could you please confirm if my impression is correct? If not, please elaborate further on your requirements.
Let us take the caseSensitive option as an example. The API reference documentation states the following code sample:
// Initialize $("#grid").igGrid({ features: [ { name : "Filtering", caseSensitive : true } ] }); // Get var caseSensitive = $("#grid").igGridFiltering("option", "caseSensitive"); // Set $("#grid").igGridFiltering("option", "caseSensitive", true);
The above code snippets demonstrate that you could enable the filtering case sensitivity initially upon initialization:
$("#grid").igGrid({ features: [ { name : "Filtering", caseSensitive : true } ] });
Or at runtime:
$("#grid").igGridFiltering("option", "caseSensitive", true);
And you could also get the value of this option at runtime:
var caseSensitive = $("#grid").igGridFiltering("option", "caseSensitive"); // returns true or false
However, as mentioned in the following forum post here, in order to set the caseSensitive option at run time, the igGridFiltering feature should be initialized first:
$("#grid").igGrid({ features: [ { name : "Filtering", } ] });
In order to use the igGridFiltering feature and its options/methods/events, it must be initialized in the features option first. This is true for all the other features as well (sorting, paging, updating, etc.).
Additionally, could you please clarify what do you mean with:
When setting the editorType to a specific editor, the respective igEditor will be created.
text - An igTextEditor will be created.
mask - An igMaskEditor will be created.
date - An igDateEditor will be created.
datepicker - An igDatePicker will be created.
timepicker - An igTimePikcer will be created.
numeric - An igNumericEditor will be created.
checkbox - An igCheckboxEditor will be created.
currency - An igCurrencyEditor will be created.
percent - An igPercentEditor will be created.
combo - An igCombo editor is created.
rating - An igRating editor is created.
Please review the provided resources and let me know if you need any further information.
Sincerely, Riva Ivanova Associate Software Developer