Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
145 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
163 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
173 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
116 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
133 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
87 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
1 answer
126 views
Hi,

I am having a requirement, a check box with 3 states(checked. not Checked, Not applicable). Please let me know, is this possible by using any of the Telerik's Controls?

Thanks, Malli
Schlurk
Top achievements
Rank 2
 answered on 15 Dec 2009
1 answer
117 views
Hi All,

Here i am using RadComboBox of years where i am using for loop to add years into the RadComboBox but i am unable to add i am getting error which is hilighted in Bold how can i convert DateTime.Now into sting and add it to the RadComboBox 

Here is the code

for (int i = DateTime.Now.Year; i >= 1920; i--){ddlYear.Items.Add(i.ToString());}

Can any one help me.

Thanks in Advance.
Schlurk
Top achievements
Rank 2
 answered on 15 Dec 2009
2 answers
68 views
BTW this works fine in Firefox but not in IE7 or 8.

I have a TreeView with ContextMenu's that call the following JS:
function onClientContextMenuItemClicking(sender, args) { 
        var menuItem = args.get_menuItem(); 
        var treeNode = args.get_node(); 
        menuItem.get_menu().hide(); 
        switch (menuItem.get_value()) { 
            case "rename": 
                treeNode.startEdit(); 
                break; 
        } 
    } 

I also have a RadAjaxManager so that this treeview triggers another panel:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadTreeViewDockets"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="PanelViewArea" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 

In IE8, when I hit the Rename Context menu, for an instant the node appears editable but then it immediately looses focus and is not editable. I also tried wrapping both the TreeView and the other Panel in a RadAjaxPanel but had the same result.

Not sure if this is a bug or if there is a workaround.. Thanks!





James Reategui
Top achievements
Rank 1
 answered on 15 Dec 2009
1 answer
100 views
Hi,

I need sample code for MOSS webpart.
I want "export to excel" feature in Ajaxified Radgrid.

Please send me a sample code.

Thanks,
Anwar
Daniel
Telerik team
 answered on 15 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?