jQuery UI Widgets Forums Grid Grid events

This topic contains 4 replies, has 2 voices, and was last updated by  Ridbark 11 years ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Grid events Posts
  • Grid events #52137

    Ridbark
    Participant

    Hello

    I need to know if an event exist when all cells have finish to create rendering?
    Why? Because in the rendering function, i create a div with an ID. Thanks to this ID, after, I can create a jqxProgressBar into this cell! But i can’t create it in the rendering function because the div with special ID is not in the DOM …
    So I need to create my jqxProgressBar after that all cells have finish to create rendering.

    This is my rendering function :

    columns[i]['cellsrenderer'] = function (row, columnfield, value, defaulthtml, columnproperties, data) {
    	self.widgetAdded[row + "_" + columnfield] = {'value' : value};
    	var cell = '<div id="' + row + '_' + columnfield + '"></div>';
    	return cell;
    };

    And what I have to do after each call to this function :

    for(var row in this.widgetAdded) {
    	this.$element.find("#" + row).jqxProgressBar({value: this.widgetAdded[row].value, showText: true});
    }

    Best regards,
    Ridbark

    Grid events #52139

    Dimitar
    Participant

    Hello Ridbark,

    Unfortunately, there is no such event. Moreover, while progressbar and other widgets can be implemented as editors, having them in cells is not supported.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Grid events #52142

    Ridbark
    Participant

    Mhm, so i will create a deferred event from jquery to do that! Because except this problem, the jqxProgressBar is good into a cell! (good rendering, it’s the most important!).

    I have also add a dropdownlist to one cell of my grid, and it works fine! But now, i wan’t to add a dropdownlist with checkboxes (so with multiple choice), and i have this error :

    Uncaught TypeError: Cannot read property 'firstChild' of null
    ...jqwidgets/jqxlistbox.js:7

    I don’t know why! Is it possible that you integrate only a part of jqxdropdownlist’s functionalities?
    And I can’t find a link to one jsfiddle to try the implementation of the jqxdropdownlist into a grid (or other editors)! Is it possible to have one example on jsfiddle?

    Best regards,
    Ridbark

    Grid events #52143

    Dimitar
    Participant

    Hi Ridbark,

    We have such examples in our jqxGrid demo page, in the Editing section. They are also available in the jQWidgets download package.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Grid events #52146

    Ridbark
    Participant

    Hi Dimitar,

    Thank you, I find the example (in Custom column editor). I didn’t check that example!

    Best regards,
    Ridbark

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

You must be logged in to reply to this topic.