jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • in reply to: Calendar Icon for DropDownList Calendar Icon for DropDownList #79560

    Vinay Reddy
    Participant

    Any update on this please

    in reply to: Default Tree Selection Default Tree Selection #79559

    Vinay Reddy
    Participant

    Any update on this please

    in reply to: Default Tree Selection Default Tree Selection #79505

    Vinay Reddy
    Participant

    Perfect, this is to my expectation.
    Thanks for the Help Hristo Hristov.

    I feel much helpful if this case is also addressed.
    Above demo works fine only when complete tree is expanded, if we do not expand this is not to the expectation. Can you please do the selection of first child by expanding only first parent level instead of complete tree.

    Thanks for the response, this made my work little better.

    in reply to: Calendar Icon for DropDownList Calendar Icon for DropDownList #79493

    Vinay Reddy
    Participant

    Thanks,

    I had already seen this demo and would not suffice my requirement. In the demo what you have suggested has icon for all dropdown items, but my actual requirement is for a dropdown item “Date Range” i need to have a calendar icon(not at left), where on selection of that calendar icon a menu should be opened where i can choose date range.

    Thanks.

    in reply to: Default Tree Selection Default Tree Selection #79455

    Vinay Reddy
    Participant

    Thanks this has worked.
    But i need to check the currentItem.level == 1 or not, if my child is at level 2 then this does not work.
    So can i know weather the current item is leaf/child or not. If i know the currentitem is child then i can select that item.

    Thanks

    in reply to: Default Tree Selection Default Tree Selection #79437

    Vinay Reddy
    Participant

    Ok let me be more clear.

    I will be loading a tree where data required for tree will be built at server and sent to client.
    Now my requirement is to select first child of the tree by default. How can i achieve this.

    In the previous demo what you have suggested has static data and selection is done based upon the id (“government”) which is known child. But in my case the data from server will be dynamic.

    in reply to: Default Tree Selection Default Tree Selection #79393

    Vinay Reddy
    Participant

    Thanks for your help Hristo Hristov.

    In the demo i see selection is done based on the id(“government”) which is known. In my case i have a client-server call where i dont know what is the id to be used to get selected.

    All i need is to just select child item from the response what i receive from server through any mechanism.

    Thanks


    Vinay Reddy
    Participant

    Thanks for the solution, it has worked properly in the given example but when i tried to integrate i am not able to load the description. I am able to load ID and Label but not description. I would appreciate if you can please check my code and let me know where i am wrong.

    Thanks.

    $.ajax({
    type: “GET”,
    url: “getGroupsData”,
    datafields: [{
    name: ‘id’
    }, {
    name: ‘parentid’
    }, {
    name: ‘text’
    }, {
    name: ‘desc’
    }],
    success: function(result) {
    var gridSource = {
    localdata: result,
    datatype: ‘json’
    };
    var dataAdapter = new $.jqx.dataAdapter(gridSource);
    dataAdapter.dataBind();
    var records = dataAdapter.getRecordsHierarchy(‘id’, ‘parentid’, ‘items’, [{
    name: ‘text’,
    map: ‘label’
    }, {
    name: ‘desc’,
    map: ‘value’
    }]);
    $(‘#groupsTree’).jqxTree({
    source: records,
    width: ‘100%’,
    height: ‘100%’
    });
    }
    });

    $(‘#groupsTree’).on(‘select’, function(event) {
    var args = event.args;
    var item = $(‘#groupsTree’).jqxTree(‘getItem’, args.element);
    var queryName = item.label;
    var queryId = item.id;
    var description = item.value;
    alert(description);
    });

    Response what i am getting from server is:

    [{“id”:”565ea97cb9eacf176d2a84da”,”parentid”:”565ea96bb9eacf176d2a84d4″,”text”:”BandWidth”},{“id”:”565e8a35b9eacf176d2a7ee8″,”parentid”:”565ea97cb9eacf176d2a84da”,”text”:”Bandwidth by Hour of Day and Direction”,”desc”:”This report shows the amount of total traffic from sources behind the devices for each hour of the day.”},{“id”:”565e8a28b9eacf176d2a7ee4″,”parentid”:”565ea97cb9eacf176d2a84da”,”text”:”Source and Destination by Direction”,”desc”:”This report provides information on the source and destination IPs segregated by direction (of the traffic) and action taken. The report also shows the count of such events and the amount of data transferred in bytes.”},{“id”:”565e8a2eb9eacf176d2a7ee7″,”parentid”:”565ea97cb9eacf176d2a84da”,”text”:”Source and Destination by Port”,”desc”:”This report provides information on the source and destination IPs segregated by port and protocol. The report also shows the count of such events and the amount of data transferred in bytes”}]


    Vinay Reddy
    Participant

    Any update on this please.

    in reply to: Failed to select Today date Failed to select Today date #67807

    Vinay Reddy
    Participant

    HI,

    I have a requirement where i need to restrict user to select previous dates while filling a form. But in edit case of the same form i need to show selection of previous dates also.

    Below is my fiddle link to check the issue: http://jsfiddle.net/yennamvinay/3UguZ/330/
    In this fiddle i need to select date as 26 but it is selecting today’s date.

    Regards,
    Vinay Reddy

    in reply to: Get Selected Cell Get Selected Cell #67610

    Vinay Reddy
    Participant

    Peter,

    As per your solution ‘getselectedcells’ is working fine but when my gird is a single cell selection then why should i call ‘getselectedcells’ instead of ‘getselectedcell’. This is more confusing.

    Regards,
    Vinay Reddy

    in reply to: Get Selected Cell Get Selected Cell #67540

    Vinay Reddy
    Participant

    Can i know what have you understood the question?

    I had asked after clearing the selection of cell using ‘clearselection’ and if i opt ‘getselectedcell’ then previous selected cell object details are given instead i should not get any details as there is no selection because ‘clearselection’ is performed.

    Please give proper resolution.

    Regards,
    Vinay Reddy


    Vinay Reddy
    Participant

    Yes i agree that In your previous post you wrote that you do not have such feature and still you do not have. But i am asking is there any example or workaround where i can achieve this, why because i cannot just leave that i don’t have feature in our product.

    If there is nothing to update then please reply back as ‘we are helpless on this issue’.

    Regards,
    Yennamvinay


    Vinay Reddy
    Participant

    Is there any update on this Please…


    Vinay Reddy
    Participant

    I know that there is no direct solution which you people must think on providing this by default.

    Instead please provide any mechanism to achieve this instead of giving answer as ‘NOT THERE’

Viewing 15 posts - 1 through 15 (of 17 total)