How to add new binded textbox in radlisview to be shown ,edited or even inserted by user

2 posts, 0 answers
  1. Ali
    Ali avatar
    5 posts
    Member since:
    Mar 2013

    Posted 23 Mar 2013 Link to this post

    Dear sir ,
    Radlist view edit template example on Telerik database on customerphotos table shows the following fields


    my question is how do I add the address field( in design time) to be shown and edited ,updated or even inserted in the Radlistview templates

    note that I show and update the photo too

    what i did is reconfiguring the sqldatasource and added the field address from customerphotos
    then i added in design time in edititemtemplate a binded textbox to that field but when i press update after writing in the address field and selecting an image ,I got the following error

    Parameter '@Photo' exceeds the size limit for the sql_variant datatype.

  2. Andrey
    Andrey avatar
    836 posts

    Posted 28 Mar 2013 Link to this post


    Most probably the problem comes from the photo that you are uploading. As this MSDN thread says the sql_variant type is limite to 8016 bytes and the value portion is limited to 8000 bytes. So anything bigger than that would cause the exception.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Telerik UI for ASP.NET Core is out
Back to Top