jQWidgets Forums

Forum Replies Created

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

  • payamjalili
    Participant

    Hi Peter Stoev,

    Do you have a solution?


    payamjalili
    Participant

    Hi Peter Stoev,
    thank you for reply and sorry for my bad english

    Yes i’m sure

    https://image.ibb.co/gBaMpk/reorder_Column.png

    I’m using chrome version 59 and try it in firefox 52.0.2 and in both of them i can’t see custom filter.

    add break point in chrome developer tools in createfilterwidget when refresh page call this function but when reorder column this method not called.


    payamjalili
    Participant

    Hellow Hristo Hristov,

    Do you have any solution for resolve extra “Please Choose:” from the list filter?


    payamjalili
    Participant

    hey, anybody there?


    payamjalili
    Participant

    Hello Peter Stoev,
    thank you for reply. this problem fix in version 4.5.3 but when have a pinned columnm reordering have problem.

    i update This Sample


    payamjalili
    Participant

    Hello Hristo Hristov,
    thank you for reply

    I use “beginrowedit” after “endrowedit” because i want when add new row, end edit grid and finishing the other row rditing and start new row as editing

    I Remove extra property.

    I can’t understand which dataFields is duplicate

    I use columntype: 'template' and update sample but when add new row don’t have error but in list filter append extra “Please Choose:” and you can try it.


    payamjalili
    Participant

    Hello Hristo Hristov, thank you for your reply.

    Thanks for your attention, My Problem solved by using localization Property.


    payamjalili
    Participant

    Hello Hristo Hristov,

    Your Welcome

    The second part of my problem remains. http://www.jqwidgets.com/community/topic/lost-lists-filter-when-filter-other-column/#post-93564

    when use localizestrings list dropdown initial again and post second request and filter operation like filterstringcomparisonoperators and filterchoosestring has been conflict.


    payamjalili
    Participant

    I solved my problem

    use localizestrings method in ready function and translation applied

    when i use localizestrings method in bindingcomplete event multiple initial filter list and old filter has been lost.


    payamjalili
    Participant

    Hello Hristo Hristov,

    Thanks for the follow-up and accountability

    Problem from this code:

    $('#jqgrid').bind('bindingcomplete', function (event) {
        // apply localization.
        grid.jqxGrid('localizestrings', localizationobj);
    });

    when using localizestrings method, grid’s filter has been conflict. ( When i comment this method filtering work perfect but when i uncomment this filtering work with problem )

    Translation operator in the filtering interfere.

    This is my translation object: https://www.jseditor.io/?key=localization-conflict-in-filtering

    filterstringcomparisonoperators and filterchoosestring has been conflict.

    tanx


    payamjalili
    Participant

    Hello Hristo,

    Thank you for answering and sorry about my bad english 😉

    I think when call updatebounddata grid rebuild list filter and lost selectedindex in dropdown list filter.

    My Server response for each filter and grid data is JSON object

    Response of Filter List is:

    [
      {
        "CatalogValueID": "324e802c-f67d-4ffa-a01a-afffe7c12d71",
        "Title": "مرکزی",
        "CatalogOrder": 1,
        "CatalogValueCode": "WarehouseType",
        "ParentID": "8b3f5df4-ce7d-41ec-9b07-8f13f595d1a6",
        "TextField": "مرکزی",
        "ValueField": 1,
        "GoodShippingGroupID": 1
      },
      {
        "CatalogValueID": "0e931a97-602a-4c69-a816-28031c018be0",
        "Title": "توزیع",
        "CatalogOrder": 2,
        "CatalogValueCode": "WarehouseType",
        "ParentID": "8b3f5df4-ce7d-41ec-9b07-8f13f595d1a6",
        "TextField": "توزیع",
        "ValueField": 2,
        "GoodShippingGroupID": 2
      }
    ]

    Little Response of Grid Data is:

    {
      "total": 810,
      "rows": [
        {
          "WarehouseID": "a013d128-1b6b-484c-b32b-a3b723392dbc",
          "WarehouseTypeID": 2,
          "WarehouseName": "لیان2",
          "WarehouseCode": "365250",
          "FullName": "فروشگاه چارسو",
          "ProvinceTitle": "قم",
          "CityTitle": "سلفچگان",
          "WarehouseTel": null,
          "IsActive": true,
          "WarehouseAddress": "قم",
          "Description": null,
          "RegionCodeID": null,
          "CodeNumber": null,
          "RegionName": null,
          "ProvinceID": "e8333a84-eb2b-4e53-ad6a-0efbc419dc5c",
          "CityID": "06481194-eec2-4d1d-ab3f-29a14cf32379",
          "PostalCode": null,
          "GLCWarehouse": true,
          "Fax": null,
          "PersonID": "46875c84-84f0-4289-bb8a-a2da435c340d",
          "WarehouseTypeID_Title": "توزیع"
        },
        {
          "WarehouseID": "e2d73335-8bff-42c5-ba6a-a5fd8497e08e",
          "WarehouseTypeID": 1,
          "WarehouseName": "یزدان پناه",
          "WarehouseCode": "2555",
          "FullName": null,
          "ProvinceTitle": "خوزستان",
          "CityTitle": "آبادان",
          "WarehouseTel": "542585",
          "IsActive": true,
          "WarehouseAddress": "خوزستان - آبادان",
          "Description": null,
          "RegionCodeID": "8dab5652-cd38-46c3-9fd2-26ed2fa77da6",
          "CodeNumber": "1012",
          "RegionName": "(لواسانات)1",
          "ProvinceID": "b7bd9fcd-4b48-4fca-a245-4c09de3aaf38",
          "CityID": "5efd9f81-e90b-47ad-a680-1797ba294ff0",
          "PostalCode": null,
          "GLCWarehouse": true,
          "Fax": "25685",
          "PersonID": null,
          "WarehouseTypeID_Title": "مرکزی"
        }]
    }

    For security reason i can’t publish online demo but i can send screenshot

    this is normal grid:

    then filter list column and working good

    then filter other column and you can see list filter has lost

    I try to cells in updatebounddata method like this in my source but some time list filter has lost and some time filtering without losting list filter

    filter: function () {
        grid.jqxGrid('updatebounddata', 'cells');
    }
Viewing 11 posts - 1 through 11 (of 11 total)