or
Hi Forum, We have developed application using Telerik controls and the controls are working fine when we run the application from Visual studio IDE. Issue is when we tried hosting in IIs the controls are not working. We tried creating MSI package and hosted in IIs. All pages are working but Telerik controls are not functioning. Kindly help. Regards, Dinesh I have six checkboxes inside telerik combobox control . On checking the first checkbox, I have to disable second and third one.
Similarly, on checking fifth checkbox I have to disable sixth one. I tried using onitemchecked,autopostback =true and onclientitemchecked events but couldn’t get the result.
Please help with the sample codevoid Grid_ItemDataBound(object sender, GridItemEventArgs e)
{
foreach (GridColumn column in RadFileExplorer1.Grid.MasterTableView.RenderColumns)
{
if ((column is GridTemplateColumn) && (column.HeaderText.Equals("Document Title")))
{
if (e.Item is GridDataItem)
{
GridDataItem gridItem = e.Item as GridDataItem;
string text = gridItem[column.UniqueName].Text;
//this line will show a tooltip
gridItem[column.UniqueName].ToolTip = text;
}
}
}
}
I'm unable to get the value of the cell - can you please help?
<telerik:RadRotator Width="350px" Height="75px" ItemHeight="75px" ItemWidth="75px" CssClass="horizontalRotator" WrapFrames="false" ScrollDuration="500" RotatorType="Buttons" runat="server" ID="imageRotator"> <ItemTemplate > <img id="imgCarousel2" class="item" width="75" height="75" class="item" src="<%#Eval("PhotoFile")%>"alt="" onclick="ChangeRecipePhoto('<%#Eval("PhotoFile")%>','<%#Eval("PhotoID")%>')" /> </ItemTemplate> </telerik:RadRotator> imageRotator.DataSource = Photos()imageRotator.DataBind() <style type="text/css"> .item { border: solid 10px #fff; margin: 1px;} </style>
Good morning,
I've a old code for delete row of Grid.
I've a Bound Column in grid
<telerik:GridBoundColumn UniqueName="WebUserCode" DataField="WebUserCode" Display="false" />and a Grid ButtonColumn
<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Confermare l'eliminazione del record ?" ConfirmTitle="Conferma eliminazione" ImageUrl="~/Images/16x16/delete2.png" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="3%" Text="ELIMINA DATO" UniqueName="DeleteColumn" HeaderText="ELIMINA"> <ItemStyle HorizontalAlign="Center" Width="3%" /> </telerik:GridButtonColumn>this is the old code
protected void gvList_DeleteCommand(object sender, GridCommandEventArgs e) { GridDataItem row = gvList.Items[e.Item.ItemIndex]; try { item.Delete(Int32.Parse(row.Cells[2].Text)); } catch (Exception ex) { notError.Title = "ELIMINAZIONE FALLITA"; notError.Title = "L'ELIMINAZIONE DEL DATO HA CAUSATO PROBLEMI"; notError.Show(); WebTools.SendMailError(((System.Web.UI.TemplateControl)(this.Page)).AppRelativeVirtualPath, System.Reflection.MethodInfo.GetCurrentMethod().Name, ex, WebUser); } PopulateGridView(); }
The problem is that with the last version of RadGrid row.Cells[2].text is NULL, I think for the Visible="False" property.
How can I access at the bound column for to know the code of the record ?
Thanks

<telerik:RadScriptManager ID="ScriptManager" runat="server" /> <telerik:RadContextMenu ID="RadContextMenu1" runat="server" EnableRoundedCorners="true" EnableShadows="true" OnClientItemClicked="MenuItemClick"><Items> <telerik:RadMenuItem Text="View by Ase Order" Value="ase"> </telerik:RadMenuItem> <telerik:RadMenuItem Text="View by Desc Order" Value="desc"> </telerik:RadMenuItem> </Items> </telerik:RadContextMenu> <telerik:RadGrid runat="server" ID="RadGrid1" > <ClientSettings> <ClientEvents OnRowContextMenu="RowContextMenu" /> </ClientSettings> </telerik:RadGrid><script type="text/javascript" language="javascript"> var lastContext = null; var longTouchID = 0; function longTouch() { longTouchID = 0; $find('RadGrid1')._RowContextMenu(lastContext); } function handleTouchStart (e) { lastContext = e; lastContext.target = e.originalTarget; lastContext.pageX = e.changedTouches[0].pageX; lastContext.pageY = e.changedTouches[0].pageY; lastContext.clientX = e.changedTouches[0].clientX; lastContext.clientY = e.changedTouches[0].clientY; longTouchID = setTimeout(longTouch, 1000); } function handleTouchEnd (e) { if (longTouchID != 0) clearTimeout(longTouchID); } function pageLoad() { if ($telerik.isMobileSafari) { var gridArea = $get('RadGrid1'); gridArea.addEventListener('touchstart', handleTouchStart, false); gridArea.addEventListener('touchend', handleTouchEnd, false); } } function RowContextMenu(sender, eventArgs) { var menu = $find("<%=RadContextMenu1.ClientID %>"); var evt = eventArgs.get_domEvent(); if (evt.target.tagName != "A") { return; } document.getElementById("radGridName").value = sender.ClientID; var index = eventArgs.get_itemIndexHierarchical(); sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true); sender.get_masterTableView().get_dataItems()[index].set_selected(false); menu.show(evt); evt.cancelBubble = true; evt.returnValue = false; if (evt.stopPropagation) { evt.stopPropagation(); evt.preventDefault(); } }Markup .aspx <telerik:RadPanelBar ID="PanelBar1" Height="100px" Width="100%" EnableEmbeddedSkins="false" Skin="MyCustonSkin" runat="server"></telerik:RadPanelBar>Code Behind .aspx.cs
protected void Page_Load(object sender, EventArgs e){ RadPanelItem myProfilePanelItem = new RadPanelItem(); myProfilePanelItem.Text = "My Profile"; RadPanelItem myFavoritesPanelItem = new RadPanelItem(); myFavoritesPanelItem.Text = "My Favorites"; Button btnSearchFavorites = new Button(); btnSearchFavorites.Text = "Search more favorites"; btnSearchFavorites.CssClass = "ButtonStyle"; btnSearchFavorites.Click += new EventHandler(btnSearchFavorites_Click); myFavoritesPanelItem.Controls.Add(btnSearchFavorites); PanelBar1.Items.Add(myProfilePanelItem); PanelBar1.Items.Add(myFavoritesPanelItem);}protected void btnSearchFavorites_Click(object sender, EventArgs e){ Response.Redirect("~/Favorites", false);}