jQWidgets Forums

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Normal click event in the Cell Normal click event in the Cell #27497

    Then we have different div inside individual cell.And each div has its some attributes and these attributes values are input some other section of the page for rendering.How we can achieve that.

    For example suppose cell1 has the div1, div2. How shall I access the attribute value of div1 if I click div1.

    -Pius

    in reply to: Normal click event in the Cell Normal click event in the Cell #27459

    Hi Peter,

    Now we are moving the application to tablet.But in tablet onclick event does not work. Is there any work around for this.

    -Pius Ranjan

    in reply to: Row position after sorting Row position after sorting #22114

    Thanks ,then how shall I know that user has cliked in a cell of the first displayed row of sorted grid.Is there any api available for this?

    Thank You Peter. Your suggestion helped me a lot.

    -Pius

    hi Peter ,

    I am not sure if my question is confusing .So let me try to explain my question again:

    I have a grid having n rows and 1 column. so there is one cell in each row.

    Each cell in each row contains 2 values say: Name and mobilenumber in two spans/div like below:

    cell1 — name1 mobilenumber1
    cell2 — name2 mobilenumber2

    …..—————
    …..———

    cell(n)-name(n) mobilenumber(n)

    If I click on any cell and use ‘cellclick’ event to get clicked cell value, then I will get name2 mobilenumber2.

    But my requirement is little bit different .I wanted to know the correct values on which user has is clicked.For example if user has clicked mobile number , I should be able to know know that click has been done on mobile number and not name.

    -Pius Ranjan

    Yes what if I want to retrive

    cell1 – value1 value2
    cell2- value1 value2
    …..
    …..
    cell(n)-value1 value2

    As per solution provided by you , I can retrieve both value1 and value2.Is there any way , I can identify user has clicked either value1 or value2?

    Probably DIV is not seen in in above question .Let me write again the question:

    I have a GRID having one column and n number of rows.I am using cellrender to render the cell.

    My cell rendering logic for each cell contains

    <div class=samplecellclass1> value1 < /div > 
    <div class=samplecellclass2> value2 < /div>

    How can I retrive the value 1 when I click the Ist div ‘samplecellclass1′ and and retrive value2 when user click on the second div ‘samplecellclass2′.

    -Pius

    Thank you Dimitar for all your help

    in reply to: JQX menu item without grid JQX menu item without grid #19528

    Can I use JQX grid without any column header ? Can I use use a sparate button to diisplay filter panel?

    -Pius

    Hi Dimitar,

    Thanks for your help.

    Now I am able to sort based on hidden column.

    But Now the isue is that “sort ascending” , “sort descending” and “Remove Sort” menu items of jqx grid are not getting changed.

    For example when I click ” sort ascending” of column A .Sorting is done based on Hidden column H .But after sorting the menu item ” sort ascending” should be disabled and “sort descending” , “Remove Sort” should be enabled.But this is not happening.

    This might be due to the following reason:

    When the following statement is getting executed, menu items (sort ascending” , “sort descending” and “Remove Sort” ) of Hiddden column is affected not the column.

    $(‘#jqxGrid’).jqxGrid(‘sortby’, ‘H’, ‘asc’);

    Can you please help me on this?

    -Pius

    Thanks

    We wanted to use the default menu items provided by jqx grid. How can I capture the click event when I click default “sort ascending” , “sort descending” and “Remove Sort” menu items of jqx grid ?

    OR

    Suppose the Grid is generated using A and Hidden coulmn (H). Now I wanted to click the header A so that sorrting logic will be applied on H and accordingly A should be rendered.How can achieve this?

    Pius

    If I write above code inside the sort event handler then event handler would be called infinetly .

    For example I clicked on sort ascending on Column A then below code will be executed infinetly as $(‘#jqxGrid’).jqxGrid(‘sortby’, ‘H’, ‘asc’) will again raise an event ‘sort’ inside the code.

    $(‘#jqxGrid’).on(‘sort’,function(event) {

    $(‘#jqxGrid’).jqxGrid(‘sortby’, ‘H’, ‘asc’);

    })

    Regards,
    Pius

Viewing 12 posts - 1 through 12 (of 12 total)