jQWidgets Forums

Forum Replies Created

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

  • IvanNie
    Participant

    Hi Stanislav,
    Could you check the cascading combobox databind as soon as possible, the problem trouble me for days,

    thanks.


    IvanNie
    Participant

    Hi Stanislav,
    In my project, not use original jquery way to load grid combobox, we package some code in order to together with angular, so i can show you some related code snippets, please see my below:
    1. first should load combobox, for showing cascading combobox, should load defferent localdata source, may be i should should show a example,
    e.g. cascading combobx plant and article, article should have different source, because of choosing different plant, so in my code may be like this
    testService.setArticlePlant(plantArray, loadArticlePlants); // plantArray is Array of all plant from db, and loadArticlePlants is callback, in
    // testService i will loop plantArray set plantNo to execute loadArticlePlants,
    // loadArticlePlants(plantNo), requiring data asynchronously, inside loadArticlePlants
    loadArticlePlants(plantNo).then(function(articleArray) { //

    $scope.articleComboSource.localdata = articleArray; // set article combobox source
    $scope.articleComboAdaptor.dataBind(); // source databind

    })

    should bind ok, the grid should show, but is empty for combobox article not show, i do not why? NOTE for normal is OK.

    2. if save, for cascading combobx i reset artcle combobox source is also empty for article combobx, not show.
    $scope.articleComboSource.localdata = newArticleSource; // set article combobox source
    $scope.articleComboAdaptor.dataBind(); // source databind

    When i debug source code for dataBind() method, i can see the combobox bind OK, i do not know the reason for cascading combobox not show in grid, even though the localdata set right way.

    @stanislav, is it clear for you?


    IvanNie
    Participant

    Hi Stanislav
    I can describe my topic again, in my requirement i have two cascading combobox in a grid, e.g. plant combobx and article combobox, so this will cause problem:
    1. i select plant combobox record -> article combobox should refresh with plant combobox this for me ok,
    so when i new choose plant combobox and article combobox and save
    in this situation if i want to show plant and article, the combobox source localdata should right, in my view i do two localdata for article one is new one is save, but after i save and change localdata for article combobox, the combobx data can not bind, this column is empty, so do not know the reason?
    is it clear for you, if you are free please reply me as soon as possible.
    thanks.

    in reply to: grid validation not work grid validation not work #97958

    IvanNie
    Participant

    Hello Hristo,
    I am sorry for that, this is my problem, after i debug, it is nothing to do with jqweights, the reason is a dom element add so much event, which i hope the sequence of events triggered as i expected, but it is pity the sequence is not as i expect, so this is the reason, i am soory for that. thank you for your reply. could i close this problem?

    in reply to: grid combobox render slow grid combobox render slow #97902

    IvanNie
    Participant

    Hello Stanislav,
    Sorry for that, my requirement do not allow this with cascading combobox, so can you optimize the rendering speed of grid combobox if grid combobox have so much records loaded at first time in the next jqweights version, what do you think of my suggestion? if you are free please reply me.

    thanks.

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