jQWidgets Forums

jQuery UI Widgets Forums Grid columntype: combobox not working for numeric datafield update.

This topic contains 6 replies, has 2 voices, and was last updated by  Mahesh 9 years, 8 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author

  • Mahesh
    Participant

    Hi,

    I am trying jqxCombBox in jqxGrid editor with createeditor.
    Everything works fine in your demo. (numeric and string both)

    But in my project I have multiple columns of “string” and “number” type data fields.

    combobox for “string” data fields works fine
    but, if data field type is “number” it doesn’t update the grid cell with combo box selected value.
    the value remains unchanged.

    thanks.


    ivailo
    Participant

    Hi Mahesh,

    Send a fiddle with your code for better analyze of that problem.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com


    Mahesh
    Participant

    Hi Ivailo,

    At present, I can’t send a fiddle with my code. (It is more messy and would be difficult to understand).
    One more thing to share about the issue is, its working fine even with the numeric data field having value within the range of 1 to 500 (approx).

    But I have a issue with the column having numeric values ranging (10001 to 10600).

    Any idea or guess will also help me.

    Regards

    Mahesh


    Mahesh
    Participant

    Hi, Ivailo,

    Some additional observation is,
    When I select an item from the combobox it appears in the cell but when click on some other cell to get update, the cell doesn’t get updated.
    It displays original value.

    In the background, if i debug the code in cellendedit event the oldvalue and newvalue are perfect.
    But after that when control goes to cellvaluechanged event then there is a problem, newvalue becomes 0.

    Why this is happening only for columns having numeric values ranging (10001 to 10600).
    In fact programming code is common for all the columns.

    Regards
    Mahesh


    ivailo
    Participant

    Hi Mahesh,

    We tested your scenario and we can’t see that kind of behavior.
    Try to update to the latest version 3.8.0.
    If this doesn’t help send a snippet with your code related to the problem.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com


    Mahesh
    Participant

    Hi Ivailo,

    After using latest version 3.8.0. the problem persist.

    One more thing I did.
    For testing purpose I converted numeric field into string in the database. Then it worked fine.
    Why can’t it work with numeric field having 5 digits (e.g. 12478 value) Even it worked fine with single digit numeric fields (e.g. 1-9 value)

    Question : Is it necessary to use dataAdapter for a foreign collection of values for a datafield having combobox.
    I have used an array for a foreign collection of values for a data fields having combobox.

    I am sure somewhere numeric and string type is clashing.

    Please answer the question. also tell the solution if you can figure out on the basis of information provided.
    I have spent 3 days for finding this bug (16 Hrs a day) without doing anything else, hoping that I am very close to the solution.

    Warm Regards
    Mahesh


    Mahesh
    Participant

    Hi Ivailo,

    Please provide the complete list of all data types mentioned/considered in all your jqwidgets.
    for example. (float, int, string, bool etc.) I found them here and there in your documentation.
    But not the complete list at one place. Why?
    Also tell that, is it “bool” or “boolean” ?

    Because what I understood is there are only three primitive data types in java script.
    And they are (string, number, boolean)

    Regards
    Mahesh

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

You must be logged in to reply to this topic.