Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
178 views
Hi, i'm trying to upload some files and write them away.
But everytime i do a postback the files are gone, anyone have an idea what i'm doing wrong ?

Front end code
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" MultipleFileSelection="Automatic">
</telerik:RadAsyncUpload>


Backend
Protected Sub btnsaveimages_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnsaveimages.Click
         If RadAsyncUpload1.UploadedFiles.Count > 0 Then
             For Each file As UploadedFile In RadAsyncUpload1.UploadedFiles
                 file.SaveAs("~/" + file.FileName)
              Next
         End If
     End Sub

Or on fileuploaded
Sub RadAsyncUpload1_FileUploaded(ByVal sender As Object, ByVal e As FileUploadedEventArgs) Handles RadAsyncUpload1.FileUploaded
 
        e.File.SaveAs(Server.MapPath("~/Upload/Images/ImgGallery/2/" + e.File.FileName), True)
 
    End Sub


I always get the following error: 
Could not find file '***********\App_Data\RadUploadTemp\1341910388330Lighthouse.jpg'.


Bozhidar
Telerik team
 answered on 12 Jul 2012
1 answer
84 views
Hello,
We faced a problem that undo/redo functionality does not work correctly in IE9.
The issue can be reproduced on RadEditor demo.

1. Place a cursor into the text begining.
2. Press Enter several times.
Undo/Redo buttons do not work for such a change.

Could you please respond if it can be fixed?
Vessy
Telerik team
 answered on 12 Jul 2012
1 answer
58 views
System: ASP.NET AJAX: 2012.2.607.40

Hello,

I would like to follow in a client event, like JQuery mousemove, the row being dragging. I saw that nothing exists in RadGrid in comparaison with the RadListBox::OnClientDragging.

With JQuery and by using client events RadGrid::OnRowDragStarted and RadGrid::OnRowDropping, what is possible to do to track the mouse move by keeping compatibility with RadGrid existing client events (and functionalities)?

Note: I tried to bind JQuery mousemove event on the element args.get_id() in the RadGrid::OnRowDragStarted event, but this element, args.get_id(), was the row staying in the RadGrid, not the dragging one.

Thank you,
Alain
Eyup
Telerik team
 answered on 12 Jul 2012
6 answers
132 views
Hi,

I have followed example provided in below link to export, this exports to a PDF fine, but this opens a dialog asking for open or save the PDF. is it possible to open the PDF directly without showing the open dialog.


http://demos.telerik.com/aspnet-ajax/scheduler/examples/pdfexport/defaultcs.aspx

Thanks
Peter
Telerik team
 answered on 12 Jul 2012
2 answers
95 views

Good morning guys, I'm currently stuck on a particular problem here.
Currently on edit mode I have a procedure for the "Update" button to execute a procedure (done via the wizard)

Now I'm trying to add a stored procedure on the "Cancel" button. I need to validate some data

Can I add the command here ?
Kindly please help? I know this is easy for experts out there

If e.Item.IsInEditMode Then

 

 

 

 

 

 

If TypeOf e.Item Is GridDataInsertItem Then

 

 

 

 

 

 

Dim editItem As GridEditableItem = DirectCast(e.Item, GridEditableItem)

 

 

Dim InsertButton As ImageButton = DirectCast(editItem.FindControl("PerformInsertButton"), ImageButton)

 

 

Dim CancelButton As ImageButton = DirectCast(editItem.FindControl("CancelButton"), ImageButton)

 

CancelButton.Visible =

True

 

 

 

 

 

 

Else

 

 

 

 

 

 

Dim editItem As GridEditableItem = DirectCast(e.Item, GridEditableItem)

 

 

Dim updateButton As ImageButton = DirectCast(editItem.FindControl("UpdateButton"), ImageButton)

 

 

Dim CancelUpdateButton As ImageButton = DirectCast(editItem.FindControl("CancelButton"), ImageButton)

 

CancelUpdateButton.Visible =

True

 

 

 

 

 

 

End If

 

 

 

 

 

 

End If


Thanks in advance :)

 

aj
Top achievements
Rank 1
 answered on 12 Jul 2012
1 answer
191 views
Hi,
     I have a radgrid in which filtering is enabled. I want to get the text typed in filter text-box on clicking an external button. Any help will be humbly appreciated
Savyo
Princy
Top achievements
Rank 2
 answered on 12 Jul 2012
2 answers
110 views
I have a rad treeview and a checkbox in my web page. I want to allow the node to expand only if the checkbox is checked
Ivana
Telerik team
 answered on 12 Jul 2012
2 answers
128 views
I have an image map on my page, and when the image map is clicked I woud like to set which item in the panel is displayed. So I have set it up like this:

protected void ImageMap1_Click(object sender, ImageMapEventArgs e)
   {
       foreach (RadPanelItem item in rdPanelMapKey.Items)
       {
           item.Expanded = false;
       }
       rdPanelMapKey.Items[0].Expanded = true;
   }

<telerik:RadPanelBar runat="server" Skin="Vista" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false"
        ID="rdPanelMapKey" Width="220" ExpandMode="SingleExpandedItem" PersistStateInCookie="false" ViewStateMode="Disabled">
        <Items>
            <telerik:RadPanelItem Text="DETAILS" Expanded="false">
                <ContentTemplate>
                    <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" EnableAJAX="true" LoadingPanelID="RadAjaxLoadingPanel2">
                        <uc:AccommodationTooltip runat="server" ID="ucAccommodationTooltip" />    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script type='text/javascript'>
            $('.map').maphilight({ "stroke": false });
        </script>
    </telerik:RadScriptBlock>
                    </telerik:RadAjaxPanel>
                     
 
                </ContentTemplate>
            </telerik:RadPanelItem>
            <telerik:RadPanelItem Text="IMAGE" Expanded="true">
                <ContentTemplate>
                    <img src="images/key.gif" />
                </ContentTemplate>
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>

But it doesn't work.
Kate
Telerik team
 answered on 12 Jul 2012
1 answer
84 views
In the monthly, one day events move forward, and when going to edit them, the date it is true, as well as other events on the same day (More. ..), it writes the correct day.
The problem appears only in some computers.
Ivana
Telerik team
 answered on 12 Jul 2012
1 answer
260 views

I have searching around figuring out how to add tooltips to my dynamically generated radcomboxbox, but it's not working.

I used the code in this article:

http://www.telerik.com/support/kb/aspnet-ajax/tooltip/radtooltip-for-radcombobox.aspx

but not tooltip shows up?



My scenario is a little different. I have a grid and inside the edit template I have a RadComboBox that is generated with a Web Service and want to show a tooltip for that. Here is the code I have so far: 


<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" CellSpacing="0"
                   GridLines="None" EnableLinqExpressions="False"
                   onneeddatasource="RadGrid1_NeedDataSource">
                   <ClientSettings>
                       <Selecting CellSelectionMode="None"></Selecting>
                   </ClientSettings>
                   <MasterTableView CommandItemDisplay="Top" EditMode="PopUp">
                       <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                       <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                           <HeaderStyle Width="20px"></HeaderStyle>
                       </RowIndicatorColumn>
                       <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                           <HeaderStyle Width="20px"></HeaderStyle>
                       </ExpandCollapseColumn>
                       <Columns>
                           <telerik:GridEditCommandColumn ButtonType="ImageButton" />
                           <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                               ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" />
                           <telerik:GridTemplateColumn FilterControlAltText="Filter cptcode column" HeaderText="Procedure Code"
                               UniqueName="cptcode" DataField="cptcode">
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn FilterControlAltText="Filter units column" HeaderText="Units"
                               UniqueName="units" DataField="units">
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn FilterControlAltText="Filter charges column" HeaderText="Charges"
                               UniqueName="charges" DataField="charges">
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn FilterControlAltText="Filter mod1 column" HeaderText="Mod 1"
                               UniqueName="mod1" DataField="mod1">
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn FilterControlAltText="Filter mod2 column" HeaderText="Mod 2"
                               UniqueName="mod2" DataField="mod2">
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn FilterControlAltText="Filter mod3 column" HeaderText="Mod 3"
                               UniqueName="mod3" DataField="mod3">
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn FilterControlAltText="Filter mod4 column" HeaderText="Mod 4"
                               UniqueName="mod4" DataField="mod4">
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn FilterControlAltText="Filter IcdCode1 column" HeaderText="ICD Code 1"
                               UniqueName="IcdCode1" DataField="IcdCode1">
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn FilterControlAltText="Filter IcdCode2 column" HeaderText="ICD Code 2"
                               UniqueName="IcdCode2" DataField="IcdCode2">
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn FilterControlAltText="Filter ICDCode3 column" HeaderText="ICD Code 3"
                               UniqueName="ICDCode3" DataField="ICDCode3">
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn FilterControlAltText="Filter IcdCode4 column" HeaderText="ICD Code 4"
                               UniqueName="IcdCode4" DataField="IcdCode4">
                           </telerik:GridTemplateColumn>
                       </Columns>
                       <EditFormSettings InsertCaption="Insert New CPT" PopUpSettings-Modal="true" EditFormType="Template">
                           <FormTemplate>
                           <table id="Table1" cellpadding="1" cellspacing="1" width="400" border="0">
                            
                           <tr>
                           <td>
                            
                           </td>
                           </tr>
 
                           <tr>
                           <td>
                           CPT Code:
                           </td>
                           <td>
                               <telerik:RadComboBox ID="RadComboBox1" runat="server" EnableLoadOnDemand="true"
                       ShowMoreResultsBox="true" EnableVirtualScrolling="true" EmptyMessage="Enter here..."
                       DropDownWidth="170px">
                       <ItemTemplate>
                        
                       <asp:Label runat="server" ID="Label1" Text='<%# Eval("displayValue") %>'></asp:Label>
                       <telerik:RadToolTip ID="RadToolTip1" runat="server" Width="100" Height="10" TargetControlID="Label1"
                   Position="BottomRight" Text='<%# Eval("displayValue") %>'>
               </telerik:RadToolTip>
 
                       </ItemTemplate>
                       <WebServiceSettings Path="/Services/WebServices.svc" Method="GetCPTCodes" />
                               </telerik:RadComboBox>
                           </td>
                           </tr>
 
                           </table>
                           </FormTemplate>
                       </EditFormSettings>
                   </MasterTableView>
                   <FilterMenu EnableImageSprites="False">
                   </FilterMenu>
               </telerik:RadGrid>


What am I doing wrong? Or is this too complicated
Ivana
Telerik team
 answered on 12 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?