jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 136 through 150 (of 155 total)
  • Author
    Posts
  • in reply to: attempt to remove a row jqxgrid attempt to remove a row jqxgrid #87329

    walker1234
    Participant

    In addition to above question, I was wondering if there is a way to use the actual value of the column instead of row id ?

    in reply to: attempt to remove a row jqxgrid attempt to remove a row jqxgrid #87326

    walker1234
    Participant

    Hi Hristo,Thanks. Why is it deleting row with name “D” as well along with “B” in your JSFiddle ?

    Also, why do you have the following defined in the end?

    $('#jqxgrid').jqxGrid('deleterow', 1);
    $('#jqxgrid').jqxGrid('deleterow', 2);
    $('#jqxgrid').jqxGrid('deleterow', 3);

    Thanks

    in reply to: Hiding a Particular Row Hiding a Particular Row #87289

    walker1234
    Participant

    Can you help me how should I go about if I have to delete say for example a row with name “B” from showing up when the page loads? Here is the JSFiddle. Thanks

    in reply to: Removing timestamp from list Removing timestamp from list #87261

    walker1234
    Participant

    I was actually using dropdownlist for this working JSFiddle and I tried using renderer property like this in the JSFiddle which is not working. Is there something wrong I am doing? Thanks


    walker1234
    Participant

    Another problem I am facing in my application is the console log for the following line :

    let element = $('#panelContentjqxPanel:contains(' + value + ')'); is throwing undefined for me.


    walker1234
    Participant

    Thanks Ivo. I have a question, from where did you get #panelContentjqxPane for the line let element = $('#panelContentjqxPanel:contains(' + value + ')'); ? I couldn’t find it anywhere. Also, I changed it to jQxPanel and it worked without complaining and hence I am confused.


    walker1234
    Participant

    Some one please reply. Thanks


    walker1234
    Participant

    I am using linkrenderer as mentioned in the following post by Dimitar:(Reply #45857)

    http://www.jqwidgets.com/community/topic/customising-link-renderer-in-data-grid/

    My linkrenderer is as follows:

    var linkrenderer = function(row, column, value){
    
                        if(value.indexOf('#') != -1){
    
                          value = value.substring(0,value.indexOf('#'));
                        }
                        console.log("Inside Linkrenderer "+value );
    
                        var href = $('#columnPanel').jqxGrid('getcellvalue',row,"MyColumnName(s)");
    
                       console.log("href: "+href); // Outputs Undefined 
    
                       
    
                         return "<a href='"+ value + "''>" +value + "</a>";
    
                    
                      
    
                    }

    Questions:

    1) I couldn’t find any documentation online which has format of this line:

    `var href = $(‘#columnPanel’).jqxGrid(‘getcellvalue’,row,”MyColumnName(s)”);
    `
    I mean in the above line, do I need to specify cell instead of row ? Is it mandatory to mention MyColumnName(s) ?

    2) I am getting the value of the column in the form of link when I click it. For example , it takes me to the URL http://localhost:8080/mywebsite/A. Is it
    necessary to use cellclick instead of getcellvalue? I mean should I change it to var href = $('#columnPanel').jqxGrid('cellclick',row,"MyColumnName(s)");?

    3) Instead of linkrenderer taking me to a link and opening a new tab in the browser, I want to stay on the same page.
    I am basically looking to grab the value A upon the cellclick so that I can pass it whereever I want to. Please not that I would still like to show the
    cell values as hyperlinks. How can I modify linkrenderer in this case?

    Thanks


    walker1234
    Participant

    Thanks. I am actually using 3 jqxgrid and 1 jqxpanel in one page. So, when a user clicks on a particular grid row of one of the grid, I am showing jqxPanel and jqxgrid with one column and multiple rows simultaneously.

    The scrollbar shows up when I disable the other jqxgrid.

    And the scrollbar doesn’t shows up and the content gets locked when I show jqxPanel and jqxGrid simultaneously. By any chance you know what could be the reason behind scrollbar showing up if I have only jqxPanel attached with an onclick event and it doesn’t shows up when I have both jqxPanel and jqxgrid attached with the onclick event.

    in reply to: Closing a jqxgrid / Panel Closing a jqxgrid / Panel #86939

    walker1234
    Participant

    Thanks.I am wondering how would a user be able to get rid of the panel or grid to make use of the destroy method as there is no close icon? Also, once it’s destroyed, would it be possible to load it again or it would be gone forever?


    walker1234
    Participant

    More Information:

    I have following libraries already included in my code and still scroll bar isn’t showing:

       <script type="text/javascript" src="scripts/jqwidgets/jqxcore.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxdata.js"></script>
         <script type="text/javascript" src="scripts/jqwidgets/jqxpanel.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxbuttons.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxscrollbar.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxmenu.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxlistbox.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxdropdownlist.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxgrid.js"></script>
       
        <script type="text/javascript" src="scripts/jqwidgets/jqxgrid.selection.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxgrid.columnsresize.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxgrid.filter.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxgrid.sort.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxgrid.pager.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxgrid.grouping.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxcheckbox.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxcombobox.js"></script>
        <script type="text/javascript" src="scripts/jqwidgets/jqxgrid.edit.js"></script>
    in reply to: Passing JSON data to jqxPanel Passing JSON data to jqxPanel #86823

    walker1234
    Participant

    Thanks Hristo for the example. That helped me in getting the content into the panel.One problem I am facing is related to the scrollbar. I have 516 words document that is supposed to go inside the Panel and I am using the following parameters to define the boundaries of the panel:

    $("#myPanel").jqxPanel({ width: '750',height: '500'});

    But the document only shows 102 words and that’s it. It’s locked from the bottom, i.e., no scrollbar to see the rest of the document.I tried adding scrollBarSize:20 parameter but that didn’t change anything. Could you tell me why is it happening?


    walker1234
    Participant

    Hello,

    Could you tell me if it’s possible to go back to the previous state after clicking on consolidate button without refreshing the page?

    in reply to: Passing JSON data to jqxPanel Passing JSON data to jqxPanel #86787

    walker1234
    Participant

    A more detailed example will be helpful. I believe I am already till the point where I have used dataAdapter as shown below:

    `var source =
    {
    localdata: mydata_,
    datatype : “array”
    };
    var dataAdapter = new $.jqx.dataAdapter(source, {
    loadComplete: function (data) { },
    loadError: function (xhr, status, error) {
    } `

    in reply to: Passing JSON data to jqxPanel Passing JSON data to jqxPanel #86786

    walker1234
    Participant

    Thanks for your reply. Do you have any example which shows jQPanel and populating data in the same manner I mentioned?

Viewing 15 posts - 136 through 150 (of 155 total)