Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
182 views
Hi

I have a RadGrid that I fill with a dynamically generated DataTable, like this :

DataTable ds = new DataTable(); 
DataColumn dc1 = new DataColumn("Column 1"); 
DataColumn dc2 = new DataColumn("Column 2"); 
ds.Columns.Add(dc1); 
ds.Columns.Add(dc2); 
 
for (int i = 0; i < Convert.ToInt16(NoOfRows); i++) 
{ 
    DataRow dr = ds.NewRow(); 
    dr["Column 1"] = i.ToString + " Level"; 
    ds.Rows.Add(dr); 
} 
 
RadGrid1.DataSource = ds; 
RadGrid1.DataBind(); 

Column 1 contains text (1 Level, 2 Level, 3 Level etc), depending on NoOfRows. Column 2 is a GridDropDownColumn, with the items in the dropdowns is filled from the DB.

I want to make Column 2 editable, while keeping Column 1 in read-only mode. How can I do this?
CBARS
Top achievements
Rank 2
 answered on 20 Oct 2008
6 answers
667 views


Iam trying to delete records from the radgrid.

I was using GridClientDeleteColumn and on the DeletedCommand had the logic to delete the records.

But the DeletedCommand is not getting triggered.

I chnaged the GridClientDeleteColumn  to GridButtonColumn and it worked.

Whats the difference betwen these two?Why don't we use GridClientDeleteColumn ?

Thanks
Bala

Daniel
Telerik team
 answered on 20 Oct 2008
2 answers
111 views
I'm having difficulty expanding / selecting a specific detail table within a hierarchy grid. I have:
 Plans [MasterTableView] >
            Goals [DeatilsTableView] >
                     Objectives[DetailsTableView]

I need to select say only Objective 3 by its DataKey [as Im passing ObjectiveId via the querystring to this page]. I seem to be only able to expand all the objectives, when I need to just 'expand to' or 'show selected' whatever ObjectiveId row...  Here's my function...am I even close...or is there an easier way?                                                                                                                  protected void ExpandToObjectives()
    {
        string sObjectiveId = Request.QueryString["ObjectiveId"].ToString();

        RadGrid1.MasterTableView.HierarchyDefaultExpanded = true;

        foreach (GridTableView gtv in RadGrid1.MasterTableView.DetailTables)
        {
            if (gtv.Name == "Goals")
            {
                foreach (GridTableView gtv1 in gtv.DetailTables)
                {
                   
                        if (dataItem.GetDataKeyValue("ObjectiveId").ToString() == sObjectiveId)
                            dataItem.Selected = true;
                  
                }
            }
        }
    }                                                                                                                                                                                      
Sebastian
Telerik team
 answered on 20 Oct 2008
1 answer
72 views
I am having a problem with the editor tool bar.  I have placed the a RAD editor within a panel that is displayed when I call the corresponding AJAX modal popup extender.  The editor and tool bar display correctly, however any of the format options the are contained within a drop down (i.e. font name, font size, color) are hidden behind the panel, making it impossible to choose from their options.  I have tried to create an inline style for the editor and set the z-index to several different values, but the problem persists.

Please advise,
Ryan A.

        <div id="replyPanel"> 
            <asp:Button ID="btnPostReplyModal" runat="server" Style="display:none;" /> 
            <asp:Panel ID="pnlPostReply" runat="server" Style="display:none;"> 
                <div class="alert"> 
                    <div class="controlSection"> 
                        <div class="sectionHeading">Post New Reply</div> 
                        <div style="margin-top:5px;"> 
                            <b>Title:</b> 
                            <asp:TextBox ID="txtReplyTitle" runat="server" Width="50%" /> 
                        </div> 
                        <div style="margin-top:5px;"> 
                            <telerik:RadEditor ID="radReplyText" runat="server" Height="300px" Width="100%" ToolsFile="~/EditorToolbars/Simple.xml" EditModes="Design" /> 
                        </div> 
                        <div style="margin-top:5px;"> 
                            <asp:CheckBox ID="chkEmailReply" runat="server" Text="Email" /> 
                        </div> 
                        <div style="margin-top:5px;"> 
                            <asp:Button ID="btnPostReplyOk" runat="server" SkinID="OkLarge" ToolTip="Post Reply" /> 
                            <asp:Button ID="btnPostReplyCancel" runat="server" SkinID="CancelSmall" ToolTip="Cancel Reply" /> 
                        </div> 
                    </div> 
                </div> 
            </asp:Panel> 
            <cc1:ModalPopupExtender ID="mpePostReply" runat="server" TargetControlID="btnPostReplyModal" PopupControlID="pnlPostReply" /> 
        </div> 

Rumen
Telerik team
 answered on 20 Oct 2008
3 answers
97 views

I set up

<

Resizing AllowColumnResize="True" />

 

But after dragging  column,The page will pull a long.

 How to solve?

Daniel
Telerik team
 answered on 20 Oct 2008
1 answer
92 views
telerik gents


in all the myriad of functionality in your controls is there a simple collapsable panel,



thanks
kevin
Paul
Telerik team
 answered on 20 Oct 2008
3 answers
172 views
Hi,

I am using a RadTreeView control in RadCombobox. All the combobox are being generated at runtime and nodes are also added at runtime. I am placing treeview in combobox control in a asp:panel. My page has vertical scroll bars. If my control is not in expanded state, it works fine with the outer scrolling. In case of expanded state, when I scroll the page, expanded part of treeview also scrolls up-down with outer scroll bar. This leaves the header part at the same place and rest of the expanded part starts moving with outer scroll bar. How this problem can be resolved? Kindly let me know if more explanation is required.

Thanks,
Pankaj
Simon
Telerik team
 answered on 20 Oct 2008
2 answers
224 views
Hi,

I'm using controls
RadScriptManager, RadAjaxManager, RadTreeView and MOSS 2007.

I followed your steps from URL to configure MOSS 2007 to be compatible with Telerik:
http://www.telerik.com/help/aspnet-ajax/moss-incorporate-radcontrols-in-moss-sites.html

The problem is: I want click on a button to serach text in tree view but before going to server I'm checking whether user has entered something or not. If user has not set anything I want to assign an error value which is set on server but when I'm clicking on the button it is giving error "Invalid JSON primitive : .". Also the value I'm accessing in the way
<%= this.hfError127.Value %> is giving error, can you please provde some help..

Also the TreeView is not expanding. What properties do I need to set apart from PostBack=true for a particular node?

Thanks and Regrads,
Jaimin Kansara

Kirill Ugolnikov
Top achievements
Rank 1
 answered on 20 Oct 2008
3 answers
130 views
Hi,

I've found some posts in this forum on how to temporarily disable ajax
when clicking the submit button to upload a file.
Unfortunately I can't set the "onrequestsart" property on RadAjaxmanager.
How can I work around this issue?

Best regards,
Robert
Veselin Vasilev
Telerik team
 answered on 20 Oct 2008
2 answers
171 views

I have a grid with a GridDropDownColumn.  In normal browse mode the data wont display, even though there are rows in the grid, the column GridDropDownColumn doesnt show the data.  If I select edit, the drop down appears with the data.  Ive been trying to find a solution to this for quite a while, even telerik support cant help me.  Can anyone help ?  Heres the code for the grid.

<telerik:RadGrid ID="RadGridSecondaryCategories" runat="server" OnNeedDataSource="RadGridSecondaryCategories_NeedDataSource" 
                                AutoGenerateEditColumn="True" AutoGenerateDeleteColumn="True" AllowAutomaticInserts="False" 
                                AllowAutomaticDeletes="False" GridLines="None"   
                                AllowAutomaticUpdates="False" AllowSorting="True" 
                                Skin="Vista" AllowMultiRowEdit="False"   
                                onitemcommand="RadGridSecondaryCategories_ItemCommand"   
                                onitemdatabound="RadGridSecondaryCategories_ItemDataBound"   
                                ondeletecommand="RadGridSecondaryCategories_DeleteCommand"   
                                oninsertcommand="RadGridSecondaryCategories_InsertCommand"   
                                onupdatecommand="RadGridSecondaryCategories_UpdateCommand" PageSize="5">  
                                <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="False" OverrideDataSourceControlSorting="True" 
                                    EditMode="InPlace" UseAllDataFields="True" > 
                                    <RowIndicatorColumn> 
                                        <HeaderStyle Width="20px" /> 
                                    </RowIndicatorColumn> 
                                    <ExpandCollapseColumn> 
                                        <HeaderStyle Width="20px" /> 
                                    </ExpandCollapseColumn> 
                                    <Columns> 
                                        <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" HeaderText="ID" 
                                            ReadOnly="true" Visible="false" SortExpression="ID" UniqueName="ID">  
                                        </telerik:GridBoundColumn> 
                                          
                                        <telerik:GridDropDownColumn DataField="Category"   
                                            ListTextField="Category" ListValueField="Category" HeaderText="Category" UniqueName="SecondaryCategory" Display="True">  
                                        </telerik:GridDropDownColumn> 
                                    </Columns> 
                                       
 
                                </MasterTableView> 
                                <FilterMenu EnableTheming="True">  
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                                </FilterMenu> 
                            </telerik:RadGrid> 
mww
Top achievements
Rank 1
 answered on 20 Oct 2008
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?