I my asp.mvc app I am using jqGrid to add/edit account addresses by using the jqGrid modal dialog box. The problem is that I do not want to use the loaderror event as this means I have to throw an exception on my server for it to trickle up for two reasons, one that when performing server side validation on user input I do not want to throw an exception as it will write an entry into my DB error log, which is not right as I only want to write unhandled exception to it and not user input validation issues, second I do not want to reveal the server side error to my user in an alert and or new window. What I need is for the formerror “.modalwin.jqmWindow .modalcontent table.EditTable tr#FormError” table row to also work or be leveraged for errors not just in search but also for editing and adding ne records via modal dialog box.
I tried to poke around in the jqGrid code and although I have it working for searches still have to edit jqGrid for editing/adding records. What I am doing is adding a “Message property to the jsonReader that maps to an additional property in my returned json data string, which contains a list of user errors in an unnumbered list format, that I want to throw into the formError row. I know you are working on getting something like this into the next release but I don’t know when this will possibly be done and if it is a long way off is there a way for me to do it now; i.e. do you have some pointers for me on how/where in the code to look?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top