Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
275 views

Hi,

i'm developing file management system using RadAsyncUpload with custom HttpHandler.

System is build with ASP.NET using .NET Framework version 4.6.1 and latest Telerik UI for ASP.NET Ajax.

Currently i'm using overridden Process-function in my HttpHandler to store the file in database. I have set DisableChunkUpload="true" and EnablePermissionsCheck="false" so it is not using temporary folder to buffer the file data. But it still buffers the data in memory (a guess) before calling Process-function.

Uploaded files can be large and there can be over 100 files uploading at once. So i wonder if there is a way to get the uploaded file's InputStream at beginning of the upload, so i can stream it directly to the database as it uploads. So whole file won't get buffered in WEB server at any point. As one can do with regular uploads like this:

Using Command As SqlCommand = New SqlCommand(String.Concat("INSERT INTO Dokuments(DokumData...) values (@DokumData...)"), connection)

'Other params

Command.Parameters.Add("@DokumData", SqlDbType.Binary, -1).Value = oHttpPostedFile.InputStream 'oHttpPostedFile is from fileupload
connection.Open()
Command.ExecuteScalar()

connection.Close()

Marin Bratanov
Telerik team
 answered on 26 Sep 2018
3 answers
635 views

Given the following definition in a Radgrid column:

 

<telerik:GridBinaryImageColumn DataField="ReceiptThumb" HeaderText="Receipt Image" UniqueName="ReceiptThumb" ResizeMode="Fit" ImageWidth="100" ImageHeight="100"  />

 

What would be the best way to add a click event which would either 1) open a new window in a _blank target frame, or 2) open a radwindow on the same page -- to allow a full-size image of the thumbnail displayed in the grid to display?

... while not disturbing the in-place edit form insert/edit functionality?

Attila Antal
Telerik team
 answered on 26 Sep 2018
34 answers
1.5K+ views
In the Batch Editing demo, there is a peculiar feature regarding the checkbox in the "Discontinued" column. You cannot put the checkbox in edit mode by clicking on it, you have to click to one side first (in the cell but not on the checkbox). I am using this for our application but the user says that this feature is off-putting because it looks like the checkbox cannot be edited. It might be helpful if there was something visible for the user to click on (e.g. button surround or text). Is this possible?
Marin Bratanov
Telerik team
 answered on 26 Sep 2018
7 answers
1.6K+ views

In the radgrid, I have a boolean value binds to telerik:GridCheckBoxColumn.

By default the checkbox is disabled. Is it possible to enable it in the grid browse mode (not in row edit mode), and allow postback when use check or uncheck the checkbox(so in the codebehind the value can be updated and saved to database)? 

This is the document for gridcheckboxcolumn: http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/columns/column-types#gridcheckboxcolumn. 

Thanks.

Tsvetomir
Telerik team
 answered on 26 Sep 2018
4 answers
717 views
Hi *!

I'm evaluating the ASP.net controls. I'm very impressed and happy with this sonftware-bundle. 1+

But here is my little problem:
We're looking for a solution to compare to text-strings (old-version, new-version) like the RADEditor does in "Track changes"-Dialog. Using two Editors on one page and setting the initial Content via javaScript, solve this task. But the user has to click on the "track changes" button to see the difference in the ajax-popup. The goal is to create a page looking a bit like WinDiff.

My question:
Is it possible to show the changes e.g. in a panel instead in the dialog? Is ther a way to get the results of the dialog directly, to create a page looking a bit like a win-diff split-screen?

THX and best regards from essen, germany
Alex
Rumen
Telerik team
 answered on 26 Sep 2018
4 answers
333 views

Hi team,

 

We have grid in windows application and having functionality to remove columns by dragging the column and dropping it outside the grid. now we are migrating the current windows client application to web based solution and we have considered using telerik ajax UI controls for development which has the similar features.. however for drag and drop functionality, RadGrid support only row level. what we need is column level, user should be able to remove the column by  dragging and dropping the column outside..

 

Regards,

Suruli

Eyup
Telerik team
 answered on 26 Sep 2018
1 answer
216 views

Hi there, 

I am trying to change the expand/collapse of the radgrid on the fly. The reason is because I wanna change the icon when I do not have any item on the detail table for the respective Item, working as a visual cue.

Following is my code:

 

GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView);
            foreach (GridNestedViewItem nestedViewItem in nestedViewItems)
            {
                foreach (GridTableView nestedView in nestedViewItem.NestedTableViews)
                {
                    if (**myBusinessLogic**)
                    {
                        nestedView.ExpandCollapseColumn.ButtonType = GridExpandColumnType.ImageButton;
                        nestedView.ExpandCollapseColumn.ExpandImageUrl = "../Resource/Image/CustomExpand.png";
                        nestedView.ExpandCollapseColumn.CollapseImageUrl = "../Resource/Image/CustomCollapse.png";
                    }
                }
            }

 

After running this code the icon remains the same. 

Thank you

 

Eyup
Telerik team
 answered on 26 Sep 2018
1 answer
218 views

Hello guys,

I'm having trouble updating textbox "A" thats inside a repeater from a button which gets some textbox "B" from is inside the repeater aswell.

First of all, the content of the textbox "A" is binded with DataBinder.Eval and I'm getting an error "The Controls collection cannot be modified because the control contains code blocks (i.e. <% … %>) " and I found a solution online by wraping the repeater with <telerik:RadCodeBlock runat="server">, is this the correct way of fixing it?

Here is my ajaxManager:

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">   
        <AjaxSettings>  
            <telerik:AjaxSetting AjaxControlID="listaDeElementos"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="listaDeElementos" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings>  
        </telerik:RadAjaxManager> 

After I click the button, changes are actually made in the database but the repeater does not refresh. Nothing happens and I have to reload the page to actually see the changes. Here is my repeater:

 

    <telerik:RadCodeBlock runat="server" ID="radcode1">
             <asp:Repeater ID="listaDeElementos" runat="server" OnItemCommand="listaDeElementos_ItemCommand" >
             <ItemTemplate> 
                 <asp:TextBox runat="server" ID="txtMostrarComentario" Text='<%# string.Format("{0}", DataBinder.Eval(Container.DataItem, "Comentario")) %>'        enabled="false" TextMode="MultiLine" Width="65%" style="margin-top:10px;resize:none"></asp:TextBox>
                 <asp:TextBox runat="server" ID="txtComentario" Text=""  placeholder="Añadir comentario" TextMode="MultiLine" Width="33%" style="margin-top:10px;resize:none"></asp:TextBox>
                 <asp:Button ID="btnGuardarComentarioYnumeroDeSerie" runat="server" CommandArgument='<%# Eval("Id") %>' CommandName="GuardarComentarioYnumerodeserie"  Text="Guardar" Width="100%" CausesValidation="False" />
                  <br />
                 <hr />
              </ItemTemplate>
            </asp:Repeater>
      </telerik:RadCodeBlock>

So how do I make it update? 

Thanks.

Vessy
Telerik team
 answered on 25 Sep 2018
7 answers
368 views
Hi

I'm looking into what the effects would be to upgrade jquery to the latest version in our web site. We do currently have jquery 1.6 and would like to upgrade it to 1.11. The telerik version we use are from Q1 2011. What I would like to have a confirmation on is wheter telerik use it's own version of jquery that is not registered in the global namespace. If it is not registered gloablly I guess it would mean that our telerik components will work just fine even though we are upgrading jquery for the rest of our site.
Marin Bratanov
Telerik team
 answered on 25 Sep 2018
6 answers
230 views
Telerik Team

i have 2 text boxes and one rad-editor on a page
when i tab in rad-Editor it didn't focus on content area
it focus on its other control like (image manager, alignment etc)



I need to fix this issue as soon as possible
your early response will be appreciated
Regards
Rumen
Telerik team
 answered on 25 Sep 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?