on 11-21-2014 3:15 PM
Hi,
I am passing the query column names dynamically in JavaScript to query object. Display and query are already created. In query template I have only [Param.1]. Display template is configured with query template.
I am able to display iGrid with different column names. I want to set one column as check box depending up on the query value 0 or 1. (In attached picture, I want to display check box for RUSH either checked or unchecked depending upon the column value).
Please tell me how to set check box using JavaScript.
Thanks,
Raman N
Hello Raman,
Please try using below code sample,
document.gridName.getGridObject().setShowColumnAsBoolean(int, boolean)
Where, "int" is your column number and "boolean" value is to set it as Boolean or not, setting it to "true" shows column with checkboxes else not.
Hope this helps!
Regards,
Adarsh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raman,
I second Adarsh here.
And also if i remember it correctly, you get this option in igrid layout as well. You can mark it checked.
Best regards,
Swaroop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.