jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 65 total)
  • Author
    Posts
  • in reply to: spreadsheet cell load data spreadsheet cell load data #67676

    mustafa
    Participant

    hello dimitar thank you for reply I will test

    2.question

    my vessel list data

    [0]
       VesselID :    198
       VesselName :  OZAN4   
    
    [1]
       VesselID :    199
       VesselName :  ThunderBirth
    
    and 
    my stock list  data
    
    [0]
       StockID:    1
       StockName:  OIL   
    
    [1]
        StockID:    2
        StockName:  OIL2   
     


    I show left the stock names? and if possible I can stock Id ?

    and question

    3. this my user grid

    
        window.GridUserDataSource =
    
             {
                 datafields: [
                 { name: 'UserID', type: 'string' },
                 { name: 'Name', type: 'string' },
                 { name: 'Surname', type: 'string' },
                 { name: 'Email', type: 'string' },
                 { name: 'UserGroupName', type: 'string' },
                 { name: 'UserGroupID', type: 'string' },
                 { name: 'IsActive', type: 'bool' },
                 { name: 'Password', type: 'string' }
                 ],
                 addrow: function (rowid, rowdata, position, commit) {
                     commit(true);
                 },
                 deleterow: function (rowid, commit) {
                     commit(true);
                 },
                 updaterow: function (rowid, newdata, commit) {
                     commit(true);
                 },
                 localdata: GetUsers(),
                 async: false,
                 datatype: "array",
                 id: 'UserID',
    
             }
    
        var dataAdapter = new $.jqx.dataAdapter(window.GridUserDataSource,
            {
                formatData: function (data) {
                    data.name_startsWith = $("#searchField").val();
                    return data;
                }
            }
        );
         
        $("#GridUser").jqxGrid(
        {   width: '100%',
            source: dataAdapter,
           
            height: '700px',
            pagesize: 30,
            pagesizeoptions: [25, 50, 100],
            theme: "Web",
            editable: false,
            columns: [
              { text: 'Name', datafield: 'Name', width: '20%', },
              { text: 'Surname', datafield: 'Surname', width: '20%', },
              { text: 'Email', datafield: 'Email', width: '20%', },
              { text: 'User Group', datafield: 'UserGroupName', width: '20%' },
              { text: 'Active', datafield: 'IsActive', width: '20%', threestatecheckbox: false, columntype: 'checkbox' },
    
            ],
    
        });

    I want to get the data like this

    thank you very much

    in reply to: spreadsheet cell validation spreadsheet cell validation #67657

    mustafa
    Participant

    thank you dimitar

    in reply to: row mouseout event row mouseout event #67287

    mustafa
    Participant

    Hi peter
    Thank you for reply

    in reply to: grid in dropdownlist get value grid in dropdownlist get value #67087

    mustafa
    Participant

    hi dimitar
    thank you for reply
    good samples 🙂

    in reply to: bottom sum not showing bottom sum not showing #67080

    mustafa
    Participant

    hi dimitar
    than you for reply

    in reply to: I can not filter I can not filter #67068

    mustafa
    Participant

    hello peter
    ok
    I’ll tell you more simple

    does not work in the dropdownlist popup window Focus has the problem
    I’m using bootstrap modal plugin
    example
    A similar problem
    http://www.jqwidgets.com/community/reply/reply-to-jqxgrid-bootstrap-3-2-0-modal-filtering-input-text-box-is-not-focusing-5/

    Where will I use this code ? Can you give full example?
    thank you

      $.fn.modal.Constructor.prototype.enforceFocus = function () {
                $(document)
                  .off('focusin.bs.modal') // guard against infinite focus loop
                  .on('focusin.bs.modal', $.proxy(function (e) {
                      if (this.$element[0] !== e.target && !this.$element.has(e.target).length) {
                          if ($(e.target).parents().hasClass('jqx-popup'))
                              return true;
                          this.$element.trigger('focus')
                      }
                  }, this));
            }
    in reply to: use symbol in the cell use symbol in the cell #67043

    mustafa
    Participant

    hi peter
    I’ve tried it
    I’ve tried it I see the symbol, but I see symbol but I do not see I am enter number

     var renderer = function (row, columnfield, value, defaulthtml, columnproperties) {
    
            return '<span>%</span>';
        }

    { text: 'TAX', datafield: 'TAX', width: '20%', cellsformat: 'c2', aggregates: ['sum', 'avg'], cellsrenderer: renderer },

    and

    I just want to change the symbol in the cell and bottom total
    Can I do with the cellsrenderer?
    thank you

    in reply to: use symbol in the cell use symbol in the cell #67040

    mustafa
    Participant

    hi peter
    Thanks for the reply
    but I do not want to use by country
    I just want to show symbol rate
    If you think I do not understand please you give me examples?
    and

    How can I use special characters in the cell?
    I just want to show it in the cell “%”
    for taxes
    example
    numberInput : %5

    thank you

    in reply to: grid focus error grid focus error #66863

    mustafa
    Participant

    grid in drop down code

    var data = GetInvoiceItems();

     columns: [
                             {
                                 text: "Invoice Item",
                                 width: '40%',
                                 datafield: "InvoiceItem",
                                 columntype: 'dropdownlist',
    
                                 createeditor: function (row, column, editor) {
      
                                     editor.jqxDropDownList({ source: data, displayMember: "Name", valueMember: "InvoiceItemID", promptText: "Please Select Item:" });
                                 }
                            , cellvaluechanging: function (row, column, columntype, oldvalue, newvalue) {
                                if (newvalue == "") return oldvalue;
                            }
    in reply to: grid focus error grid focus error #66860

    mustafa
    Participant

    or I tried it

      deleteButton.click(function (event) {
                    if (!deleteButton.jqxButton('disabled')) {
    
                        var selectedrowindex = $("#InvoiceItemGrid").jqxGrid('getselectedrowindex');
                        var rowscount = $("#InvoiceItemGrid").jqxGrid('getdatainformation').rowscount;
                        if (selectedrowindex >= 0 && selectedrowindex < rowscount) {
                            var id = $("#InvoiceItemGrid").jqxGrid('getrowid', selectedrowindex);
                            var commit = $("#InvoiceItemGrid").jqxGrid('deleterow', id);
    
                        }
     
    
                    }
    
                });

    mustafa
    Participant

    hi peter
    thank you

    in reply to: I can not filter I can not filter #66818

    mustafa
    Participant

    I use regular popup div
    <div id=”popupDiv”>/<div>
    and its working
    but if I use botbox plugin or bootstrap modal.. dropdown filter does not work
    why it does not work bootstrap modal ?

    in reply to: I can not filter I can not filter #66814

    mustafa
    Participant

    hello
    I did upgrade and worked on the main page

    but does not work on the popup page and

    and search click is not working

    popup page html

    <script src="/Assets/jqwidgets/scripts/jqx-all.js"></script>
    
    <link href="/Assets/jqwidgets/css/jqx.base.css" rel="stylesheet" />
    <link href="/Assets/jqwidgets/css/jqx.arctic.css" rel="stylesheet" />
    <link href="/Assets/jqwidgets/css/jqx.metro.css" rel="stylesheet" />
    
    <script src="/Assets/scripts/BeginLoad/CompanyBeginLoad.js"></script>
    <script src="/Assets/scripts/ViewPage/CompanyContact.js"></script>
    <script src="/Assets/scripts/ViewPage/Company.js"></script>

    popup view load for ajax code and I am using botbox plugin
    Could the problem botbox plugin?

    function LoadPopupView(path,title, css, icon) {
    
        $.ajax({
    
            url: path,
            type: 'GET',
            datatype: 'html',
            async: false,
            contentType: 'application/html',
            success: function (data) {         
                bootbox.dialog({
                    title: '<label style="margin-left:20px">'+title+'</label><img class='+icon+'></img>',
                    animate:true,
                    message: data,
                  
                    buttons: {
                        main: {
                            label: "Close",
                            className: "btn-primary"
                        }
                    },
                    className: css          
                });           
            }
        });
    
    }
    in reply to: I can not filter I can not filter #66729

    mustafa
    Participant

    and I tried it but it did not work

       var vessels = GetVessels();
       
        var adaptersource =
                  {
                      localdata: vessels,
                      datatype: "json",
                      datafields: [
                        { name: "Name" },
                        { name: "VesselID" }
                      ]
                  };
    
        var dataAdapter = new $.jqx.dataAdapter(adaptersource);
    
        $("#dropVesselList").jqxDropDownList({
            selectedIndex: 0,
            source: dataAdapter,
            promptText: "Select Vessel",
            displayMember: "Name",
            valueMember: "VesselID",
            height: 22,      
            placeHolder: "",
            filterable: true,
            enableBrowserBoundsDetection: true,
            dropDownHeight: 200,
            theme: "web",
        });

    search does not work


    mustafa
    Participant

    I look this
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/toolbar.htm?web
    but how can I do localdata filter search ?

Viewing 15 posts - 16 through 30 (of 65 total)