[CLOSED] Grid Panel removes the multiple spaces, while rendering

  1. #1

    [CLOSED] Grid Panel removes the multiple spaces, while rendering

    Hi,

    In the given example http://mvc.ext.net/#/GridPanel_Edita..._DirectMethod/

    If I enter multiple spaces in between the company name. "3m[space][space][space]Co"
    after pressing enter, it converts multiple spaces into one space "3m Co".


    How can I retain my original value, I want that ext.net should not remove the spaces in between.

    Thanks,
    Rajiv Dutt
    Last edited by Daniil; Feb 28, 2014 at 4:25 AM. Reason: [CLOSED]
  2. #2
    Grid doesn't remove spaces. Just multiple spaces are shown such way in html
    You can check it using the following html in your page
    <div>A           B</div>
    If you try to edit again the cell with multiple spaces the you will see that spaces are presented in text field (or check submitted data on the server side)
    If you want to see multiple spaces in the cell then use pre tags in the Renderer
    <Renderer Handler="return '<pre style=\'margin:0px;\'>' + value + '</pre>';" />

Similar Threads

  1. [CLOSED] date rendering in grid panel
    By EddieJensen in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 25, 2013, 7:25 PM
  2. [CLOSED] Grid panel cell is not rendering after insert
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 06, 2013, 12:49 PM
  3. Problem of rendering tha last column of Grid panel
    By pars.engineer in forum 1.x Help
    Replies: 0
    Last Post: Oct 10, 2012, 8:08 AM
  4. Multiple Row Selection Grid Panel with out ctrl key
    By AnandVishnu in forum 1.x Help
    Replies: 2
    Last Post: Oct 03, 2011, 10:08 AM
  5. [CLOSED] Panel HTML removes styles?
    By IanPearce in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 16, 2011, 8:28 AM

Posting Permissions