jQWidgets Forums

Forum Replies Created

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

  • AliMajed
    Participant

    Hello Hristo
    Thanks for your comment, but your solution is Not what I am looking for. I need to get 2 parameters :
    1) the ID of the element that I want to drag it based on the table in my data base.
    2) the ID of the element that is destination of drag/drop action based on the table in my data base.

    I can get the firs parameter by code:

    var item = $(#jxqTree).jqxTree(‘getSelectedItem’);
    var itemID = $(item).attr(‘id’);

    so the firs parameter is “itemID”. but I do not know how to get the second parameter.

    Thanks in Advance

    in reply to: Something Like ListView Something Like ListView #89124

    AliMajed
    Participant

    Hello Christopher
    Thanks for your support, The jqxRippon is exactly what I am looking for, but I can Not find the “View Source” of it and in Demo, jqxRibbon there is some other examples different from yours. can you please guide me how I can have a Ribbon exactly what you have linked in your answer ?
    Thanks in Advance


    AliMajed
    Participant

    Hello Christopher

    Thanks for your Great help, my problem has been solved with your solution

    With Best Regards


    AliMajed
    Participant

    Hello Christopher

    my JS is : I have a Grid named “LawGrid” that shows all my Law stored in DB, in Grid I have a cell named “Update” that is cellRendered with “updateRenderer “. on clickon the cell, it show show the Law Information including it’s Category but it shows only other informations
    like “Name” or etc exept the Category.

    function SuccessGetLawList(response) {
     var source = {
       datatype: 'json',
       localdata: response };
     
     var dataAdapter = new $.jqxdataAdapter(source);
     updateRenderer = function(row,datafields,value) {
      var _LawID = $('#LawGrid').jqxGrid('getcellvalue' , row , 'LawID'); // LawID is( the name of Field in DB
      var _Category = $('#LawGrid').jqxGrid('getcellvalue' , row , 'CategoriID'); // CategoryID is the field in DB that Store Law Category
    
      return '<div onClick=" UpdateLaw(' + _LawID.toString() + ',\'' _Category.toString() + '\') >'
    };
    
    function UpdateLaw ( _LawID, Category) {
    
     var _CategoryINT = parseInt(Category);
     $('#LawGTree').jqxTree('selectItem' , CategoryINT ); // That is the segment that it should show the selected Law Category in Tree
                                                             to make user able to change it or not. but it does not.
    
    };

    Thanks in Advance for your support


    AliMajed
    Participant

    Hello Christopher
    and Thanks for your comment

    I have already bind my Tree to JSON data correctly, but in a form, when I am going to update my record info, I need the Tree to select the stored item as old data, so if user wants to change it or not for updating record. I am just using JSON data as resource in my Tree.
    I have used :
    $(‘#jqxTree’).jqxTree(‘selectItem’, element);
    or
    $(‘#jqxTree’).jqxTree(‘selectItem’, $(“#jqxTree”).find(‘li:first’)[0]);
    that are in documents, but it does not work.

    and
    Thanks in Advance

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