Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
427 views
Greetings

I'm using the numericInput control inside an asp.net DetailsView template field.   I can insert and view record details fine, but when I try to edit a record I get an InvalidCastException error, specified cast is not valid.  The first thing listed in the troubleshooting tips below the error is "when casting from a number the value must be less than infinity".  This process works fine if I switch out the numericInput controls with plain textbox controls.

I've confirmed that my asp:parameters are all the same datatype for insert and edit, I've used the exact same control (drag-n-drop copy from insert template to edit template), and I've confirmed the values are valid and non-null in the database for that field.

Here's the template code:

<

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

Vasil
Telerik team
 answered on 22 Jan 2014
6 answers
258 views
Hi,

I have a application where i created a custom RadFilter with Dropdown like explained in
http://www.telerik.com/help/aspnet-ajax/filter-custom-editors.html
I set the DataSource dynamically in the code be for each field it is different.
This was working perfectly fine under version 2013.1.417

Now i updated to a newer release and it is not working any more.
The dropdown lists are empty and it is looking like in the attached image.

In the new release there is a build-in RadFilterDropDownEditor class.
It is pretty nice but it seems that there is no functionality to set the DataSource dynamically.
There is just the option to specify the DataSourceID.

Can someone help me how to solve the problem?

Best regards
Angel Petrov
Telerik team
 answered on 22 Jan 2014
9 answers
249 views
I'm looking for just a concept idea on this. I have a grid view and I would like one field to show data. Then, when you click on it, it changes to a text box that is editable and a user can edit that field and save it. Any thoughts on how to do this? I also thought about showing a tool tip on click with a text box and save button. Which do you think is better/easier?
Paul
Top achievements
Rank 1
 answered on 22 Jan 2014
4 answers
94 views

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


Jonathan
Top achievements
Rank 1
 answered on 22 Jan 2014
1 answer
63 views
Hi,
How to hide the row inside a detail table based on some condition?
Shinu
Top achievements
Rank 2
 answered on 22 Jan 2014
1 answer
100 views

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

Viktor Tachev
Telerik team
 answered on 22 Jan 2014
2 answers
133 views
I am a new user of Telerik tools and am trying to figure out how to build a simple web page with RadPanes using the RadSplitter tool.  I have followed the online docs and am having trouble with the RadSplitter resizing with the window.  When the browser window first comes up the RadSplitter and associated RadPanes are correctly sized to the window, but if you try to resize the window larger or smaller the RadSplitter does not resize with the window.  Perhaps I am missing something, so here is the code that I have below.

Also wondering if it is possible to use a separate CSS file to handle the style of the RadPanes.  It seems that when I set some of the style properties of the RadPanes, they do not show up. 

And is it possible to use the HTML5 Doctype instead of the default XHTML 1.1 that is created with the Telerik Web App?

Thanks,
Charlie
<%@ 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>
Charlie
Top achievements
Rank 1
 answered on 22 Jan 2014
0 answers
102 views

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.


 

Aswathy
Top achievements
Rank 1
 asked on 22 Jan 2014
5 answers
81 views
Hello,

I m using the radscheduler with external edit in RadDock. Everything works fine exept when i set a reminder. The reminder Pop up opens normally but when you press Open Item i get two Pop Ups (the default and the RadDock). The same problem you can simulate in your online examples. Is there any way to open only the raddock form?

thank you!
Hristo Valyavicharski
Telerik team
 answered on 22 Jan 2014
1 answer
95 views
Hi. I have a hierarchial grid. On performing some operations the expanded rows get closed. Is there a way to make the expanded rows expand even after a rebind?
Shinu
Top achievements
Rank 2
 answered on 22 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?