jQWidgets Forums
Forum Replies Created
-
Author
-
July 8, 2020 at 6:09 am in reply to: Click and selecting rows in jqxgrid should fire the scroll. Click and selecting rows in jqxgrid should fire the scroll. #112360
Hello ,
So if we want to use jqxgrid with Smart.js we will first have to download the package then render it in our html file and then comes the question how are we gonna use Smart library is it like this..
window.Smart(‘#idofJqxgrid’).
If not this then could u please suggest an example of using smart with jqxgrid.
Thanks
SamiranJuly 3, 2020 at 6:07 am in reply to: Click and selecting rows in jqxgrid should fire the scroll. Click and selecting rows in jqxgrid should fire the scroll. #112347Hello,
Is it possible to consume the Smart HTML Elements library with the existing JqxGrid?
Thanks
SamiranApril 3, 2020 at 1:02 pm in reply to: Click and selecting rows in jqxgrid should fire the scroll. Click and selecting rows in jqxgrid should fire the scroll. #111632Hello,
Thanks for suggesting the above methods.I will try implementing the suggested workarounds.
Regards
SamiranApril 2, 2020 at 1:05 pm in reply to: Click and selecting rows in jqxgrid should fire the scroll. Click and selecting rows in jqxgrid should fire the scroll. #111616Hello Hristo,
I will try to describe the use-case.So, first off all we have a jqxgrid which has multiple rows.So what I needed to implement was that whenever I start selecting row by hovering the mouse keeping the left mouse button pressed, this should automatically lead to scrolling of the scrollbar of the grid.I guess there is a overflow-y css property which when set to scroll allows the scroll to move upon overflow.
So if you think of an approach that how can I bind the scrolling of grid to the mouse selection event then please suggest.Also do u think this use-case can be achieved or not or is it a by default issue that cannot be changed.Please share ur thoughts.
Below are some lines of code i was trying to add but was not feasible it sometimes worked and not the other time :
$(“#jqxgrid”).mousedown(function (e) {//capturing mousedown event
if (e.which === 1 && $(“#jqxgrid”).mouseover()) {//trying to capture two events left click and mouse hovering
/* left mouse button was clicked! */
console.log(“hey left button!!”);
console.log($(‘#jqxgrid’).jqxGrid(‘scrollposition’));//trigger the scroll to move by setting css property.
$(“#contenttablejqxgrid”).css(“overflow-y”, “scroll”);
}
});
Thanks for replying!!Regards
Samiran -
AuthorPosts