jQuery UI Widgets › Forums › Lists › ComboBox › Adding some sort of notification showing multiple entries
Tagged: angular grid, arrow in cell, cellsformat, cellsrenderer, dropdown arrow, file path, getrows, grid, grid cell, jquery grid, jqxgrid, jsfiddle, ready, sampledata, source, url, XML
This topic contains 23 replies, has 2 voices, and was last updated by Dimitar 7 years, 11 months ago.
-
Author
-
Hi walker1234,
With the correct image path in cellsrenderer, the example looks like this: https://jsfiddle.net/Dimitar_jQWidgets/j92L2ggs/. The arrows in the first column resemble the arrow of the combobox editor that will open if the user double-clicks a cell.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
Thanks. I tried doing that in the following JSFiddle. After adding the
cellsrenderer:iconrenderer
in my code, the format of the date is getting changed fromMM/DD/YY
to something likeTue,Jul 15 2014 00:...
. Could you tell me why it is affecting the date format? The dropdown dates are fine.Hi walker1234,
Values in cellsrenderer are not affected by the cellsformat setting. Here is how to resolve your issue instead: https://jsfiddle.net/Dimitar_jQWidgets/tgrc08rw/ (note the modified iconrenderer).
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Thanks Dimitar. That works. One more question, could you tell me if there is a feature in jqWidget to hide the dropdown icon for those dates for which there is only one date. I mean, if we consider the JSFiddle you have mentioned,
C, D and E
have only one date associated with them so I was wondering whether I can hide dropdown icon from those dates as it wouldn’t make sense for the user to click on it. ThanksHi walker1234,
Here is how to achieve this requirement: https://jsfiddle.net/Dimitar_jQWidgets/hkeubfzw/.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Thanks Dimitar. One last question, is it possible for me to get the final count of the rows in the name column, I mean originally there are 9 records which are finally get converted to 5 after date consolidation. I mean I want to display the final count somewhere in the screen which is 5. Thanks
Hi walker1234,
You can achieve this by using the method getrows, i.e.: https://jsfiddle.net/Dimitar_jQWidgets/60q10o61/.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Thanks Dimitar. I was actually trying to get the count outside the grid definition, so I did something like the following in this Fiddle at line #101 :
var diagCount = $('#jqxgrid').jqxGrid('getrows').length; console.log("diagCount Check "+diagCount);
And I get
Uncaught TypeError: Cannot read property length of undefined
Why is it like not working outside?
Thanks
Hi walker1234,
In your case, the grid may have not been initialized by the time you call getrows. That is why such calculations should be made in the ready callback function, which is called when the grid is initialized and the binding is complete. You can also call getrows in some event handler, for example when a button is clicked.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.