This is a migrated thread and some comments may be shown as answers.

Binary Images and Upload in Grid

4 Answers 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rune
Top achievements
Rank 1
Rune asked on 28 Dec 2011, 01:38 PM
Hei,

about this example:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=grid

I have problem to show the images upload button. (it dont show at all on the page)

I have also problem with this: (data dont show)

 <EditItemTemplate>
  <telerik:RadTextBox ID="txbDescription" Width="370px" runat="server" TextMode="MultiLine"
  Text='<%# Bind("Description") %>' Height="150px" />
 </EditItemTemplate>


When a replace the <telerik:Radtextbox> with an <asp:TextBox> then the data shown

Is there anyone who can give me some good advice? or is there some better examples that I can use.

Best regards

Rune

4 Answers, 1 is accepted

Sort by
0
Rune
Top achievements
Rank 1
answered on 28 Dec 2011, 03:49 PM
Hi,

I must replace the 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" ClientEvents-OnRequestStart="conditionalPostback">

to an  <asp:UpdatePanel ID="RadAjaxPanel1" runat="server" >

Then the uploads button was shown.

The problem now is to save the image.


Rune
0
Richard
Top achievements
Rank 1
answered on 28 Dec 2011, 05:57 PM

Rune:
 
Are you saving your images to a SQL Server Database? Perhaps my other forum post may possibly help here. See the MSSQL Documents Uploads thread.

Cheers!

0
Rune
Top achievements
Rank 1
answered on 28 Dec 2011, 08:32 PM
Hi,

Thanks,

I save to a database (Binery)

The problem was that no page postback was fired.

I use an reveal-modal window for the Grid with an asp:UpdatePan

When I removed the asp:UpdatePane, the picture stored.

I can not understand why the upload button does not appear when I use the <telerik:RadAjaxPanel

Rune
0
Antonio Stoilkov
Telerik team
answered on 29 Dec 2011, 02:59 PM
Hi Rune,

Based on the supplied information, it is hard to determine what is causing the issue. Could you verify that when using UpdatePanel that the image is not saved or it just do not update in the grid. There are some known issues when using both RadAjaxManager and RadAjaxPanel or UpdatePanel in some complex applications - MasterPage or WebUserControls. However, note that a single RadAjaxManager (and no panels) in the master/main page could handle all the scenarios. In order to further investigate the issue you could send us a sample code of the page.

Regards,
Antonio Stoilkov
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
Tags
Grid
Asked by
Rune
Top achievements
Rank 1
Answers by
Rune
Top achievements
Rank 1
Richard
Top achievements
Rank 1
Antonio Stoilkov
Telerik team
Share this question
or