Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
104 views
Hello

I have a button column with the button set to link button. Now without a confirmation dialog set the button executes my itemcommand event perfectly.If however i put the confirmation dialog on then it pops up the dialog but doesnt executed the itemcommand event. How can i cure this. Thanks in advance.                         



Jed Fletcher
Top achievements
Rank 1
 answered on 15 Jul 2010
5 answers
134 views
What are the known issues between IE6 and RadDock?

Our site homepage uses 2 RadDock panels that are populated by user controls.  Some users with IE6 can't see the panels.

Is it possible that the latest version of the AJAX controls will address this problem?
Patrick Heller
Top achievements
Rank 1
 answered on 15 Jul 2010
3 answers
154 views
Hi all,

I have a splitbar that I override the icon url with css. This works great, however when the splitbars are collapsed/expanded the icon flashes and shows the original telerik icon then back to my custom icon.

This may seem trivial as it does not affect the usage of the bars but aesthetically it does not look very good. Does anyone please know if there is a way to stop this behaviour?

Regards,
Ian W


Svetlina Anati
Telerik team
 answered on 15 Jul 2010
1 answer
102 views
Hi, I downloaded a new release today v2010.2.713.40 and suddenly the pages began to look wierd.
I found the error in a WebResource file where the font "Segoe UI" is misspelled to "Segoe  UI".

.RadForm.rfdTextbox input[type=
"text"],
 
.RadForm.rfdTextbox input[type="password"],
 
.RadForm.rfdTextarea textarea,
 
.RadForm.rfdTextarea textarea[disabled]:hover,
 
.RadForm.rfdTextbox input[disabled][type="text"]:hover,
 
.RadForm.rfdTextbox input[disabled][type="password"]:hover,
 
.RadForm .rfdCheckboxChecked,
 
.RadForm .rfdInputDisabled.rfdCheckboxChecked:hover
 
.RadForm .rfdCheckboxUnchecked,
 
.RadForm .rfdInputDisabled.rfdCheckboxUnchecked:hover,
 
.RadForm.rfdLabel label,
 
.RadForm .rfdRadioUnchecked,
 
.RadForm .rfdInputDisabled.rfdRadioUnchecked:hover,
 
.RadForm .rfdRadioUnchecked:hover,
 
.RadForm .rfdRadioChecked,
 
.RadForm .rfdInputDisabled.rfdRadioChecked:hover,
 
.RadForm .rfdRadioChecked:hover
 
{
 
    font-size: 12px;
 
    font-family: "Segoe  UI",Arial,Verdana,sans-serif;
 
}

Bozhidar
Telerik team
 answered on 15 Jul 2010
3 answers
165 views
Hello,
I have a user control in which I wish to place a RadToolBar. However, the toolbar does not render at all in the browser; it only shows what looks like a couple of link buttons. They still function normally and appear fine in the Visual Studio designer. How can I get the toolbar to render correctly? I have used it on several other pages (none of which are user controls) and it looks fine.

Toolbar code:
<telerik:RadToolBar runat="server" ID="SearchToolBar" OnButtonClick="SearchToolBar_ButtonClick">
<Items>
<telerik:RadToolBarButton ImageUrl="../images/search.gif" Text="Search" ToolTip="Search with selected terms" Width="200px"
                    runat="server" AccessKey="S" Value="SEARCH" meta:resourcekey="SearchButton" />
                <telerik:RadToolBarButton ImageUrl="../images/erase.gif" Text="Clear Search" ToolTip="Clear search items"
                    runat="server" AccessKey="C" Value="CLEAR" meta:resourcekey="ClearSearchButton" />
</Items>
</telerik:RadToolBar>

Screenshots:
Browser view
Visual Studio 2008 Designer View

Using Q1 2010 and IE7

Thank you
Josh
Top achievements
Rank 1
 answered on 15 Jul 2010
1 answer
127 views
Hi
We are tearing our hair out over getting the selected tab to change on a tabstrip after running some vb code. We are loading ascx's on demand using an adapted version of the Telerik demo. It all works fine - the ascx loads, populates itself, etc and shows on the multipage - but we are loading each ascx in a different tab and we cannot get the tabstrip selection to change. For example, we can press a search button on the ascx in the search tab and we then load a grid ascx which should appear on the list tab. The grid loads but the search tab still has red text (our "selected" font setting).

Even Telerik support have not been able to show us how to do this - - they re-write the page to use their demo mothod, but this does not give us the full functionality we are looking for. All the rest of our functionality is fine so we don't want to lose this.

Does ANYONE know how we can write a line of code in vb that will make the seleted tab change on the tabstrip? We have tried:

    myTab = myTabstrip.FindTabByValue(strCurrentMode)        'finds the correct tab

    myTab.Selected =

True

 


In hope,   Neil
Yana
Telerik team
 answered on 15 Jul 2010
3 answers
342 views

 

Hi,

I am new to telerik control. I am upgrading gridview to radgrid.

 I am getting error (see image 1.JPG) when i am using radgrid in asp:updatepanel control. am getting this error foreveryaction(like sorting, filtering, editing, row selecting, scrolling). Can anyone help me how to sove this.

I have a linkbutton column in radgrid. when i click the button i am getting error( see image 2.JPG). How to do it in radgrid. I just want to pull sId, orderId, and taskstatus when i clicked on a linkbutton. when i am trying to do this i am getting that error. Please help to solve this.

here is my code

<asp:UpdatePanel  ID="rg200UpdatePanel"  runat="server">
                        <ContentTemplate>
                            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                            </telerik:RadScriptManager>
                            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                                <ClientEvents OnRequestStart="onRequestStart" />
                                <AjaxSettings>
                                    <telerik:AjaxSetting AjaxControlID="rg200">
                                        <UpdatedControls>
                                            <telerik:AjaxUpdatedControl ControlID="rg200" LoadingPanelID="RadAjaxLoadingPanel1" />
                                            <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
                                        </UpdatedControls>
                                    </telerik:AjaxSetting>
                                    <telerik:AjaxSetting AjaxControlID="RadMenu1">
                                        <UpdatedControls>
                                            <telerik:AjaxUpdatedControl ControlID="rg200" LoadingPanelID="RadAjaxLoadingPanel1" />
                                            <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
                                        </UpdatedControls>
                                    </telerik:AjaxSetting>
                                </AjaxSettings>
                            </telerik:RadAjaxManager>
                            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
                            </telerik:RadAjaxLoadingPanel>
                            <input type="hidden" id="radGridClickedRowIndex" name="radGridClickedRowIndex" />
                            <telerik:RadGrid ID="rg200" runat="server" AutoGenerateColumns="False" PageSize="30"
                                Height="550px" Width="100%" AllowPaging="True" AllowSorting="True" AllowMultiRowSelection="True"
                                EnableHeaderContextMenu="True" GridLines="None" EnableHeaderContextFilterMenu="True"
                                AllowMultiRowEdit="true" AllowFilteringByColumn="True" OnPreRender="rg200_PreRender"
                                OnItemCreated="rg200_ItemCreated" EnableViewState="true" OnUpdateCommand="rg200_UpdateCommand"
                                AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"
                                OnPageIndexChanged="rg200_PageIndexChanged" OnItemCommand="rg216_ItemCommand">
                                <HeaderStyle Height="20px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White"
                                    HorizontalAlign="Center" BorderColor="White" BorderWidth="1px" />
                                <ExportSettings IgnorePaging="true" ExportOnlyData="true">
                                    <Pdf AllowModify="false" AllowPrinting="true" PageBottomMargin="" PageFooterMargin=""
                                        PageHeaderMargin="" PageHeight="11in" PageLeftMargin="" PageRightMargin="" PageTopMargin=""
                                        PageWidth="14in" />
                                </ExportSettings>
                                <MasterTableView GridLines="None" DataKeyNames="orderId" CommandItemDisplay="Top"
                                    EditMode="EditForms">
                                    <CommandItemTemplate>
                                        <div style="padding: 5px 5px;">
                                            <table>
                                                <tr class="customFont">
                                                    <td align="left">
                                                        <b>Bulk Actions</b>    
                                                    </td>
                                                    <td align="left">
                                                        <asp:LinkButton ID="btnEditSelected" runat="server" OnClick="btnEditSelected_click"
                                                            Visible='<%# rg200.EditIndexes.Count == 0 %>'>Edit Selected</asp:LinkButton>
                                                              
                                                    </td>
                                                    <td align="left">
                                                        <asp:LinkButton ID="btnUpdateEdited" runat="server" OnClick="btnUpdateEdited_click"
                                                            Visible='<%# rg200.EditIndexes.Count > 0 %>'>Update Editing</asp:LinkButton>
                                                              
                                                    </td>
                                                    <td align="left">
                                                        <asp:LinkButton ID="btnCancel" runat="server" OnClick="btnCancel_click" Visible='<%# rg200.EditIndexes.Count > 0 || rg200.MasterTableView.IsItemInserted %>'>Cancel Editing</asp:LinkButton>
                                                              
                                                    </td>
                                                    <td align="right">
                                                        <img style="border: 0px; vertical-align: middle;" alt="" src="Images/AddRecord.gif" />
                                                    </td>
                                                    <td align="left">
                                                        <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# !rg200.MasterTableView.IsItemInserted %>'>Add New Record</asp:LinkButton>
                                                              
                                                    </td>
                                                    <td align="right">
                                                        <img style="border: 0px; vertical-align: middle;" alt="" src="Images/Delete.gif" />
                                                    </td>
                                                    <td align="left">
                                                        <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected Records?')"
                                                            runat="server" CommandName="DeleteSelected">Delete Selected</asp:LinkButton>
                                                              
                                                    </td>
                                                    <td align="right">
                                                        <img style="border: 0px; vertical-align: middle;" alt="" src="Images/Refresh.gif" />
                                                    </td>
                                                    <td align="left">
                                                        <asp:LinkButton ID="LinkButton4" runat="server" CommandName="Rebind">Refresh</asp:LinkButton>
                                                                                   
                                                    </td>
                                                    <td align="left">
                                                        <asp:ImageButton ID="ExportToWordButton" runat="server" ImageUrl="~/images/ExportToWord.gif"
                                                            ToolTip="Export to Word" OnClick="ExportWord_Click" />
                                                             
                                                        <asp:ImageButton ID="ExportToExcelButton" runat="server" ImageUrl="~/images/ExportToExcel.gif"
                                                            ToolTip="Export to Excel" OnClick="ExportExcel_Click" />
                                                              
                                                        <asp:ImageButton ID="ExportToPdfButton" runat="server" ImageUrl="~/images/ExportToPdf.gif"
                                                            ToolTip="Export to Pdf" OnClick="ExportPdf_Click" />
                                                              
                                                        <asp:ImageButton ID="ExportToCsvButton" runat="server" ImageUrl="~/images/ExportToCsv.gif"
                                                            ToolTip="Export to Csv" OnClick="ExportCsv_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </CommandItemTemplate>
                                    <Columns>
                                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="3%"
                                            ItemStyle-Width="3%">
                                            <HeaderStyle Width="3%"></HeaderStyle>
                                            <ItemStyle Width="3%"></ItemStyle>
                                        </telerik:GridClientSelectColumn>
                                        <telerik:GridBoundColumn UniqueName="sId" HeaderText="sId" DataField="sId" ReadOnly="true"
                                            Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="orderId" HeaderText="orderId" Visible="false"
                                            ReadOnly="true" DataField="orderId">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Customer Name" HeaderText="Customer Name" DataField="Customer Name"
                                            ReadOnly="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Market Name" HeaderText="Market Name" DataField="Market Name"
                                            ReadOnly="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="LOB" HeaderText="LOB" DataField="LOB" ReadOnly="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Headend Name" HeaderText="Headend Name" DataField="Headend Name"
                                            ReadOnly="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Project Name" HeaderText="Project Name" DataField="Project Name"
                                            ReadOnly="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridTemplateColumn UniqueName="Site Name" HeaderText="Site Name" DataField="SiteName"
                                            ReadOnly="true">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lnkSiteName" runat="server" Text='<%# Eval( "Site Name" ) %>'
                                                    ForeColor="Blue" CommandName="sitename"></asp:LinkButton>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn UniqueName="Task Status" HeaderText="Task Status" DataField="Task Status"
                                            ReadOnly="true">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Clarify Account Nbr" HeaderText="Clarify Account Nbr"
                                            DataField="Clarify Account Nbr">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Site ID" HeaderText="Site ID" DataField="Site ID">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn UniqueName="Quote ID" HeaderText="Quote ID" DataField="Quote ID">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridCheckBoxColumn UniqueName="EDP Created?" HeaderText="EDP Created?" DataField="EDP Created?">
                                        </telerik:GridCheckBoxColumn>
                                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" Visible="false" Display="false">
                                        </telerik:GridEditCommandColumn>
                                    </Columns>
                                    <EditFormSettings EditFormType="Template">
                                        <FormTemplate>
                                            <table id="Table1" cellspacing="1" cellpadding="1">
                                                <tr>
                                                    <td>
                                                        <telerik:RadTabStrip runat="server" ID="RadTabStrip1" Orientation="HorizontalTop"
                                                            SelectedIndex="0" MultiPageID="RadMultiPage1">
                                                            <Tabs>
                                                                <telerik:RadTab Text="Task Data" PageViewID="RadPageView1">
                                                                </telerik:RadTab>
                                                                <telerik:RadTab Text="Notes" PageViewID="RadPageView2">
                                                                </telerik:RadTab>
                                                            </Tabs>
                                                        </telerik:RadTabStrip>
                                                        <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0">
                                                            <telerik:RadPageView runat="server" ID="RadPageView1">
                                                                <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0" class="module">
                                                                    <tr>
                                                                        <td>
                                                                        </td>
                                                                        <td>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            Clarify Account Nbr:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval( "Clarify Account Nbr" ) %>'>
                                                                            </asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            Site ID:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval( "Site ID") %>' TabIndex="1">
                                                                            </asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            Quote ID:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Eval( "Quote ID") %>' TabIndex="2">
                                                                            </asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            EDP Created?:
                                                                        </td>
                                                                        <td>
                                                                            <asp:CheckBox ID="CheckBox1" runat="server" Text='<%# Eval( "EDP Created?") %>' TabIndex="3">
                                                                            </asp:CheckBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="right" colspan="2">
                                                                            <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                                                runat="server" CommandName='Update'></asp:Button> 
                                                                            <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                                                CommandName="Cancel"></asp:Button>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </telerik:RadPageView>
                                                            <telerik:RadPageView runat="server" ID="RadPageView2">
                                                            </telerik:RadPageView>
                                                        </telerik:RadMultiPage>
                                                    </td>
                                                </tr>
                                            </table>
                                        </FormTemplate>
                                    </EditFormSettings>
                                </MasterTableView>
                                <ClientSettings EnableRowHoverStyle="true" ReorderColumnsOnClient="false" AllowDragToGroup="false"
                                    AllowColumnsReorder="True">
                                    <Scrolling AllowScroll="true" EnableVirtualScrollPaging="false" UseStaticHeaders="true" />
                                    <Selecting AllowRowSelect="true"></Selecting>
                                    <Resizing AllowRowResize="true" AllowColumnResize="True" EnableRealTimeResize="True"
                                        ResizeGridOnColumnResize="False"></Resizing>
                                    <ClientEvents OnRowContextMenu="RowContextMenu" OnRowDblClick="RowDblClick"></ClientEvents>
                                </ClientSettings>
                                <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle>
                            </telerik:RadGrid>
                        </ContentTemplate>
                    </asp:UpdatePanel>

 

 

.cs file

 

protected void rg216_ItemCommand(object source, GridCommandEventArgs e)
    {
        try
        {
            if (e.CommandName.ToLower() == "sitename")
            {
                GridViewRow rw = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
                Label lblsId = (Label)rw.FindControl("lblsId");
                Label lblorderId = (Label)rw.FindControl("lblorderId");
                Label lblTaskStatus = (Label)rw.FindControl("lblTaskStatus");
                //Label lblsId = (Label)e.Item.FindControl("lblsId");
                //Label lblorderId = (Label)e.Item.FindControl("lblorderId");
                //Label lblTaskStatus = (Label)e.Item.FindControl("lblTaskStatus");
                Session["selorderID"] = lblorderId.Text.Trim();
                Session["selsID"] = lblsId.Text;
                Session["selTaskStatus"] = lblTaskStatus.Text;
                ScriptManager.RegisterClientScriptBlock(this.rg200UpdatePanel, this.GetType(), "strSearSiteName", "document.getElementById('ctl00_PagePlaceholder_ifrmPopups').src='OrdDet.aspx'", true);
                ScriptManager.RegisterClientScriptBlock(this.rg200UpdatePanel, this.GetType(), "open", "openpopup()", true);
                ifrmPopups.Style.Add("height", "409px");
                LinkButton lnkSiteName = (LinkButton)rw.FindControl("lnkSiteName");
            }
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
Raj
Top achievements
Rank 1
 answered on 15 Jul 2010
4 answers
239 views
Hello, I have a trouble adding items to RadComboBox in client side.
I tried to add items in two different ways:

In this way:
    FillServiceTypes: function () {
        var i = 0;
        var servTypeComboBox = $find("<%= rcbServiceTypes.ClientID%>");
        for (i = 0; i <= 5; i++) {
            var rcbItem = new Telerik.Web.UI.RadComboBoxItem();
            rcbItem.set_text("Item " + i);
            rcbItem.set_value(i);
            servTypeComboBox.trackChanges();
            servTypeComboBox.get_items().add(comboItem);
            servTypeComboBox.select();
            servTypeComboBox.commitChanges();
        }
    }

And in this other:
    FillServiceTypes: function () {
        var i = 0;
        var items = [];
        var servTypeComboBox = $find("<%= rcbServiceTypes.ClientID%>");
        for (i = 0; i <= 5; i++) {
            var rcbItem = new Telerik.Web.UI.RadComboBoxItem();
            rcbItem.set_text("Item " + i);
            rcbItem.set_value(i);
            items[items.length] = rcbItem;
        }
        servTypeComboBox.insertItems(items);
    }

In both ways i received this error:
Microsoft JScript runtime error: Object doesn't support this property or method

Can someone help me how to resolve this trouble?, please.
Thanks in advance.

Francisco.


Francisco Tirado
Top achievements
Rank 1
 answered on 15 Jul 2010
6 answers
319 views
Hi,

I have a 2-part question. I have a radgrid populated using a datatable, with columns that are autogenerated. All is well, I can view the edit form and drop down into my events.

My first question is how are autogenerated controls named? I'd like to disable the first column so a user cannot edit it as it is an identity column but I'm having trouble finding the control. I use the below when I know the string Id of the control:

string

 

xx= (userControl.FindControl("xx") as TextBox).Text;

But obviously can't use this method without knowing the string id of the autogenerated edit controls.

Second question is what is the best method to get the changed values of autogenerated controls?
I have so far:

 

 

GridEditableItem editedItem = e.Item as GridEditableItem;

 

 

 

 

 

// Get the new values

 

 

 

 

 

Hashtable newValues = new Hashtable();

 

e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);

But I may have a mix of different types in the newValues hashTable and thus can't to a CopyTo strongly typed array.

Need some help please, thanks!

Brad
Top achievements
Rank 1
 answered on 15 Jul 2010
3 answers
182 views
Hello Telerik Team,

I have the following scenario:

a raddatagrid, using a radajaxmanager, created programmatically, populated in "onneeddata"

a radmenu acting as a context menu, also created programmatically, and populated with (hierarchical) menu items

client-side listener on onrowcontextmenu on the grid, which looks like this:

 function RowContextMenu(sender, eventArgs) { 
            var menu = $find("ctl00_ccp_rgid"); 
            var id = eventArgs.getDataKeyValue("ID"); 
            for (var i = 0; i < menu._children._array.length; i++) { 
                setMenuLink(menu._children._array[i],id); 
            } 
    }  
 
 
        function setMenuLink(menuitem, id) { 
            if (menuitem._linkElement != null) { 
                setID(menuitem._linkElement.href, id); 
                menuitem._linkElement.href = setID(menuitem._linkElement.href, id);        } 
            if (menuitem._children != null && menuitem._children._array != null) { 
                for (var i = 0; i < menuitem._children._array.length; i++) { 
                    setMenuLink(menuitem._children._array[i], id); 
                } 
            } 
        } 

I face two problems

1) When I first right click on a row, only the top level menu items are set with "setMenuLink", because "menuitem._children is null. When I wait for a second and right click a second time, menuitem._children has the correct entries and everything works. How can I change my approach to make this work?
2) If a ajax postback happens (by filtering, grouping, sorting, changing the page etc.) the contextmenu stops working. onrowcontextmenu is triggered, and
var menu = $find("ctl00_ccp_rgid");
even returns the correct menu object, but no menu is drawn on screen, neither is the onclientshowing event triggered. The ContextMenu is created programmatically like this (snippet from the OnInit-Method of the UserControl (a derivate from a radsplitter) hosting both the grid and the context menu):

  if (this.GridController.DataGrid is WebControl) 
            { 
                ContextMenuControlTarget target = new ContextMenuControlTarget(); 
                target.ControlID = (this.GridController.DataGrid as WebControl).ID; 
                (this.GridController.DataGrid as RadGrid).ClientSettings.ClientEvents.OnRowContextMenu = "RowContextMenu"; 
                RadContextMenu menu = new RadContextMenu(); 
                menu.OnClientShowing = "OnClientShowing"; 
                menu.ID = "rgid"; 
    
                ICollection<WebNavigationNode> nodes = (this.Engine as ASPNetTelerikEngine).GetNavigationNodesForRecord(this.Record); 
 
                foreach (WebNavigationNode node in nodes) 
                { 
                    this.addNavigationNode(menu, null, node); 
                } 
                menu.Targets.Add(target); 
                menu.Skin = this.Skin; 
                gridpane.Controls.Add(menu); 
            } 


Any help is greatly appreciated

best regards

Ulrik




Ulrich
Top achievements
Rank 1
 answered on 15 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?