jQWidgets Forums

Forum Replies Created

Viewing 10 posts - 31 through 40 (of 40 total)
  • Author
    Posts
  • in reply to: Pinned vs Hidden Column Pinned vs Hidden Column #23938

    nikitaso
    Participant

    What I mean is when column property “pinned” set true and “hidden” set true – column is still visible.

    Not a big deal, but confusing.


    nikitaso
    Participant

    Thank you!

    in reply to: Grid filter Grid filter #22206

    nikitaso
    Participant

    is it possible to put text into filter textbox after grid is loaded?

    in reply to: Grid filter Grid filter #22205

    nikitaso
    Participant

    actually this is what i need! 🙂

    Something like that:
    if page needs to prefitlered i set filterAdded = true, then “processdata” i added filter data, then in “filter” event i set filterAdded to false and skips processdata (well adding filter)

    Now I need to figure out how to populate filter textbox in column header.

    filter: function () {
    filterAdded = false;
    // update the grid and send a request to the server.
    $(“#jqxgrid”).jqxGrid(‘updatebounddata’, ‘filter’);
    },
    sort: function () {
    // update the grid and send a request to the server.
    $(“#jqxgrid”).jqxGrid(‘updatebounddata’, ‘sort’);
    },
    root: ‘DataRows’,
    processdata: function (data) {
    if (filterAdded)
    {
    console.log(‘processdata’);
    data.filterscount = 1;
    data.filtervalue0 = ‘@ViewBag.FilterGridValue’;
    data.filterdatafield0 = ‘@ViewBag.FilterGridField’;
    data.filteroperator0 = ‘and’;
    data.filtercondition0 = ‘EQUAL’;
    }

    },


    nikitaso
    Participant

    Works!


    nikitaso
    Participant

    I see. Thank you. will let you know how it goes.


    nikitaso
    Participant

    This seems to be jquery version issue plus some other variables. It works fine under 1.8.3 jquery.

    in reply to: Add button to DropDownList Add button to DropDownList #21675

    nikitaso
    Participant

    Actually I figured out the way. Just dont use select event.

    renderer: function (index, label, value) {

    // var datarecord = data[index];

    var img = ”;
    if (index == 0)
    img = ”;

    var table = ‘‘ +label + ‘‘ + img + ”;
    return table;
    }

    in reply to: Update data source property Update data source property #19551

    nikitaso
    Participant

    Thanks!

    in reply to: Tooltips for Grid cells Tooltips for Grid cells #14380

    nikitaso
    Participant

    var salesRenderer = function (row, datafield, value) {
    return “< a on-Click= >sales”;
    };

    var customersListDataFields = [
    { name: ‘CustomerId’ },
    { name: ‘CustomerName’ }];

    var customersListColumnDefs = [
    { text: ‘Customer Name’, datafield: ‘CustomerName’, columntype: ‘textbox’, width: ‘auto’, cellsalign: ‘left’ },
    { text: ‘Voice’, cellsrenderer: salesRenderer, columntype: ‘textbox’, width: ‘auto’, cellsalign: ‘left’ }
    ];

    var showSales = function (s) {

    $(s).qtip({
    content: {
    text: ‘Loading…’, // The text to use whilst the AJAX request is loading
    ajax: {
    url: ‘/customers/showcustomertooltipcontentfromserver’, // URL to the local file
    type: ‘GET’, // POST or GET
    data: {} // Data to pass along with your request
    }
    }
    });

    $(s).qtip(‘toggle’, true);
    };

Viewing 10 posts - 31 through 40 (of 40 total)