jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts

  • vmanne
    Participant

    Thanks Peter. What I noticed is, when I use jqxWindow, it works well, however for jquery dialog it scrolls up the top.


    vmanne
    Participant

    And these dropdownlists are inside the jqxNavigationBar

    in reply to: Filter row placement Filter row placement #28367

    vmanne
    Participant

    Hi Peter,

    Can the custom UI appear on the same row as the column name. I looked at filter demo’s. Is there a way to have checked filter show up on the same row as header?

    Do you have an example of custom filter UI (on filter menu) with checked filters?


    vmanne
    Participant

    +1 vote for an example to do this


    vmanne
    Participant

    Thanks Peter, we were able to use the cellrenderer methods to adjust the grid exactly to our needs.


    vmanne
    Participant

    Hi Peter,

    Sorry I bumped this thread. I don’t have editors as the OP. I should have opened a new thread to help clarify

    Please see the new thread.

    Thanks
    Vik


    vmanne
    Participant

    Hello,

    I have a similar issue as the OP. When I turn off filters

    showfilterrow: false

    , for my columns, performance increases *significantly*.

    I have eight columns, that load initially and then additional columns are being shown/hidden from a dropdown checkbox list. When I turn off filters, it blazes through.

    We’d like to use filters, however, performance is pretty bad. I’ve downloaded latest 2.8.2 and still the same issue.

    Please advise.

    Thanks.

    in reply to: SubItems click to open SubItems click to open #19940

    vmanne
    Participant

    Nevermind, there is a setting

    clickToOpen: true

    which works beautifully!

    in reply to: Knockout Menu Knockout Menu #19939

    vmanne
    Participant

    Thanks Peter, I’m able to style the menu item appropriately based on the link.

    in reply to: Grid saving state to database Grid saving state to database #19073

    vmanne
    Participant

    Hi Peter, I’ll put together a sample project to illustrate this.

    in reply to: Grid saving state to database Grid saving state to database #19015

    vmanne
    Participant

    After much testing I can confirm that object returned from getstate is same as object returned from the db. Not sure why the loadstate

    ("#asGrid").jqxGrid('loadstate', <em>thisStateFromDB</em>); 

    does not work

    in reply to: Grid saving state to database Grid saving state to database #19011

    vmanne
    Participant

    Hi Peter,

    thisstate is the serialized form of object (state) which the “savestate” method gives out.

     var state = $("#asGrid").jqxGrid('savestate');   

    Instead of ‘savestate’ , should I use ‘getstate’ ?

    Is this correct way of saving state info to the database and fetching it back?

    var state = $("#asGrid").jqxGrid('getstate');    

    Store state as string

    JSON.Stringify(state)

    to the database and then use

    //statefromdb obj comes from db (JSON string)
    var thisstate =JSON.parse(statefromdb );
    $("#asGrid").jqxGrid('loadstate', thisstate);

    vmanne
    Participant

    Thanks Peter for your reply.

    1. I’m calling loadstate when I’m making customization to Grid (such as when a checkbox is selected to show/hide columns)
    2. The state is parsed correctly. When I do a console.log for state before persisting to db is same as one before getting from db. (As seen by Firefox Firebug Window->Object
    3. ‘m using the latest version (jQWidgets v2.8.0 (2013-Mar-22))

    Code snippets

    //Saving data:
    function SaveState(state) {
    console.log(“GridState”, state);
    var dataToSend = {
    UserId: $(‘#UserId’).val(),
    State: JSON.stringify(state) //<—- using JSON.stringify(state) to convert object into string for db storage
    };

    $.ajax({
    url: 'xx/SaveUserSettings/?UserId=' + dataToSend.UserId + '&SettingName=asGrid&SettingValue=' + dataToSend.State,
    type:'POST',
    data: dataToSend,
    success: function (data) {
    //alert('saved data ' + data);
    }
    });
    }

    //Getting data:

    //get 'views' info for the grid
    $.ajax({
    url: 'xx/GetUserSettings/?UserId=' + $('#UserId').val() + '&settingName=AssignmentsGrid',
    success: function (data) {
    var thisstate = JSON.parse(data); //<—- using JSON.parse(data) to convert string from db to object
    console.log(thisstate);
    //attempting to load the state
    $("#asGrid").jqxGrid('loadstate', thisstate);
    $("#asGrid").jqxGrid('refresh');
    $("#asGrid").jqxGrid('render');
    }
    });

    in reply to: Add Menu Item Add Menu Item #18358

    vmanne
    Participant

    Thank you Dimitar. Is there a way to do this natively, without using knockout way? I was hoping to see a function such as

    $(‘#menu’).jqXMenu(‘Item Name’, ‘Item Value’);

    in reply to: Menu click event in Firefox Menu click event in Firefox #15727

    vmanne
    Participant

    Thanks Peter for the quick reply!

    It appears when using native DOM objects FF does not support innerText element. I had to use innerContent and it worked.

    However, that is not the case as in your example: when using jQuery $(event.args).text() and it is optimized to work with FF and IE.

    Another related question:

    Is there a way to provide “navigateUrl” option in the li element, such that when a li element is clicked they are taken to that url instead of catching the on itemclick method?

    Thanks again for your quick response!!

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