Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
196 views
Hi,

I am creating a project (business objects ) with a reference to the .20 assembly. When i try to iterate over the files in the radupload.uploaded files collection, I get this exception

Unable to cast object of type 'Telerik.Web.UI.PostedFile' to type 'Telerik.Web.UI.UploadedFile'.

I am not able to fix it.

Then i tried addding the reference to the .35 assembly of Telerik.web.ui and then i got a compile time error stating

Error 271 Assembly "XXX" uses 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' which has a higher version than referenced assembly 'Telerik.Web.UI, Version=2009.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4'

What should i do?
Help!!

Genady Sergeev
Telerik team
 answered on 29 Jan 2010
2 answers
174 views
Is there a way to disable the delete and resize confirmation dialogs for recurring appointments?

I've set the following property for moving and it works as expected:

DisplayRecurrenceActionDialogOnMove="false"

 

 


However, there does not appear to be corresponding properties for the delete and resize events.

I have also tried intercepting the "recurrence action dialog showing" event (OnClientRecurrenceActionDialogShowing) and cancelling it.  However, it cancels all subsequent events. I.e., I was hoping that it would simply cancel the display of the dialog and then I would recieve an OnClientAppointmentDeleting  or OnClientAppointmentResizeEnd event.  But that does not appear to be the case.

Any ideas?

Thanks.

Kevin

 

 

 

Kevin Flynn
Top achievements
Rank 1
 answered on 29 Jan 2010
2 answers
144 views
I created a sub to create the new row from the edit form, however, the error "conversion type from dbnull to type boolean is not valid" pops up instead of the form.  I though it to be a null input to the checkbox, which I have 4 on the form.  But even forcing a 'true' value does not work.  Can anyone find my error?

Protected

 

Sub RadGrid1_InsertCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid1.InsertCommand

 

 

Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)

 

 

Dim userControl As UserControl = CType(e.Item.FindControl(GridEditFormItem.EditFormUserControlID), UserControl)

 

 

 

 

Dim newRow As DataRow = Me.Ntable.NewRow

 

 

 

 

Dim newValues As Hashtable = New Hashtable

 

newValues(

"N") = CType(userControl.FindControl("NTextBox"), RadTextBox).Text

 

newValues(

"DNumber") = CType(userControl.FindControl("PNUMBER"), RadTextBox).Text.Take(13)

 

newValues(

"PNUMBER") = CType(userControl.FindControl("PNUMBER"), RadTextBox).Text

 

newValues(

"Title") = CType(userControl.FindControl("Title"), RadTextBox).Text

 

newValues(

"worder") = 0

 

newValues(

"SMRB") = CType(userControl.FindControl("SMRB"), RadTextBox).Text

 

newValues(

"SCAR") = CType(userControl.FindControl("SCAR"), RadTextBox).Text

 

newValues(

"Dposition") = CType(userControl.FindControl("Dposition"), RadTextBox).Text

 

newValues(

"LItems") = CType(userControl.FindControl("LItems"), RadTextBox).Text

 

newValues(

"QTY") = CType(userControl.FindControl("QTY"), RadTextBox).Text

 

newValues(

"AffectedA") = CType(userControl.FindControl("AffectedA"), RadTextBox).Text

 

newValues(

"Slier") = CType(userControl.FindControl("Slier"), RadTextBox).Text

 

newValues(

"Parer") = CType(userControl.FindControl("Parer"), RadTextBox).Text

 

newValues(

"QApp") = CType(userControl.FindControl("QApp"), RadTextBox).Text

 

newValues(

"Eer") = CType(userControl.FindControl("Eer"), RadTextBox).Text

 

newValues(

"Lon") = CType(userControl.FindControl("Lon"), RadTextBox).Text

 

newValues(

"Stus") = CType(userControl.FindControl("Stus"), RadTextBox).Text

 

newValues(

"Dancy") = CType(userControl.FindControl("Dancy"), RadTextBox).Text

 

newValues(

"cause") = 0

 

newValues(

"CAction") = CType(userControl.FindControl("CAction"), RadTextBox).Text

 

newValues(

"Subtion") = CType(userControl.FindControl("Subtion"), RadTextBox).Text

 

newValues(

"actiondate") = Date.Now

 

newValues(

"compsn") = CType(userControl.FindControl("compsn"), RadTextBox).Text

 

newValues(

"drcode") = 0

 

newValues(

"reworkordno") = CType(userControl.FindControl("reworkordno"), RadTextBox).Text

 

newValues(

"corractionreqyes") = CType(userControl.FindControl("corractionreqyes"), CheckBox).Checked

 

newValues(

"corractionreqno") = CType(userControl.FindControl("corractionreqno"), CheckBox).Checked

 

newValues(

"purchsig") = CType(userControl.FindControl("purchsig"), RadTextBox).Text

 

newValues(

"shipperno") = CType(userControl.FindControl("shipperno"), RadTextBox).Text

 

newValues(

"shop1") = CType(userControl.FindControl("shop1"), RadTextBox).Text

 

newValues(

"qainsp1") = CType(userControl.FindControl("qainsp1"), RadTextBox).Text

 

newValues(

"shop2") = CType(userControl.FindControl("shop2"), RadTextBox).Text

 

newValues(

"rqainsp2") = CType(userControl.FindControl("qainsp2"), RadTextBox).Text

 

newValues(

"reworkinst") = CType(userControl.FindControl("reworkinst"), RadTextBox).Text

 

newValues(

"min") = CType(userControl.FindControl("min"), CheckBox).Checked

 

newValues(

"maj") = CType(userControl.FindControl("maj"), CheckBox).Checked

 

 

 

newValues(

"N_ID") = (CType(Me.Ntable.Rows((Me.Ntable.Rows.Count - 1))("N_ID"), Integer) + 1001)

 

 

Try

 

 

For Each entry As DictionaryEntry In newValues

 

newRow(

CType(entry.Key, String)) = entry.Value

 

 

Next

 

 

Me.Ntable.Rows.Add(newRow)

 

 

Me.Ntable.AcceptChanges()

 

 

Catch ex As Exception

 

 

Dim lblError As Label = New Label()

 

lblError.Text =

"Unable to insert N. Reason: " + ex.Message

 

lblError.ForeColor = System.Drawing.Color.Red

RadGrid1.Controls.Add(lblError)

e.Canceled =

True

 

 

End Try

 

 

End Sub

 

C O
Top achievements
Rank 1
 answered on 29 Jan 2010
1 answer
135 views
I am trying to figure out how to access the value of the selected item in a combo box on the client side. I am trying to do this from inside another javascript function where I am building an array of the information on the screen.

All of the examples I have found so far show assigning the value during an event firing. I need to find the value outside of one fo the combobox events firing. If I were using an HTML dropdown I wold just ask for the control.value. But when I try that with the telerik control I get the text of the selected item rather than the assigned value of the selected item. I have been unsuccessful in figuring this out from the help file. Can someone point me to a place that explains how to do this simple task?
Schlurk
Top achievements
Rank 2
 answered on 29 Jan 2010
0 answers
65 views
Ignore this post please...
Anders
Top achievements
Rank 1
 asked on 29 Jan 2010
5 answers
309 views
I now spent hours to solv this dilemma. Reading posts on this forum, but nothing helps...

I add a new project, "RadControls CSharp WebApplication", wizard say for  Telerik.Web.UI: "v.2009.3.1314.35 [Installation Folder] "

But I get "Error Creating Control" on scriptmanager and AjaxManager. And I can't add any Rad Controls in DesignView (if I add a RadGrid in SourceView I get "Error Creating Control" on that to.

I'm running Windows 7 32-bit, and have VS2008 SP1 (I reinstalled SP1 to be sure). I uninstalled Telerik and installed again "RadControls_for_ASP.NET_AJAX_2009_3_1314_dev"

In Windows/assembly I see two "Telerik.Web.Design" (2009.3.1314.20 & 2009.3.1314.35) and a "Telerik.Web.Design.VSX"

Please help me, I'm so wanna start coding...
Schlurk
Top achievements
Rank 2
 answered on 29 Jan 2010
3 answers
60 views
Hi,

I have an issue with RadGrid Column Sorting.

As the columns does sort if I don't specify HeaderImageUrl for the grid Headers, but as soon as I try to insert image instead of the header text, sorting stops working.

I have tried using GridTemplateColum and GridBoundColumn. As soon as I remove HeaderImageUrl="images/car.png" it works.


 

 <telerik:GridTemplateColumn DataField="CarSpace" ShowSortIcon="true" HeaderImageUrl="images/car.png"

 

ReadOnly="true" SortExpression="CarSpace" HeaderTooltip="CarSpaces" UniqueName="CarSpace"

ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="20" HeaderText="Car Space">

<ItemTemplate>

<%#Eval("CarSpace") %>

</ItemTemplate>

</telerik:GridTemplateColumn>

 


 

 

<telerik:GridBoundColumn DataField="CarSpace" SortExpression="CarSpace" UniqueName="CarSpace"

 

 

AllowSorting="true" HeaderImageUrl="images/car.png" HeaderStyle-Width="20" ReadOnly="true"

 

 

ItemStyle-HorizontalAlign="Center" HeaderText="CarSpace" >

 

 

 <FilterTemplate>

 

   <%

#Eval("Carspace") %>

 

 

 </FilterTemplate>

 

 

</telerik:GridBoundColumn>


Am I missing something or is that known issue already?

Regards.

 

Martin
Telerik team
 answered on 29 Jan 2010
2 answers
84 views
RadRating for example I want to pass over a couple asp control ClientIDs into the Rated event...so I can use them in the external .js code.  Now I cant really find the ids by [id*=] because there might be multiples...

What I've been doing in my other events is setting the OnClientClick in the code behind so I can pass in the ClientIDs I need...

Any ideas? :)
Steve
Dimo
Telerik team
 answered on 29 Jan 2010
2 answers
201 views
I am using a RadTreeview with a LINQ (to SQL) datasource. I would like to know is there a way to detect when the data has completely loaded? I need to have certain nodes prechecked and realize I can do this within the nodedatabound event, but I want to basically:

-Wait until the full data load has completed (so all children are present)
-Check a node like a user/client would have (and have all of the corresponding actions to happen)
robertgalvinjr
Top achievements
Rank 1
 answered on 29 Jan 2010
2 answers
185 views
I have an XmlHttpPanel that I am loading a User Control into by the callback method.  I have a RadScriptBlock inside the user control.  This code does not get evaluated even though I have the XmlHttpPanel.EnableClientScriptEvaluation=True.  How do I include control level client script to be evaluated after a callback?

I know Telerik does it somehow because my control has a RadComboBox that has OnClientIndexChanged set to my Custom Client Script and when the Init is run on the combobox it can't find the function.  The init function is in the same callback response as my custom script.  It works but my script does not.  It doesn't make sense to me.

Thanks,
Doug
Pero
Telerik team
 answered on 29 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?