Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
IgGrid Generate primary key column event not fired
posted

Hi Guys,

I've a scenario where I need to set my own primary key when a new row is added. I tried to watch for this event "iggridupdatinggenerateprimarykeyvalue", but for some reasons this event is fired only when the column is shown, i.e. this will not be fired if it's Hidden. That's weird. I don't want to show some primary key column to the user which doesn't make any sense. so I tried to come up w/ work around such as

1) show the column and set the width to 1px - didn't work. But interestingly, if you set the width="10px" it worked. so I'm not sure what's going in the width atrribute.

2) Alternatively, i tried to do this in row adding event "iggridupdatingeditrowadding", but for reason this event is not fired at all - BUG!!

Now I ran out of options and I need to find a way out to this problem. can you someone please reply ASAP?

Thanks

Parents
No Data
Reply
  • 19693
    posted

    Hello Karthik ,

    Thank you for posting in our forums.

    Can you share which version(build) of our jQuery components do you use?

    I tried to replicate the behavior with the RTM build of v12.2 but with no avial.

    Both rowAdding and generatePrimaryKeyValue events are fired (in this order) when adding a new row is performed.

    I am attaching a small isolated sample.

    Hope hearing from you.

    editing.zip
Children