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
770
InitializeRow not fired?
posted

Hi guys.

Currently I am doing a form for user to select material with wingrid. So I will have 2 bands, first band to show the needed material and a button to trigger a from to select available material.

Then the selected material will be in second band.

On the first band, I will show the remaining quantity. If the remaining is 0, I will change the background color to Green, else Red.

For example, Material A needs 50kg, I will select from available batch, Batch A.

At this point the InitializeRow works properly.

But when I selected 2 batches for Material A, say Batch A and Batch B, the InitializeRow event will not be fired.

Please assist.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    I'm having some trouble understanding the exact circumstances under which the event is not firing.

    It sounds like you are saying that if you add two child rows to a parent row, InitializeRow does not fire. But for which row are you expecting the event to fire?

    InitializeRow fires any time a row is created and also when a value in that row is modified. If, when you add your child rows, you are also modifying the remaining material count, which is a cell in the parent row, then the InitializeRow even should fire. If it is not firing, then that may be a bug. But it's hard to tell with so little information.

    What version of hte grid are you using?

    Can you post a small sample project which demonstrates changing a value in a cell and the InitializeRow event failing to fire?

Children
No Data