Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
217 views

Hi,


I am having the RadGrid inside the PartialView and and do server side binding. But I noticed that OnCommand and OnRowDataBound commands are not invoked.  I guess it is supposed to fire those events but I am not sure why it is not.

 

<

 

ClientEvents OnCommand="Grid_Command" OnRowDataBound="Grid_RowDataBound" />

Thanks for your Help!

Thanks

 

Nikolay Rusev
Telerik team
 answered on 18 May 2009
2 answers
70 views
The previous version of RadControl had the definition for these properties but the latest version doesn't have. Please tell me the properties in the latest version which would do the same job.
Again the properties are:

(

TreeNodeCollection)nodes)[nodes.Count - 1].Nodes and node.ID

Also, the methods :
RadTreeView.FindNodeById, RadMenu.FindItemById

are made internal in the new version, please let me know the replacement of that as well.

Thanks
Abhishek

 

abhishek
Top achievements
Rank 1
 answered on 18 May 2009
1 answer
120 views
Hi,

I want to put validation for the textboxes of RadGrid when an insert/update takes place.

- maximum numeric value 3 digits.
- not allow to leave blank.
- only allowed numeric values.

Thanks.

Regards
Syed Arshad
Princy
Top achievements
Rank 2
 answered on 18 May 2009
3 answers
79 views
The changes are:
  • The inclusion of a <LABEL> for edit
  • Placing the label text into a <TH>

We got recently dinged on this by a Section 508 certification firm.

For improved clarity:  http://demos.telerik.com/aspnet-ajax/input/examples/common/orderform/defaultcs.aspx 

<table cellpadding="0" summary="Order form" cellspacing="10" style="MARGIN-LEFT: 10px">

<tr> 
    <td>Price</td> 
<td> <span id="RadNumericTextBox1_wrapper" class="RadInput RadInput_Default" style="white-space:nowrap;"><input type="text" value="$99.99" id="RadNumericTextBox1_text" name="RadNumericTextBox1_text" class="riTextBox riEnabled" style="width:125px;" />.....</span> </td>

should appear like:

<table cellpadding="0" summary="Order form" cellspacing="10" style="MARGIN-LEFT: 10px">

<tr> 
            <th><label for="RadNumericTextBox1_text">Price</label></th> 
<td> <span id="RadNumericTextBox1_wrapper" class="RadInput RadInput_Default" style="white-space:nowrap;"><input type="text" value="$99.99" id="RadNumericTextBox1_text" name="RadNumericTextBox1_text" class="riTextBox riEnabled" style="width:125px;" />.....</span> </td>

Many thanks for your prompt attention to this.  This request would apply to at least the following:

  • telerik:GridBoundColumn
  • telerik:GridCheckBoxColumn
  • telerik:GridDateTimeColumn
  • telerik:GridDropDownColumn
  • telerik:GridHTMLEditorColumn
  • telerik:GridMaskedColumn 
  • telerik:GridNumericColumn
Rosen
Telerik team
 answered on 18 May 2009
1 answer
85 views
Hi,

Please, wath can i do to limit the size of the html content in RadEditor.

Thanks
Rumen
Telerik team
 answered on 18 May 2009
2 answers
227 views
Hi. I have a single page radgrid. Is there any way to render the last row as the footer?

Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 18 May 2009
2 answers
142 views
Hi All,

 I want to bind the gird using code behind. Iam able to bind the grid in code behind, but how to bind the detailstable in the code bind .here is my code. can any one please let me know, how can i do this ........


Pls its very urgent as i have to bind the record depeding upon the values selected. so iam doing this way.



 protected void RadGrid1_PreRender(object sender, EventArgs e)  
        {  
            foreach (GridDataItem item in RadGrid1.MasterTableView.Items)  
            {  
                if (item.Expanded)  
                {  
                    RadGrid1.MasterTableView.DetailTables[0].DataSource = GetData(new SqlCommand("select regionID,RegionDescription from region"));  
                    RadGrid1.MasterTableView.DetailTables[0].DataBind();  
                    RadGrid1.MasterTableView.DetailTables[0].Visible=true;  
                      
                        }  
        } 




<telerik:RadGrid ID="RadGrid1" OnPreRender="RadGrid1_PreRender" runat="server" Skin="Web20" 
    AutoGenerateColumns="False" AllowSorting="True" 
            AllowPaging="True" PageSize="5" GridLines="None" ShowGroupPanel="True" OnItemDataBound="RadGrid1_ItemDataBound"   
            > 
                          
 
             <MasterTableView NoMasterRecordsText="" DataKeyNames="RegionID" 
                            Width="100%" ClientDataKeyNames="RegionID" TableLayout="Fixed">  
                            <Columns> 
                                <telerik:GridBoundColumn HeaderText="RegionID" DataField="RegionID" UniqueName="RegionID">  
                                    <HeaderStyle Width="75px" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn HeaderText="Region" DataField="Region"   
                                UniqueName="Region">  
                                  </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn HeaderText="Total Sales" DataField="Total Sales"   
                                UniqueName="Total Sales">  
                                </telerik:GridBoundColumn> 
                                  <telerik:GridBoundColumn HeaderText="Total Quantity" DataField="Total Quantity"   
                                UniqueName="Total Quantity">  
                                </telerik:GridBoundColumn> 
                                 <telerik:GridBoundColumn HeaderText="Company Name" DataField="Company Name"   
                                UniqueName="Company Name">  
                                </telerik:GridBoundColumn> 
                                 <telerik:GridBoundColumn HeaderText="Percent Sales" DataField="Percent Sales"   
                                UniqueName="Percent Sales">  
                                 <HeaderStyle Width="138px" /> 
                                </telerik:GridBoundColumn> 
                                                               
                            </Columns> 
                           
                          <DetailTables> 
                            
                          <telerik:GridTableView AutoGenerateColumns="false" GridLines="none" DataKeyNames="RegionID" ClientDataKeyNames="RegionID" Width="100%" Height="100%">  
                           <ParentTableRelation> 
                                <telerik:GridRelationFields DetailKeyField="RegionID" MasterKeyField="RegionID" /> 
                            </ParentTableRelation> 
                          <Columns> 
                            
                          <telerik:GridBoundColumn Headertext="Region" DataField="RegionID" UniqueName="RegionID"></telerik:GridBoundColumn> 
                          <telerik:GridBoundColumn HeaderText="RegionDescription" DataField="RegionDescription" UniqueName="RegionDescription"></telerik:GridBoundColumn> 
                                                     
                          </Columns> 
                          </telerik:GridTableView> 
                          </DetailTables> 
                                                
               </MasterTableView> 
              
          
    </telerik:RadGrid> 
Qaja Mohiddin
Top achievements
Rank 1
 answered on 18 May 2009
3 answers
124 views
Hi All,

I'm trying to fix an issue with an export to excel functionality requirement I have.  Basically I need to sort the grid before exporting to excel.  I'm trying this at the moment:

private void OnExportToExcelClicked(object sender, EventArgs e)
{
            grid.MasterTableView.SortExpressions.Clear();
            grid.MasterTableView.SortExpressions.AddSortExpression(new GridSortExpression {FieldName = whateverFieldName, SortOrder = GridSortOrder.Ascending});
            grid.MasterTableView.Rebind();

            grid.MasterTableView.ExportToExcel();
}

However this is not working.

Is there anything I'm missing here?

Thanks

Guido Tapia
Guido Tapia
Top achievements
Rank 1
 answered on 17 May 2009
2 answers
114 views
Hi,

I am able to display the rows by grouping when i drag column header and drop on the above.

What i need is when the page loads, the particular column will automatically grouped. Lets say "Customer Name".

I mean without drag and drop, i want "Customer Name" column group automatically when the page loads.

Thanks.

Regards
Arshad

Syed
Top achievements
Rank 1
 answered on 16 May 2009
1 answer
126 views
Hi

Is it possible to alter the style (make bold etc) of a day in the RadCalendar, based on a date found when looping through the recordsets that build my appointments?

Thanks
Peter
Telerik team
 answered on 16 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?