Hi,
I'm trying to add RibbonBarGalleryItems to a RibbonBarGalleryCategory at runtime like this (I'm pulling them out of a datatable);
RibbonBarGalleryCategory someCategory = (RibbonBarGalleryCategory)FindControlRecursive(this,"radGalleryCategory1"); foreach (DataRow R in someDatatable.Rows) { RibbonBarGalleryItem myitem = new RibbonBarGalleryItem(); myitem.ID = "someIDgeneratedbyMyApp" myitem.Text = R["Col1"].ToString(); myitem.ToolTip = R["Co2"].ToString(); myitem.ImageUrl = "~/GlobalResources/somepic.png"; someCateogry.Items.Add(myitem); }
This works fine - the items appear in the gallery OK on page_load and display in the browser.
However, when I click any of the gallery items to select them, I get an index out of range exception that's not handled.
Gallery items added at design time work fine. It's the ones that I'm adding at runtime that fail on selection.
Is there some method I should hook into when the RadRibbonGallery is initialised so that I pass in my gallery items then, so the ribbonbar is "aware" of them?
Thanks in advance,
Jonathan
Hi
I am trying to use a numeric textbox inside the FormTemplate of a grid and have run into issues.
When I initially put my selected item into edit mode I want the numeric text box to be hidden.
I accomplish this by setting the style="display: none;"
Then in the javascript handler of a combobox, which is also in the edit form I change the style based on user interaction.
I have to manipulate the textbox and its up/down arrows, so I am changing 3 controls in each case.
This works fine, until I mouse over the numeric text box. As soon as I do that the text element disappears and only the up/down arrows remain.
Inspecting the rendered html clearly shows the style="display: none" attribute has been re-rendered into the html.
If the textbox is initially visible hiding and showing it in javascript still works correctly, AND mouse over DOESN'T hide it.
I have seen other threads that indicate using numeric text boxes in edit forms is a bad idea.
If you have a solution I would love to hear it.
TIA

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd"><html style="height:100%"><head runat="server"> <title>Telerik Real Estate Demo</title> <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /></head><body style="margin:0px;height:100%;overflow:hidden;"> <form id="form1" runat="server" style="height:100%;margin:0px;"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager> <script type="text/javascript"> //Put your JavaScript code here. </script> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> </telerik:RadAjaxManager> <div id="header" style="border: solid 2px black;"> <h3>Telerik Real Estate Demo</h3> </div> <div id="mainPage" style="border: solid 2px black; width: 100%; height: 100%;"> <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Horizontal" Height="100%" Width="100%"> <telerik:RadPane ID="topHalfRad" runat="server" BorderStyle="Solid" BorderWidth="2" BorderColor="#0033CC" MinHeight="200" MinWidth="200" Scrolling="None" Width="800" Height="300"> <telerik:RadSplitter ID="RadSplitter2" runat="server" Orientation="Vertical"> <telerik:RadPane ID="topLeftRad" runat="server" BorderColor="Lime" BorderStyle="Solid" BorderWidth="2" MinHeight="200" MinWidth="200" Width="390"> Left Pane </telerik:RadPane> <telerik:RadSplitBar ID="RadSplitBar2" runat="server" CollapseMode="Both" /> <telerik:RadPane ID="topRightRad" runat="server" BorderColor="#CC00FF" BorderStyle="Solid" BorderWidth="2" MinHeight="200" MinWidth="200" Width="390"> Right Pane </telerik:RadPane> </telerik:RadSplitter> </telerik:RadPane> <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Both" /> <telerik:RadPane ID="botHalfRad" runat="server" BorderColor="#660033" BorderStyle="Solid" BorderWidth="2" MinHeight="200" MinWidth="400" Width="800" Height="300"> Bottom Pane </telerik:RadPane> </telerik:RadSplitter> </div> </form></body></html>Hi
We are planning to develop WebContentManagement to avoid resource files in application. We are implementing generic way to add data in Admin UI instead of manual work.
We have form like ResourceKey,ResourceValue,ResourceDescription controls and Languages which are supporting for application displaying in Data List . PFA screen shot how it looks data list.
These are the supporting languages.
English
Japanese
Korean
Spanish
German
French
Chinese
Italian
Norwegian
What is my doubt is
Once I click on Add link particular language(Japaneese) in datalist it will open popup through jquery and it will show the RADEditor based on Japaneese language and typing characters also should be in Selected(Japaneese) language. Once we close popup and the RADEditor value should show in DataList particular selected row.
Is it possible to achieve this with RADEditor? If not how we can implement other way?
My Questions are :
How to call popup using jquery contains RADEditor?
How set particular language to RADEditor through Jquery and How to type chars in RADEditor with selected language.
How to get back RADEditor content after closing popup and put into datalist
Please can you give some demo with this requirement.
Thanks,
Aswathy.
<telerik:RadPanelBar runat="server" ID="ClientProductPanels" Width="100%" AllowCollapseAllItems="false" ExpandMode="SingleExpandedItem" />private RadGrid PopulatePanelGrid(string referrer){ RadGrid productGrid = new RadGrid(); productGrid.AllowPaging = false; productGrid.AllowSorting = false; productGrid.AllowAutomaticInserts = true; productGrid.AllowAutomaticDeletes = true; productGrid.AllowAutomaticUpdates = true; productGrid.AutoGenerateEditColumn = true; productGrid.AutoGenerateDeleteColumn = true; productGrid.MasterTableView.AutoGenerateColumns = false; productGrid.MasterTableView.EditMode = GridEditMode.InPlace; productGrid.ID = referrer; productGrid.DeleteCommand += new GridCommandEventHandler(productGrid_DeleteCommand); productGrid.CancelCommand += new GridCommandEventHandler(productGrid_CancelCommand); productGrid.BatchEditCommand += new GridBatchEditEventHandler(productGrid_BatchEditCommand); productGrid.ItemDeleted += new GridDeletedEventHandler(productGrid_ItemDeleted); productGrid.ItemCommand += new GridCommandEventHandler(productGrid_ItemCommand); productGrid.ItemEvent += new GridItemEventHandler(productGrid_ItemEvent); productGrid.ItemInserted += new GridInsertedEventHandler(productGrid_ItemInserted); productGrid.ItemUpdated += new GridUpdatedEventHandler(productGrid_ItemUpdated); productGrid.InsertCommand += new GridCommandEventHandler(productGrid_InsertCommand); productGrid.EditCommand += new GridCommandEventHandler(productGrid_EditCommand); productGrid.UpdateCommand += new GridCommandEventHandler(productGrid_UpdateCommand); productGrid.ItemDataBound += new GridItemEventHandler(productGrid_ItemDataBound); productGrid.ItemCreated += new GridItemEventHandler(productGrid_ItemCreated); productGrid.NeedDataSource += new GridNeedDataSourceEventHandler(productGrid_NeedDataSource); GridCheckBoxColumn checkColumn = new GridCheckBoxColumn(); checkColumn.UniqueName = "Checked"; checkColumn.DataField = "Selected"; checkColumn.ReadOnly = true; checkColumn.HeaderStyle.Width = Unit.Pixel(20); checkColumn.ItemStyle.Width = Unit.Pixel(20); checkColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center; productGrid.MasterTableView.Columns.Add(checkColumn); GridBoundColumn boundColumn = new GridBoundColumn(); boundColumn.DataField = "ProductName"; boundColumn.HeaderText = "Product Name"; boundColumn.ReadOnly = true; productGrid.MasterTableView.Columns.Add(boundColumn); GridNumericColumn numericColumn = new GridNumericColumn(); numericColumn.DataField = "Fee"; numericColumn.HeaderText = "Fee"; numericColumn.UniqueName = "Fee"; numericColumn.DataFormatString = "{0:C}"; numericColumn.DecimalDigits = 2; numericColumn.MaxLength = 7; numericColumn.NumericType = NumericType.Currency; numericColumn.HeaderStyle.Width = Unit.Pixel(110); numericColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Right; numericColumn.ItemStyle.Width = Unit.Pixel(110); numericColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Right; productGrid.MasterTableView.Columns.Add(numericColumn); boundColumn = new GridBoundColumn(); boundColumn.DataField = "AverageFee"; boundColumn.HeaderText = "Average Fee"; boundColumn.DataFormatString = "{0:C}"; boundColumn.ReadOnly = true; boundColumn.HeaderStyle.Width = Unit.Pixel(110); boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Right; boundColumn.ItemStyle.Width = Unit.Pixel(110); boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Right; productGrid.MasterTableView.Columns.Add(boundColumn); boundColumn = new GridBoundColumn(); boundColumn.DataField = "ProductID"; boundColumn.ReadOnly = true; boundColumn.Display = false; productGrid.MasterTableView.Columns.Add(boundColumn); GridEditCommandColumn editColumn = new GridEditCommandColumn(); editColumn.ItemStyle.Width = Unit.Pixel(75); editColumn.UniqueName = "Edit"; editColumn.EditText = "Add/Edit Fee"; productGrid.MasterTableView.Columns.Add(editColumn); return productGrid;}