Forum
11:49
Hi Tony!
I´m using the 3.6 only Custom Input in Inline Edit. However, I´m having some trouble with it.
I have two cols sharing the same Custom Input function. But when saving the Row, I get the error
function 'custom_value' undefined via the info_dialog.
I think it triggers the exception because line 119 in grid.inline.js
tmp[nm] = cm.editoptions.custom_value($(".customelement",this));
23:16
Moderators
30/10/2007
Hello,
It seems that you do not have defined the custom_value functio which should return the value from the custom created element. This function should be present in order to work the posting. See the demo What is new in 3.6. and read here :
http://www.trirand.com/jqgridw.....s#edittype
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
04:11
20/10/2009
It's not the same - but in my case:
{
console.dir(el);
}
in colModel:
editoptions:{
custom_element: myElement,
custom_value: myValue,
And it creates custom edit (radiobutton group) perfectly - but never calls
function - neither when creating new record via add form, nor when editing existing one. In POST thes values are absent
06:02
Hi Tony!
This is parts of my ColModel and JS:
07:11
Moderators
30/10/2007
Hello,
Thanks for this. I fixed this. The problem was if the value is empty.
The changes are in GitHub.
Please let me know if the fix work.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
08:42
Ho tony, thanks alot for the fix.
Have you tested custom input with two custom inputs yet? If I only have one Col with custom input all is great.
But if I have two I get errors.
Additionaly, when I use custom Input I get error when selecting a row, NOT editing, and then selecting another row.
$("td:eq(" + i + ")", ind).html(vl).attr is not a function
[Break on this error] $("td:eq("+i+")",ind).html(vl).attr("title",$.jgrid.stripHtml(vl)); \\r\\n
Greetings
04:26
Moderators
30/10/2007
Hello Hannes,
Have tested with two and three custom inputs, but no problems. In order to resolve could you please post the code here or somewhere in the web - I mean jsbin.com.
Thank you
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
95 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66