This is a migrated thread and some comments may be shown as answers.

On clint side binding time cloums show as [Object object]

0 Answers 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mohammad sadegh
Top achievements
Rank 1
Mohammad sadegh asked on 08 Feb 2012, 08:27 AM
HI

this is my grid tag
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false">
                          <ClientSettings>
                              <Selecting AllowRowSelect="true" />
                          </ClientSettings>
                          <MasterTableView>
                              <Columns>
                                  <telerik:GridBoundColumn DataField="ID" HeaderText="شماره" UniqueName="ID">
                                  </telerik:GridBoundColumn>
                                  <telerik:GridBoundColumn DataField="GeneralDate"
                                      HeaderStyle-Font-Names="Tahoma" HeaderText="تاریخ"
                                      ItemStyle-Font-Names="Tahoma" DataFormatString="{0:yyyy/MM/dd}">
                                  </telerik:GridBoundColumn>
                                  <telerik:GridBoundColumn DataField="time" HeaderStyle-Font-Names="Tahoma"
                                      HeaderText="ساعت" ItemStyle-Font-Names="Tahoma" UniqueName="time" >
                                  </telerik:GridBoundColumn>                                   
                              </Columns>
                          </MasterTableView>
                      </telerik:RadGrid>


and this is my function that bind my grid on client side:
var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
           tableView.set_dataSource(result);
           tableView.dataBind();

after data bind the time colum show [object Object] for every rows?
why? and how can i solve this problem ?

Best regards,
mohammad

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Mohammad sadegh
Top achievements
Rank 1
Share this question
or