I am using Telerik RadControls. I have radGrid in which i have upload
control for inserting images. But error is thrown when I try to upload
any file.
Object must implement IConvertible.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Object must implement IConvertible.
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidCastException: Object must implement IConvertible.]
System.Convert.ChangeType(Object value, TypeCode typeCode,
IFormatProvider provider) +2877013
System.Web.UI.WebControls.Parameter.GetValue(Object value, String
defaultValue, TypeCode type, Boolean
convertEmptyStringToNull, Boolean ignoreNullableTypeChanges) +141
System.Web.UI.WebControls.Parameter.GetValue(Object value, Boolean
ignoreNullableTypeChanges) +63
System.Web.UI.WebControls.SqlDataSourceView.AddParameters(DbCommand
command, ParameterCollection
reference, IDictionary parameters, IDictionary exclusionList, String
oldValuesParameterFormatString) +524
System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary
keys, IDictionary values, IDictionary oldValues) +141
System.Web.UI.DataSourceView.Update(IDictionary
keys, IDictionary values, IDictionary oldValues,
DataSourceViewOperationCallback callback) +92
Telerik.Web.UI.GridTableView.PerformUpdate(GridEditableItem editedItem,
Boolean suppressRebind) +224
Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source)
+985 Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e)
+134 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs
args) +37 Telerik.Web.UI.GridEditFormItem.OnBubbleEvent(Object source,
EventArgs e) +216 System.Web.UI.Control.RaiseBubbleEvent(Object
source, EventArgs args) +37
System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +111
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String
eventArgument) +176
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +1565
I am actually trying to use this example with my databases and all.
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultvb.aspx?product=grid&RadUrid=2ecccfe5-76bd-4310-b0a3-c5c84afc1beb
The state information is invalid for this page and might be corrupted. at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState) at System.Web.UI.HiddenFieldPageStatePersister.Load() at System.Web.UI.Page.LoadPageStateFromPersistenceMedium() at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)Inner Exception Trace: Invalid viewstate. Client IP: 127.0.0.1 Port: Referer: http://localhost:52506/WebUI/OrderSelection.aspx Path: /WebUI/OrderSelection.aspx User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC EA 2; MALC) ViewState: /wEPDwULL...Inner Exception Trace: Invalid length for a Base-64 char array. at System.Convert.FromBase64String(String s) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) at System.Web.UI.HiddenFieldPageStatePersister.Load()Hi Guys
I am using the Chart control to display some dashboard summary data. The page area I have is not that large, so I need to maximise its use!
Issue: I want to remove the title and legend and stretch out the chart size and utilise the title and legend area!
Now I have removed the Chart title (set visible to false) and tried a number of settings on the Legend - (set visible to false, changed the legend position etc), although when I remove the title and legend, the space on the top for the title and on the right side for the legend is not utilised for chart I am displaying. I have also tried increasing the width and height of the chart, but again this increases the total canvas size and we are still left with the blank space on the top and right. I either need to be able to reduce the size of the canvas the chart sits on, or increase the chart size utilising the blank space on the right and top of the chart.
Can this be done?
I have attached an image of my graph for reference, and coloured blue the area I need to utilise.
to access this RadCombobox inside javascript for some client side validation.I wanted to know if there is a solution to a radgrid issue with the shift key in multiselection. When i do a multiselection of rows with shift key pressed, the radgrid doesn't throw a postback when the shift key is released.
I was testing some alternatives with the onkeyup event over radgrid but doesnt work well with shift key (dont throw event until ctrl key is pressed) , instead the event it works better with the ctrl key.
However i would appreciate a better solution that doesn't imply handling the key events.
I been follow this issue in this threads
Thanks in advance.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadRotator ID="RadRotator1" runat="server" DataSourceID="xmlDataSource1" FrameDuration="360000000" Width="675" ItemWidth="675" Height="265" ScrollDirection="Up" ItemHeight="265"> <ItemTemplate> <div class="itemTemplate"> <img src="Images/<%# XPath("filename") %>" style="border: 0px;" alt="banner" /> </div> </ItemTemplate> </telerik:RadRotator> <asp:XmlDataSource ID="xmlDataSource1" runat="server" DataFile="banners.xml"></asp:XmlDataSource> <div class="nav"> <a href="#" onclick="javascript:setNewContent(0);">Banner 1</a> <a href="#" onclick="javascript:setNewContent(1);">Banner 2</a> <a href="#" onclick="javascript:setNewContent(2);">Banner 3</a> <a href="#" onclick="javascript:setNewContent(3);">Banner 4</a> <a href="#" onclick="javascript:setNewContent(4);">Banner 5</a> </div>here the js:But doesn't work. What I have to do? //EDIT: What does not work? -> The animation does not work... the banner changes but without animationfunction setNewContent(selectedContentIndex) {// finding the radRotatorvar rotator = $find('<%= RadRotator1.ClientID %>');rotator.set_currentItemIndex(selectedRotatorItem, true);}