Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
137 views
i have added the unzip command to the fileexplorer but it will not extract the files .. here is the code i am using.
function OnGridContextItemClicked(oGridMenu, args) {
           var menuItemText = args.get_item().get_text();
           if (menuItemText == "UnZip") {// 'UnZip' command
               var oExplorer = $find("<%= rfeStorage.ClientID %>");
               var oAjaxPanel = $find("<%= RadAjaxPanel1.ClientID %>");
 
               var selectedItem = oExplorer.get_selectedItem();
               if (selectedItem.get_extension() == "zip") {
                   //var itemExt = ; // get the extension of the current item 
 
                   var itemPath = selectedItem.get_path(); // get the path of the current item 
                   oAjaxPanel.ajaxRequest(itemPath); // Call the RadAjaxPanel1_AjaxRequest function on the server ; 
                    
                   
               }
               else {
                   alert("Please, select a ZIP file");
               } 
           }
       }
       //]]>
   </script>
   RadMenuItem item = new RadMenuItem("UnZip");
                item.PostBack = false;
                item.Value = "CustomValue";
 
                rfeStorage.GridContextMenu.Items.Add(item);
                rfeStorage.GridContextMenu.OnClientItemClicked = "OnGridContextItemClicked";
}
 
   protected void RadAjaxPanel1_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            string path = e.Argument;
            LblAjaxPanel.Text = path;
        }
Please write me back asap. Thanks in advance
*revision*
I realized i dont have the function for the unzipping process can someone help me with that! please!
Corey
Top achievements
Rank 1
 asked on 23 Mar 2012
2 answers
95 views
Hello 

As i can know if the GridClientSelectColumn  is checked in the radgridview?.


thank you very much beforehand 





mauricio
Top achievements
Rank 1
 answered on 23 Mar 2012
7 answers
302 views
im using radgrid q3 2009.
im loading images via code behind

using the following code

If

 

TypeOf e.Item Is GridDataItem Then

 

 

Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)

 

 

 

If item("mattach").Text = MailHasAttach Then

 

 

Dim img As New System.Web.UI.WebControls.Image

 

 

img.ID =

"attachpic"

 

img.ImageUrl = Session(

"virtualdir") & Session("imagepath") & "attach.gif"

 

item(

"mattach").Controls.Add(img)

 

 

 

'End If

 

 

Else

 

 

Dim img As New System.Web.UI.WebControls.Image

 

 

img.ID =

"attachpic"

 

img.ImageUrl = Session(

"virtualdir") & Session("imagepath") & "blank.gif"

 

item(

"mattach").Controls.Add(img)

 

 

 

End If

 



when binding to datasource the images loaded in grid but when the page is refreshed without rebind it looses the images

could you please help?
Pavlina
Telerik team
 answered on 23 Mar 2012
2 answers
160 views
Hi I have a radtooltip with an image inside declared as follows in .aspx file
<telerik:RadToolTip ID="RadToolTip1" runat="server"
                                                   TargetControlID="help" IsClientID="true" Animation="Slide">
                                                           <asp:Image ID="Image2" runat="server"  />
                                                      
                                                       </telerik:RadToolTip>
what I want to do is change the image based on the index of a radcombobox.
I've try something like this

protected void RadComboBox6_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
       {
          
               case 1:
             Image2.ImageUrl = "/App_Themes/img/Mexico-Credencial-del-elector-reverso.jpg";
                   break;

                   
                   break;
               case 2:
                   Image2.ImageUrl = "/App_Themes/img/AGUILA-PJF.JPG";
                   break;
           }
       }

But no success. is this the correct way to show an image in a tooltip?
If yes, how can I change the image on rancombobox.selectedindexchange?
Cristian
Top achievements
Rank 1
 answered on 23 Mar 2012
8 answers
277 views
Hello,

i was wondering if there is a way to tell the control to render each appointment on a separate row even if the appointments do not overlap.

Right now the controls renders it:      [A]  [B]  [C]
Is there a way to tell it to render:        [A]
                                                                 [B]
                                                                        [C]

I tried using grouping on the appointment id but the performance suffered a lot. The amount of data is about 300-400 appointments for number of slots 90. Please let me know if there is a fast and simple way to do this. Thank you.

Regards
Robin
Ivana
Telerik team
 answered on 23 Mar 2012
2 answers
133 views
is it possible to remove the following code from the rawHTML used to generate pdf?

<thead>
        <tr>
            <th scope="col"> </th>
        </tr>
    </thead>

This is the header, but I have showheader at false and it is still rendering these items. 
Phillip
Top achievements
Rank 1
 answered on 23 Mar 2012
4 answers
481 views
HI,

I am using RADWindow on Master page, when user clicks any button I have a JavaScript that finds, sets the NavigateURl property of RADWindow control as follows:

<

script type="text/javascript">  

 

function OpenCreateVirtualFarmWindow(button, args) {  

var oManager = GetRadWindowManager();  

var oWnd = oManager.getWindowByName("CaasRADWindow");  

oWnd.SetSize(400, 400);

oWnd.SetUrl("/CaasCustomerPortal/CreateFarm.aspx");  

oWnd.Show(); 

return false;   

}

</

script> 


Step 2) Inside the CreateFarm.aspx we have  a "Create" and "Cancel" button, I want to close this RADWindow when the user hits Cancel button. How to achieve that in the CreateFarm.aspx.cs, I mean how do I get reference to instance of RADWindow and CLOSE it?
Marin Bratanov
Telerik team
 answered on 23 Mar 2012
1 answer
89 views
Hi,

I want to create a control which is derived from RadGrid. I want to add a RadTextBox and a RadButton above the Grid and want to
implement this in the derived class.

Normally, I would create both controls in CreateChildControls and Render them at the correct location in RenderContents.
Unfortunately, I get the following error message in RenderContents when calling
radTextBox.RenderControl(writer);

Script control 'radTextBox' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().

Parameter name: scriptControl

I don't wan't to create a new userControl with my two controls and the RadGrid. Could you please tell me how I can add child controls to a control derived from RadGrid?

Thanks!
Tsvetina
Telerik team
 answered on 23 Mar 2012
1 answer
68 views
Hi Guys,

I would like to be able to make some changes to the hyperlink manager and was hoping you could let me know what's involved in this.

The main change is simply just to add some text at the top of the window of the first tab. Is there any functionality in place already that will allow this or does it need changes?

Thanks as always.
Rumen
Telerik team
 answered on 23 Mar 2012
1 answer
129 views
Another twist to this functionality - so Ive read http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx and it works fine for one radeditor but the OnClientLoad event handler doesnt seem to be registered for the other radeditors in my page. They are inside multipages on other tabs.

Please advise.

Thanks.

Roland
Rumen
Telerik team
 answered on 23 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?