jQWidgets Forums
Forum Replies Created
-
Author
-
March 7, 2013 at 6:43 am in reply to: Selected value changes as i move out of Dropdownlist cell in Grid Selected value changes as i move out of Dropdownlist cell in Grid #16438
Hi Peter,
The Issue is with dropdownlist,
i have 2 items in dropdown, even if i select the 2nd item. the field shows value as ‘0’ instead of ‘1’.
Please help.
Thanks,
Keshavan
March 7, 2013 at 6:39 am in reply to: Selected value changes as i move out of Dropdownlist cell in Grid Selected value changes as i move out of Dropdownlist cell in Grid #16437Hi Peter,
Yes, i have those methods, will check my code and if problem persists will came back to you.
Thanks,
Keshavan
March 7, 2013 at 6:19 am in reply to: Selected value changes as i move out of Dropdownlist cell in Grid Selected value changes as i move out of Dropdownlist cell in Grid #16431Hi Peter,
ok, but as i move to next cell after selecting an item , the selected value in the first cell(drop down) is changing and DB is not getting updated even as i enter remaining cell values for the row in grid.
Issue is w.r.t Dropdownlist selection. is not getting assigned to my grid cell.
please help.
Thanks,
Keshavan
Hi Peter,
I have sorted it out, just made following changes in ‘Prepare sample data’, (part of earlier code i had mailed you)
Initialize all string data type with ” ” and number data type with 0. one can now add a row and insert in to db without
problems i had mentioned in my post.var generaterow = function (id) {
var row = {};
row[“CompanyId”] = id;
row[“CompanyName”] = ” “;
row[“Phone”] = ” “;
row[“AddressLine1″] = ” “;
row[“AddressLine2″] = ” “;
row[“AddressLine3″] = ” “;
row[“Pin”] = 1;
row[“Other”] = ” “;
row[“GroupId”] = 1;
return row;
}make sure controller methods are in try catch.
Thanks,
Keshavan
Hi Peter,
I included code to catch exception in the Update method of controller, Now I am able to enter values in all cells of the newly added row,
but the Db is not accepting the row, (even after entering values in all the cells of the added row). I didn’t make any other code change.Please give your thoughts as to why DB is not getting updated ?.
—
Earlier i tried modifying code based on Popup edit as suggested it didn’t work, scenario in popup edit is different as the popup fields gets populated from main grid before editing takes place, unlike in my present case where the User is trying to enter values in the newly created row.
Thanks,
Keshavan
February 28, 2013 at 1:35 pm in reply to: addrow-how 2 prevent insert code from running until all cols r entrd for new row addrow-how 2 prevent insert code from running until all cols r entrd for new row #16052Hi Peter,
Thanks for the lead, i will look in to the same and complete it.
Appreciate very quick responses from your end.
Best Regards,
Keshavan
February 28, 2013 at 1:23 pm in reply to: addrow-how 2 prevent insert code from running until all cols r entrd for new row addrow-how 2 prevent insert code from running until all cols r entrd for new row #16048Hi Peter,
Thanks for quick response, can u give me some sample code / pointers for the same?
Best Regards,
Keshavan
-
AuthorPosts