Premium forums

Forums / Kendo UI Web / Grid / Right Alignment for number cell and virtualization of remote data

Right Alignment for number cell and virtualization of remote data

  • Oscar
    Oscar avatar

    08 Jun 2012 (Link to this post)

    Hello KendoUI team:
     I'm loading a great amount of data (about 1 thousand rows) in a kendogrid but i want to right align a numeric field.
    Would you please provide a sample of how to do this? Could your virtualization of remote data sample get the Order Id right aligned?
    I'm having problems with this if I use a jQuery function to rigth align my numeric cell of each row in my kendo grid.
    (Paging is not an option for me.)

    Any help will be appreciated.

    Sincerely,
    Oscar. 
  • Dimo
    Dimo avatar

    11 Jun 2012 (Link to this post)

    Hi Oscar,

    You can use a column template and insert a right-aligned wrapper to the cell value:

    http://jsfiddle.net/dimodi/neKRn/

    Greetings,
    Dimo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  • Oscar
    Oscar avatar

    12 Jun 2012 (Link to this post)

    Thank you, Dimo.
    I've used a column template like your sample and seems to work fine, but I need the grid to be editable in-cell (batch editing).
    I've updated your sample and when I add a new record, vertical scroll stops working.
    Please, try this http://jsfiddle.net/neKRn/3/ to reproduce the issue.
  • Dimo
    Dimo avatar

    13 Jun 2012 (Link to this post)

    Hello Oscar,

    The virtual scrolling mode has been designed chiefly for read-only scenarios. However, you can use it for editing as well, if the edit mode is set to popup, or if remote datasource is used.

    Regards,
    Dimo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  • Oscar
    Oscar avatar

    15 Jun 2012 (Link to this post)

    Hi Dimo,
    Our users are used to edit grids as if they were editing excel sheets: no paging, edit in cell, hundreds of rows. This is the way they can do their work faster. Do you have a date to develop virtualization of remote data also for editing/inserting rows in kendogrid? Is this a so strange requirement to be not supported by kendogrid?

    Yours faithfully
  • Dimo
    Dimo avatar

    15 Jun 2012 (Link to this post)

    Hello Oscar,

    I understand, but the data virutalization mechanism currently is not compatible with scenarios in which rows are appended to the <table> without rebinding the widget.

    Have you tried with a remote datasource as suggested in my previous reply?

    Kind regards,
    Dimo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  • Oscar
    Oscar avatar

    15 Jun 2012 (Link to this post)

    Hi Dimo,
    Sorry, but... Do you mean serverPaging by remote datasource? I always use serverPaging = false in my kendo datasources. My server-side is not prepared for paging. As I said in my first post, paging is not an option for me.
    Any workaround?
    Sincerely yours.
    Oscar.
  • Dimo
    Dimo avatar

    15 Jun 2012 (Link to this post)

    Hello Oscar,

    Remote datasource is one that is fetched by means of an URL, contrary to having the data as plain Javascript array. And yes, I am afraid server paging is required in this case for the virtual scrollbar to work with non-popup editing.

    Regards,
    Dimo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!

Read FAQ or see Kendo UI in action!

Launch Demos