Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
206 views
I've been searching the documentation for a few hours, but have had no luck finding what I'm looking for.  What I need to do is display any integer and decimal data in a RadGrid formatted to a specified culture setting.  I can't hardcode the formats of each column since I am binding a datatable to the grid at runtime and each time it may have different columns with different datatypes.

I want to take a CultureInfo object, and just assign it to the grid and have it automatically format any columns with integer or decimal type data as appropriate to the culture.  Is there any way to do this? 

If its not that easy, is there some way to take the culture numeric format settings and apply them at item data bound time or something?

Also, I don't want to use resource files.  The number formats should be retrieved from the .net CultureInfo object.
Yavor
Telerik team
 answered on 16 Dec 2009
3 answers
137 views
Hi

We are using ajax rad tree view in our application with custom skin. And there is a requirement to change the expanded node font size & font weight.

Please suggest me to get the solution

Thanks in advance,
Balaji Velasiri
Balaji
Top achievements
Rank 1
 answered on 16 Dec 2009
1 answer
156 views
I want to have my RadCalendar let the user select as many dates as they want on the calendar without causing a postback to the server, because I have a Submit button that causes the PostBack once the user is satisfied with the date selections.

But, I also set Special Days for each month (public holidays, non-working days, special events, etc.) within the view startdate and enddate on the server-side. I cannot do this client-side. Therefor, I need the DefaultViewChanged server-side event to be raised so I can refresh the new Special Days for the given view. Hence, a PostBack is required.

How can I cause a PostBack raising the DefaultViewChanged server-side event, but no PostBack for a date selection?
Shinu
Top achievements
Rank 2
 answered on 16 Dec 2009
1 answer
222 views
How to change StartTime and EndTime For TimeView of RadTimePicker in TemplateField Of RadGrid?
Princy
Top achievements
Rank 2
 answered on 16 Dec 2009
4 answers
148 views

Hi Telerik,

I have an issue with the RadGrid.
I have grouped the records in the grid using the "Grouping" property of RadGrid. The grouping is done for the names of certain persons. Here is the associated code:

<GroupByExpressions>
<telerik:GridGroupByExpression> 
<SelectFields> 
<telerik:GridGroupByField FieldName="Name" HeaderText="Name" />
</SelectFields>  
<GroupByFields> 
<telerik:GridGroupByField FieldName="Name" HeaderText="Name" />
</GroupByFields> 
</telerik:GridGroupByExpression> 
</GroupByExpressions>

The grouping works fine. But the names appear in their alphabetical order and I dont want that.
I'm binding the data from database. I have given the "order by" clause, but still its not working. I want the names appear in the grid in the order they are stored in the database table. I think the grouping has caused the problem.

Can you please suggest a way to avoid the alphabetical order display while grouping?

Thanks,
Pradeep Y. 

Princy
Top achievements
Rank 2
 answered on 16 Dec 2009
3 answers
170 views
Hi. I've got a RadComboBox inside an EditItemTemplate that gets populated in the code behind. It needs to get populated in the code behind because the list it shows is specific to the parent table. When I perform an automatic update everything updates except this one RadComboBox. Thanks.

C#
protected void rgEnvironments_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridEditableItem && e.Item.IsInEditMode && e.Item.OwnerTableView.Name != "environments") 
        { 
            GridDataItem dataItem = e.Item.OwnerTableView.ParentItem; 
            int id = Intranet.Str2Int(dataItem.GetDataKeyValue("system_id").ToString()); 
            GridEditableItem moduleEdited = (GridEditableItem)e.Item; 
            GridEditableItem editItem = (GridEditableItem)e.Item; 
            Literal msv = (Literal)moduleEdited.FindControl("ltlModuleEdit"); // Grab selectedvalue from hidden literal 
            RadComboBox moduleCombo = (RadComboBox)moduleEdited["module"].FindControl("rcbModule"); 
            moduleCombo.DataSource = GetModuleDataTable(id); 
            moduleCombo.DataTextField = "module"; 
            moduleCombo.DataValueField = "module_id"; 
            moduleCombo.DataBind(); 
            if (null != msv) 
                moduleCombo.SelectedValue = msv.Text; 
        } 
    } 

ASPX
<telerik:GridTemplateColumn HeaderText="Module" UniqueName="module" HeaderStyle-Width="16%"> 
                                                        <ItemTemplate> 
                                                            <asp:Literal ID="ltlModule" Text='<%# Bind("module") %>' runat="server" /></ItemTemplate> 
                                                        <EditItemTemplate> 
                                                            <asp:Literal ID="ltlModuleEdit" Text='<%# Bind("module_id") %>' Visible="false" runat="server" /> 
                                                            <telerik:RadComboBox ID="rcbModule" runat="server" Skin="Default" /> 
                                                        </EditItemTemplate> 
                                                    </telerik:GridTemplateColumn> 






Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 16 Dec 2009
1 answer
181 views
I have a Radgrid with a GridClientSelectColumn.  I need to default the header and all row checkboxes to checked = true. 

Thanks in advance.
Princy
Top achievements
Rank 2
 answered on 16 Dec 2009
2 answers
128 views
hi all,

How to navigate all items in radgrid, even if i am using paging, following code navigate only first page(i.e. size of page is 10) items only,

foreach (GridDataItem item in rgEventResult.Items)
                        {
                            CheckBox chkSelected = item["SelectColumn"].Controls[0] as CheckBox;
                          
                            if (chkSelected != null && chkSelected.Checked)
                            {
                               
                            }
                        }

Thanks & Regards
Dharmesh



Amitkumar
Top achievements
Rank 1
 answered on 16 Dec 2009
0 answers
135 views
Hi Friends ,

I have one question . Can i make Preloader for website with ajaxlibrary of telerik ? if yes , how ?
because i want to make sure, loading of  all client-side script and resources file will be completed .


Thanks
peyman
peyman naji
Top achievements
Rank 1
 asked on 16 Dec 2009
1 answer
90 views
Hi:
I changed a working radgrid to use ContextMenu, but now the wrong row is getting updated (I am really trashing my customer table in the Northwinds DB).  I select a row to update, the correct row seem to being updated, but when the uddate is applied it updates a different key value.
Phil
Phil
Top achievements
Rank 2
 answered on 16 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?