<
asp:TemplateField HeaderText="Earned Income " SortExpression="earned_inc_total">
<EditItemTemplate>
<telerik:RadNumericTextBox ID="radEarnedIncTotal" runat="server" Culture="English (United States)" MinValue="0" Type="Currency" Value='<%# Bind("earned_inc_total") %>' Width="125px">
<NumberFormat AllowRounding="True" />
</telerik:RadNumericTextBox>
</EditItemTemplate>
<InsertItemTemplate>
<telerik:RadNumericTextBox ID="radEarnedIncTotal" runat="server" Culture="English (United States)" MinValue="0" Type="Currency" Value='<%# Bind("earned_inc_total") %>' Width="125px">
<NumberFormat AllowRounding="True" />
</telerik:RadNumericTextBox>
</InsertItemTemplate>
Thanks
Mark
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.