in my webdatagrid
in page load of server side
List<Supp> Details = new List<Supp>(); Details.Add(new Supp() { srno = 1, service_name = "--Select--", service_id = 0, country_name = "--Select--", country_id = 0, destination = "--Select--", curr_code = "--Select--", group_name = "--Select--", from_date = null, to_date = null, category = "", budget_cost = 0.00, superior_cost = 0.00, premium_cost = 0.00, other_service_cost = 0.00, star_rating = "", check_in_time = null, check_out_time = null, rooms = 0, facility = "", destination_id = 0, curr_id = 0, pricing_group_id = 0 }); // service_id = 0, country_id = 0, destination_id = 0, curr_id = 0, pricing_group_id = 0 Session.Add("MyList", Details);
i am maintaining this for blank row should be created. in new mode i have created client side event of cell existed edit mode on this i have
var ID = Masters_Supplier_dtl.SrNo(count); var values = [parseInt(ID.value), "--Select--", "--Select--", "--Select--", "--Select--", "--Select--", null, null, "", 0.0, 0.0, 0.0, 0.0,"", null, null, 0, "",0,0,0,0,0]; //null, null, "", 0.0, 0.0, 0.0, 0.0, grid.get_rows().add(values);
by this grid rows increase by 1
but in edit mode it not works properly
Hello Reshma ,
I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Thank you for posting in our forum.
In order to look into this I’ll need some more detailed information.
Are you invoking the code for adding a new row inside the ExitedEditMode client side event of the grid?
Also do you handle the RowAdding event of the grid and update the data source in it?
It would also be helpful to know exactly which version of Net Advantage you’re currently using.
If you could share the mark-up you’re using for the grid that would also be helpful.
I’m looking forward to your reply.
Developer Support Engineer II