jQWidgets Forums
jQuery UI Widgets › Forums › Editors › ScrollBar, Slider, BulletChart, RangeSelector › valuechanged event not activated by Grid ScrollBar
Tagged: jqxgrid, jqxscrollbar, render method, valuechanged event
This topic contains 7 replies, has 2 voices, and was last updated by mtbvfrAgain 11 years, 9 months ago.
-
Author
-
Hi,
After the data is loaded for the Grid I am using the following code to Style the Grid Cells.
$('#contenttabledivItemsGridCrit>div>div>div:first-child').css({'height':'100%','margin':'','padding':''});
However, as soon as the Vertical ScrollBar is used the default inbuilt Styling is applied.
I tried setting a function to the “rendered” Property but the “render” Method does not appear to be called when the ScrollBar is used.
I next tried to determine if the “valuechanged” Event, of the ScrollBar, could be used but this event is not being activated when the ScrollBar is used.
$('#verticalScrollBardivItemsGridCrit').on('valuechanged',function(event){alert('valuechanged');});
The “valuechanged” Event works for the ScrollBars of the Tree Widget. So, why does it NOT work for the ScrollBars of the Grid Widget?
Thank you, Michael.
Hi Michael,
There is no such event in jqxGrid. You cannot use API which is not part of jqxGrid or any other widget. You can use only API from the particular widget’s documentation.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comSo, how can this problem be solved?
Thank you, Michael.
Hi Michael,
It is not a problem, because it is not possible to use API which is not available.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comPeter,
Your answer makes no sense.
The API for the ScrollBar may not be used by the Grid widget but there still exists the problem of not being able to maintain the Style for the cells.
Michael.
Hi Michael,
To customize the cells, you should also use the Grid’s API. In addition, to work with the Grid, you should use only its API. There are no properties exposed for selection scrollbars or other elements and “hacks” like these that you try to use are not supposed to work.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
Which Grid Event can be used to modifiy the style of the Cells when the ScrollBars are used?
Thank you, Michael.
Peter,
You need to address the problem at hand.
To simply say that the API for the Grid should be used is NOT sufficient.
You should have told me about the ‘cellsrenderer’ Property of the ‘columns’ Property which would have saved time for both of us in communicating about the Styling problem I was trying to solve.
Hasta luego, Michael.
-
AuthorPosts
You must be logged in to reply to this topic.