Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
419 views

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



Aamir
Top achievements
Rank 1
 answered on 06 Aug 2011
1 answer
57 views
Hi everyone,

We are using a grid column and it's displayed correctly in the grid.
We have implemented an export function (using RadGrid1.MasterTableView.ExportToCSV();).
The resulting file is a CSV or excel without any value under the rating column.

Are there any known issue with the export of a rating column?

Thank you

Regis
Jayesh Goyani
Top achievements
Rank 2
 answered on 06 Aug 2011
3 answers
380 views
Hi All:

Like others, I am experiencing the following error in my orders selection grid. 
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()

The grid allows filtering and contains 2 RadDatePickers.  If I change a value in the picker and press enter, I get the above error.  If I tab out of the field then no error.

I have tried EnableLinqExpressions="False", but no luck.

Phil
Phil
Top achievements
Rank 2
 answered on 06 Aug 2011
5 answers
497 views

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.

Ashim
Top achievements
Rank 1
 answered on 05 Aug 2011
1 answer
202 views
Hai,

I have a Radgrid. In that I have a RadCombobox in a GridTemplateColumn. I want 
to access this RadCombobox inside javascript for some client side validation.

Please Help. Its very urgent

Please email the solution to me as Telerik forums and documentation links are not working in none of the browsers.( I am using Windows 7 and latest browser versions)

regeesh@kottsoftware.com

Thad
Top achievements
Rank 2
 answered on 05 Aug 2011
2 answers
388 views
Is there a simple way to add a custom attribute to a selected HTML element?

For example, I want to add an ID attribute to H1 tag for use with an anchor link.  I was using standard anchor tags, but the issue is that they are not visible in edit mode.  It makes working with anchors for non-HTML savvy people very hard.

Any ideas would be greatly appreciated.
Mark
Top achievements
Rank 1
 answered on 05 Aug 2011
3 answers
69 views
Hi
I have a GridButtonColumn. When this button is clicked I need to access one of the cells in this row on the client side. How do I do this?

Thank you
Neelima
Pavlina
Telerik team
 answered on 05 Aug 2011
12 answers
160 views
Hi,

I'm looking into the OnClientDragEnd event of the radWindow control. I want to get the window to simulate a snap to grid. in the event, I've tried the using the following:

- sender.getWindowBounds().x
- sender.get_Left()

Both always return the position of the window before the drag. i've looked at the online demo, but it doesn't look at the co-ordinates. Is there another property I need to look at for the dropped left/top?

BTW: on the bottom of the screen for the demo, it mentions 2 parameters expected, but says "sender" is the tooltip, not RadWindow.

Regards

Bobby
LeBear
Top achievements
Rank 1
 answered on 05 Aug 2011
2 answers
186 views

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

http://www.telerik.com/community/forums/aspnet/grid/how-to-capture-special-keys-ctrl-shift-click-in-server-side.aspx

http://www.telerik.com/community/forums/aspnet-ajax/grid/selection-with-shift-doesn-t-work-as-expected-strange-behaviour.aspx

Thanks in advance.

 

 

 

 

Nicolas
Top achievements
Rank 1
 answered on 05 Aug 2011
6 answers
140 views
Hi! 

In this thread I read about the animation feature with the set_currentItemIndex()-Method

So I tried it. But it does not work for me. Here is what I've done to get it work:

<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:
function setNewContent(selectedContentIndex) {
    // finding the radRotator
    var rotator = $find('<%= RadRotator1.ClientID %>');
 
    rotator.set_currentItemIndex(selectedRotatorItem, true);
}
But doesn't work. What I have to do? //EDIT: What does not work? -> The animation does not work... the banner changes but without animation 

Also it would be nice if you could show me how to turn off auto-scrolling, cannot find anything how to do this. 


Thanks in advance!


Julian
Julian
Top achievements
Rank 1
 answered on 05 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?