Hello,
I am using Iggrid where I have to use id for each row and each column. I an getting an error that "property is undefined". I saw in a forum that is showing "HTML attributes are not allowed inside Iggrid".
can you please suggest how i can achieve this .
Thanks and Regrds,
Amita
Hello Amita,
It was hard for me to understand what you are struggling with. Please clarify the following for me:
1) Are you using the igGrid jquery controlor you are using the WebDataGrid ?
2) What do you mean you have to use id ? Every row has index that you can access
3) What code do you execute when you receive this error ?
After you answer these I will be glad to help you with your issue. Looking forward to hearing from you.
Hi Hristo,
Thanks for your quick response.
I am using Ignite UI IgGrid Jquery control.
Actually previously I was using HTML table . I was using ID attribute of each row and columns in Javascript for CRUD operations. Currently for some requirement changes, I have to use Iggrid instead of HTML table. If we use index of row instead of Row ID , code changes will be massive.
So I want to confirm whether it is possible to set row ID in Ignite UI IgGrid Control.
Please let me know if u need any further information.
Regards,
Basically the igGrid rows can be identified by the following properties:
rowId - identifier of row such as value at primaryKey-column of igGrid. For example if you have column "ProductID" and the give product id is 45, then the rowId for that record/row will also be 45
rowIndex - index of row within dataSource of grid - the first row will have rowIndex = 0
However these can not be set, you can only get their values. If you specify why do you need them (what do you want to the with the rows) I will be able to suggest an approach.
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
Hi,
Thanks for the response.I have used the rowindex instead of id.
Thanks
HI Amitha,
I am glad this worked for you.