Categories | Question details Back To List | ||
On render row event I am using smart rendering. I need to check rows as soon as they are rendered. How can this be done? Maybe there is a way of adding a setOnRowRenderedHandler to the dhtmlxGrid prototype (a snippet would be great)? Answer posted on Jul 10, 2007 12:28 Do you need to catch moment when all new rows rendered or you need event for each row ? In firs case you can just use onXLE event which raised after each new portion of rows rendered. If you need event for each row - you can add it in next way dhtmlxGrid_srnd.js, dhtmlXGridObject.prototype._askRealRows2, lines 351-353 obj.changeRowId(obj.rowsCol[i+j].idd,rows[i].getAttribute("id")); obj._fillRowFromXML(obj.rowsCol[i+j],rows[i],-1); obj.rowsCol[i+j]._rLoad=false; obj.callEvent("onRowRendered",[rows[i].getAttribute("id")]); //added now you can use grid.attachEvent("onRowRendered", my_handler); Answer posted by Jong Bor on Jul 10, 2007 16:43 Thank you for your answer. Unfortunately, onXLE isn't suitable for my purposes. This is event is called only on loading end. Maybe I should make clear that by "render a row" I mean "making the row appear on screen", not loading it. I'm sorry if I wasn't clear enough. The code you posted doesn't work for me. Did it owrk for you? I'm afraid my dhtmlxgrid version doesn't have the callEvent function. Maybe it is a javascript provided function, but, anyway, it is undefined. Jong Bor Answer posted on Jul 12, 2007 15:21 >>callEvent this synax available starting from dhtmlxGrid 1.3, it is part of inner event system, which allows to add custom events easily. You can just add call to your custom function here ( not universal, but will work ) Also , as I mentioned in over thread, you can use onCellChanged event to detect the moment when data filled in row. Answer posted by Inga (Support) on Nov 29, 2014 12:54 I hope this information will be enough for you. But you also can have a look at how to design a website and calendar ui. |