jQWidgets Forums
Forum Replies Created
-
Author
-
Thanks ivan, it’s working with this solution.
May 7, 2014 at 6:02 am in reply to: dropdownlist with checkboxes type cells dropdownlist with checkboxes type cells #54080Hi,
thank you, but you didn’t understand me at all, and I still can’t find in the documentation what is the columntype: ‘theme’ and when to use it, but none the less, it’s working with that, so thank you again.
May 6, 2014 at 1:42 pm in reply to: dropdownlist with checkboxes type cells dropdownlist with checkboxes type cells #54047Hi,
The geteditorvalue is overwritten, and I see no checkboxes with columntype dropdownlist because it the dropdownlist doesn’t open at all, it just gives that js error I mentioned above, but I did create the dropdown list in the initeditor, not in the createeditor, like so:
I think I’m confusing version 2.9 with 3.2. At least in v2.9 it worked like this (but in 3.2.2 it’s not working any more):{ text: 'ID Column', datafield: 'id', width: '20%', columntype: 'dropdownlist', initeditor : function(row, cellValue, editor) { editor.jqxDropDownList({ checkboxes: true, source: dataAdapter, valueMember : "id", displayMember : "label"}); },
Now, as I seen in the example link you provided, this “editor.jqxDropDownList” goes into the createeditor function (not into the initeditor like it worked with v. 2.9) and the comlumntype should be template (instead of ‘dropdownlist’), then it’s working properly.
My problem is that I didn’t see in the docs the “columntype: template” yet (or I missed it), so I’m not understanding something … can you please explain this for me? (I’m guessing here but without the checkboxes: true, and with the columntype ‘dropdownlist’ it’s working, so is the combobox, so when is it appropriate to use the “template” column type in the grid?)Thank you again.
May 6, 2014 at 1:11 pm in reply to: dropdownlist with checkboxes type cells dropdownlist with checkboxes type cells #54044Hi,
thank you for your reply, your example page solved the problem, I was following the http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-cells-editing.htm page where it states:
To specify the column's editor, you should set the column's 'columntype' property to 'textbox', 'dropdownlist', 'numberinput', 'checkbox' or 'datetimeinput'.
now, in your example, it’s columntype: ‘template’, and I was using columntype: ‘dropdownlist’, did I misunderstand something here?Thank you again.
It does the job, thank you.
Thanks mg, it works.
Hi Dimitar, fox82i,
I did try to put an onclick on the div that stands for the close button, but of course the tabs method runs first … so I have no solution to solve this, and I would need this framework for a big system where every form/grid/whatever is opened in a new tab (and the number of opened tabs will constantly exceed 20-25, so constantly navigating between that many tabs will easily result in accidentally closing a tab, instead of selecting it – and loosing unfinished forms is a problem), so this is a big issue for me … I guess I will either use the jQuery UI tab, or implement a custom tab script. If you have any easy solution I would appreciate it. Thanks again.Any plans to add such an event in the near future?
Thank you.
-
AuthorPosts