jQWidgets Forums
Forum Replies Created
-
Author
-
December 9, 2013 at 12:31 pm in reply to: Grid Row Details Nested Grid get Details Grid Row Details Nested Grid get Details #46211
I have a grid with editable nested grids, which I need to add rows to.
My best solution was to assign the nested grid a unique id (according to the id you connect them to) in the initrowdetail function:
var id = record.uid.toString();
var grid = $($(parentElement).children()[0]);
$(grid).attr(‘id’, ‘somename_’ + id);Then if you work with the id anywhere else on this page, you can access it via:
var data = $(‘#somename_’ + id).jqxGrid(‘getrows’);And if you somehow want to access all nested grids, assign it a css class for later selection.
$(grid).addClass(‘nestedgrid’);$(‘.nestedgrid’).jqxGrid(‘…’)
December 6, 2013 at 10:36 am in reply to: jqxGrid Bug with Filterrow and columnsheight jqxGrid Bug with Filterrow and columnsheight #46084Hi Peter,
thank you, I was not aware columnrenderer existed as of yet, only cellrenderer. That fixes the problems. 🙂
Regards
KlausDecember 6, 2013 at 10:28 am in reply to: jqxGrid Bug with Filterrow and columnsheight jqxGrid Bug with Filterrow and columnsheight #46080Hello Peter,
thank you, that worked.
But now that leads to another effect. I used a bigger columnshegiht because I want to use new line in the header text. You seem to calculate a top and bottom margin. For one line that looks fine and the text is centered. For a text with two lines, the first line is aligned as middle which leads to the second line not being displayed fully. Is there a option to set the vertical align to top in the header?
Regards
KlausOctober 11, 2013 at 7:09 am in reply to: Issue in applying validation on Grid. Issue in applying validation on Grid. #30590If I may help, since i had the same problem, the solution is quite simple if you use a numberinputfield in the grid:
{text: 'Your column', datafield: 'yourcolumn', width: 100, columntype: 'numberinput', editable: true, createeditor: function (row, cellvalue, editor) { editor.jqxNumberInput({ decimalDigits: 0, digits: 2, min: 0, max: 99 });}
In that example, the user can only enter numbers between 0 and 99.
September 20, 2013 at 7:11 am in reply to: Grid with filterrow, checkedlist and displayfield Grid with filterrow, checkedlist and displayfield #29277Hello Peter,
is there any news on that matter?
Regards
KlausSeptember 20, 2013 at 7:04 am in reply to: Custom Editor textfield or jqxNumberInput depending on row Custom Editor textfield or jqxNumberInput depending on row #29275Hello Peter,
thank you, that example lead me to my error . Great feature! 🙂
Regards
KlausSeptember 19, 2013 at 2:18 pm in reply to: Custom Editor textfield or jqxNumberInput depending on row Custom Editor textfield or jqxNumberInput depending on row #29240PS: I also tried to put the editor.jqxNumberInput in createeditor, but the result stayed the same, it is just a normal textbox.
September 16, 2013 at 8:05 am in reply to: Problem with grid rendering in tab Problem with grid rendering in tab #29021Hello Dimitar,
I totally missed the initTabContent callback in this example and the API. I did further tests today and so far using refresh instead of render in the tabclick event seems to do the trick. Maybe I will work in the initTabContent.
Thanks 🙂
September 13, 2013 at 3:44 pm in reply to: Problem with grid rendering in tab Problem with grid rendering in tab #28960PS: The div of the grid is the div element that is also used as a tab. I have tried to wrap it with another div, but that did not solve the problem, it only showed me, that some grids are rendered, but then the width was totally messed up.
August 22, 2013 at 3:41 pm in reply to: grid editor jqxInput with maxlength? grid editor jqxInput with maxlength? #27470Sorry, I just saw this thread, where the new functionality is explained: http://www.jqwidgets.com/community/topic/maxlegth-on-columntype-jqxgrid/
Works fine.
August 22, 2013 at 3:36 pm in reply to: grid editor jqxInput with maxlength? grid editor jqxInput with maxlength? #27469Hello,
I have stumbled upon this problem again. In the new version, you have this example using a input field as editor:
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/cellcustomediting.htmAny chance I can use this method to achieve this better version of a solution? I have tried a bit, even with adding the maxlength attribute to the input field (which works normally), but I am not sure I understand how exactly you use the jqxInput in this example, since you synchronize the value.
Kind Regards
KlausAugust 22, 2013 at 8:15 am in reply to: jqxGrid combined with jqxTooltip jqxGrid combined with jqxTooltip #27383Hello Peter,
thank you very much, that solved the problem. 🙂
Kind Regards
KlausAugust 22, 2013 at 7:32 am in reply to: jqxGrid combined with jqxTooltip jqxGrid combined with jqxTooltip #27361Hello Peter,
your example works like a charm, but once I copy the logic to my grid, the tooltips are not shown anymore. I used the same jQuery version and the same jqWidgets Version for both. The tooltips are attached, I can see them in the html view, but the event to display them aren’t triggered when I move the mouse over my grid column header. I also stripped my grid of all additional functionality like filtering and paging, but the tooltips always stay invisible.
I even used a div with an id as the text property of my grid column and attached a tooltip to it, the tooltip shows up in the html but again is not triggered. A second tooltip that I attached to another element just to be sure that tooltip is working in my environment worked. So it’s a mystery to me right now, might have something to do with my html/css. I’ll try another solution.
Thanks for your help.
August 21, 2013 at 3:51 pm in reply to: jqxGrid combined with jqxTooltip jqxGrid combined with jqxTooltip #27302Okay, my first mistake was not putting the source code in the read function of the grid.
After doing that, I can find $(‘#columntablejqxGrid’) but I still cannot add a Tooltip to a child.
July 2, 2013 at 10:18 am in reply to: Excel export and special characters (umlaut) Excel export and special characters (umlaut) #24315Hello Mariya,
thank you, that works, but in the API there is no mention of said parameter, the url to the server is mentioned as the “last parameter”.
Kind Regards
Klaus -
AuthorPosts