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
225
Binding values of complex object to grid after add/edit row dialog closes
posted

Hi Team,

I am trying to add/update a row to grid using a dialog. I bind a set of complex objects to the grid and for adding/editing a new row, I open a dialog.

For binding, I use: 

column.For(x => x.Status).DataType("object").HeaderText("Status").FormatterFunction("function(val){return val.Name;}");

This way when initially grid binds, the complex object displays properly.

When I open a edit pop up, it does not display the same value in the dropdown (populated using Viewbag). How to fix this? Also, when I select a value and try to rebind the grid after closing a dialog the complex object values do no rebind. How to display the selected value in the grid?

Another issue is of date picker control. In the same dialog I have date, I want to display in yyyy-MM-dd format. I use a datepicker control, the calendar opens in the back of the input text box. Tried to increase the z-index using the below code, but didn't work.

.ui-datepicker {
z-index: 1100 !important;
}

Also, it is not displaying the selected date back in the grid.

Expecting a fast reply on this.

Thank you.

-Regards,

Agraj

Parents
No Data
Reply Children