telerik - String format issue in RadGrid -


while i'm trying bind string data rad grid not binding exact value have pulled data base.

for example i'm pulling data : - "a bc e f g" , binding same data rad grid, problem here rad grid column trimming out spaces , displaying :- "a bc efg"

here need bind exact data i'm pulling database. how do that?

i unable replicate out issue @ end.  code looks this: 

radgridpage.aspx

<%@ page language="c#" autoeventwireup="true" codefile="radgridpage.aspx.cs" inherits="radgridpage" %>  <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title> </head> <body>     <form id="form1" runat="server">     <div>         <telerik:radscriptmanager id="radscriptmanager1" runat="server">         </telerik:radscriptmanager>         <telerik:radgrid id="temptable" runat="server" skin="metrotouch" pagesize="5">             <mastertableview cssclass="temptable" style="border: 0; cellpadding: 0; cellspacing: 0"                 autogeneratecolumns="false">                 <columns>                     <telerik:gridboundcolumn headertext="tempdata" datafield="tempdata">                     </telerik:gridboundcolumn>                     <telerik:gridboundcolumn headertext="tempdata" datafield="tempdata">                     </telerik:gridboundcolumn>                 </columns>             </mastertableview>         </telerik:radgrid>     </div>     </form> </body> </html> 

radgridpage.aspx.cs

using system; using system.collections.generic; using system.linq; using system.web; using system.web.ui; using system.web.ui.webcontrols;  public partial class radgridpage : system.web.ui.page {     public class data { public string tempdata { get; set; } }      protected void page_load(object sender, eventargs e)     {         list<data> griddata = new list<data>()          {         new data(){tempdata="a bc e f g"},         new data(){tempdata="a bc e f g"},         new data(){tempdata="a bc e f g"},          };         temptable.datasource = griddata;      } } 

output:

enter image description here


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -