Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
303 views

When I Try: 

<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" Culture="English (United States)" Type="Currency" Font-Size="Smaller" Height="8px" Width="75px" IncrementSettings-Step=".01" AutoPostBack="false" ShowSpinButtons="true" Value='3.49' >

Everything works 'fine', but when I attempt to data bind to the value property (asp.net/.net 3.5) like :

<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" Culture="English (United States)" Type="Currency" Font-Size="Smaller" Height="8px" Width="75px" IncrementSettings-Step=".01" AutoPostBack="false" ShowSpinButtons="true" Value='<%# Eval("CurrentPrice") %>' >

I get "Specified cast is not valid." as a runtime exception. The type for the CurrentPrice Property is Decimal, since the "Type" property for this control is "Currency" (and it is called a "NUMERIC" text box) I expect a decimal to work.

Any help would be greatly appreciated!

Cos

 

 

 

 

 

 

 

Cos
Top achievements
Rank 1
 answered on 23 Oct 2008
2 answers
102 views

Hello everyone,

Let’s talk about the example http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/DataEditing/TemplateFormUpdate/DefaultVB.aspx that is easily accessible to everyone and can perfectly be used to describe my doubt.

Let’s suppose we change the Field Region to State/Province and we want to change the data control to a combobox, filled with the US States. Let’s go further. We put this field before city, and we want to choose the city also in a combobox. But of course, not a simple one, we want the city combobox to show only cities from the US State selected and we must have it in AJAX way.

The way I can imagine it, is to put an AJAX Panel in the city combobox, with state combobox as trigger. Then, in the SelectedIndexChanged event of the state combobox, I make my query to the cities.

Ok, but how do I access this SelectedIndexChanged event, since it is part of my Edit in the RadGrid? I tried a lot of things, and even tried to find it with FindControl, looking each child item of every control and it never appears.

Or is there another simple way to do?

Please, I want really to stay in the example of this link. I don’t want to change to a different approach or an example that would have to redo everything. I think that what I want should be a common need to Form Template Edit Form.

Best Regards,

Mario

Mario
Top achievements
Rank 1
 answered on 23 Oct 2008
2 answers
124 views
When I paste from Word, with option MSWordRemoveAll, I still get the below markup.  Is there a way to remove this stuff?  I'm saving from the client using the get_html(true) method.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Cd3p339%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5Cd3p339%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5Cd3p339%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves/> <w:TrackFormatting/> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF/> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:SplitPgBreakAndParaMark/> <w:DontVertAlignCellWithSp/> <w:DontBreakConstrainedForcedTables/> <w:DontVertAlignInTxbx/> <w:Word11KerningPairs/> <w:CachedColBalance/> </w:Compatibility>
Shane
Top achievements
Rank 1
 answered on 23 Oct 2008
5 answers
249 views
In the OnClientAppointmentInserting event, I have a function with 2 parameters, obj, and args, just like your documentation.  On the args object, the following functions are available:
set_cancel
get_cancel
get_IsAllDay
get_StartTime

get_StartTime works perfectly, but because my scheduler is in ResourceView, I also need a function that will give me the resource I am inserting the appointment onto. 

Also, I believe your clientside Scheduler object should also have properties or functions that contain this information when inserting an event. 

Thanks.
-Mike

Peter
Telerik team
 answered on 23 Oct 2008
2 answers
244 views
Hi,

I'm using a radWindow in my site and it seems it is in an IFrame (which I did not create). I assume it is the radWindow that is rendered that way. I wanna know if it is possible to open the radWindow in something else since IFrame is not complient to the W3C standard.

Thanks,

Phil
Daniel Laforest
Top achievements
Rank 1
 answered on 23 Oct 2008
0 answers
58 views
Hi,

In an existing application page in Sharepoint 2007 that uses ASP.NET AJAX,  I placed both the RadTabStrip and the RadComboBox controls (ASP.NET AJAX Q2 2008 Rad Controls).

Combobox works fine but the tabstrip does not work properly. The tabstrip control is rendered on the page but when a tab is clicked a java script error "Object expected" occurs and the page is scrolled to top; control does not work at all.

System: Windows 2003 Server with .NET Framework 3.0, .NET 2.0,  AJAX 1.0.
Development is in VS 2005 using .NET 2.0 and System.Web.Extensions version is 1.0.61025.0

Any help is greatly appreciated.

Thanks.
Surendra
Top achievements
Rank 1
 asked on 23 Oct 2008
4 answers
181 views
i want the combobox show the "---Select ---" when page load, but don't want  to show it in the drop down list.

Below is the code that i used, it causes the "---Select---" show on the drop down list. How to remove the "---Select ---" in drop down list, but keep remain it when page load?



 <radc:radcombobox runat="server" id="cbSpecialty" markfirstmatch="True" enabletheming="True"
                                            skin="healthcare" height="90" width="160">
            </radc:radcombobox>


 Dim drow As DataRow
            Dim cnt As Integer = 1
            dt = mClas.GetDataTable("SELECT     specialtyID, spec_name FROM specialty where spec_status=1")

            cbSpecialty.Items.Add(New Telerik.WebControls.RadComboBoxItem("--- Select --- ", ""))
         
            For Each drow In dt.Rows
                cbSpecialty.Items.Add(New Telerik.WebControls.RadComboBoxItem(drow("spec_name"), drow("specialtyID")))
            Next

Veselin Vasilev
Telerik team
 answered on 23 Oct 2008
4 answers
148 views
I am trying to combine all scripts for the RadEditor. I have combined the following scripts:

~/Scripts/Editor/RadEditor.js
~/Scripts/Dialogs/DialogOpener.js
~/Scripts/Editor/Modules.js   
~/Scripts/Spell/SpellCheckService.js
~/Scripts/Editor/AjaxSpellCheck.js
~/Scripts/Window/RadWindow.js

But when I click on the Image Manager or Document Manager buttons, the managers open but I get a JS error and can't use the managers.

It works fine when i enable embedded scripts but doesnt when i disabled embedded scripts.

Which scripts am I missing?

- Also, what is the CSS for the DIV that overlays the screen with the faded gray for the Modal RadWindow?
Rumen
Telerik team
 answered on 23 Oct 2008
12 answers
528 views
Hi,

I've been working with the grid now for a week, nice features!

I have a grid with popup editing. I changed the edit template, but had some problems with the radcombo, because of faulty data. Therefore i do not bind the radcombo (i.e. bind("ArtDesc") ), but use the eval.

In a FormView i can use the e.NewValues("ArtDesc") = "Erik" in the event "FormView_ItemUpdating"

I can not find that functionality in the radgrid? Is the following link REALY the only way ??

http://demos.telerik.com/aspnet/prometheus/Grid/Examples/DataEditing/ExtractValues/DefaultVB.aspx
Iana Tsolova
Telerik team
 answered on 23 Oct 2008
1 answer
101 views
I have this line of code as I am trying to reset or clear the content of the editor in javascript.
I am new to javascript. The editor is inside an ajax updatepanel control that has the update set to 'conditional' and childrenastrigger set to 'false' if all this matters.

this is what I have and it always gives me an error:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

 

If Not Me.IsPostBack Then

 

 

 

Button1.Attributes.Add("onclick", "$find(" + RadEditor1.ClientID + ").set_html('');return false;")

 

 

End If

 

 

 

End Sub

 

 

Rumen
Telerik team
 answered on 23 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?