Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
98 views
Hi,

I have got a problem receiving the selected GridItem out of the GridView "Telerik.Web.UI.RadFileExplorer.Grid". When i request "Grid.SelectedValue" it's sends back an object. I tried to convert it to all kinds of formats but could not discover the good format. I am curious about which format it returns.

But if i try to request "Telerik.Web.UI.RadFileExplorer.Grid.Items" it returns 0 items, dont know why couse in my browser there are realy 3 directory's in the explorer.

public class FileExplorer : Telerik.Web.UI.RadFileExplorer  
    {  
        /// <summary>  
        /// Raises the <see cref="E:Init"/> event.  
        /// </summary>  
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>  
        protected override void OnInit(EventArgs e)  
        {  
            InitializeControls();  
 
            this.GridContextMenu.ItemClick += new RadMenuEventHandler(GridContextMenu_ItemClick);  
 
            base.OnInit(e);  
        }  
 
        /// <summary>  
        /// Initializes the controls.  
        /// </summary>  
        private void InitializeControls()  
        {  
            this.Configuration.ContentProviderTypeName = typeof(Sunnova.Web.UI.Controls.SunnovaFileStreamContentProvider).AssemblyQualifiedName;  
            this.Configuration.ViewPaths = new string[] { "/app_files" };  
            this.Configuration.UploadPaths = new string[] { "/app_files" };  
 
            this.Configuration.MaxUploadFileSize = 2000000;  
 
            RadMenuItem rmi = new RadMenuItem("Unzip");  
            this.GridContextMenu.Items.Add(rmi);  
 
            foreach (RadMenuItem item in this.GridContextMenu.Items)  
                if (item.ID != rmi.ID)  
                    item.PostBack = false;  
        }  
 
        void GridContextMenu_ItemClick(object sender, RadMenuEventArgs e)  
        {  
            "Here must the item be requested." 
        }  
    } 

I need to receive the file path of the selected file. Am i in the right direction or all wrong ?

I'll think you guys can help me out right ? 

Thank you in advance,
Suneco
Top achievements
Rank 2
 answered on 02 Jun 2009
1 answer
136 views
Hello i have 3 forms

                 i can open the radwindow with form on that buttn click and inside that radwindow form another add button , when i click on that button i want to open another Radwindow outside of that window, means when i click add show the Addwindow and close the currentwindow. After adding close the Addwindow Open first window .................. How to do this how to hide parent window open child after doing operation how to hide child open parent again.



Thanks
Regards
Rahul


Princy
Top achievements
Rank 2
 answered on 02 Jun 2009
8 answers
1.7K+ views
I have a asp chart in the item template in the detail table view of the gris.
How to find it in ItemDataBound?
kollam2003
Top achievements
Rank 1
 answered on 02 Jun 2009
1 answer
112 views
Hi there, I use RadEditor to edit my website's enewsletter. I need to use Document Manager to upload a file and then add it to enews letter. When customer gets this e-letter, he can click the file's link to browse. I set StripAbsoluteImagesPaths and StripAbsoluteLinkPaths to false. Images display well but file link doesn't work.

Any idea? Thanks!

Sally
Rumen
Telerik team
 answered on 02 Jun 2009
2 answers
124 views
I get a grid in a user control that I load dynamically in a PageView, using LoadControl.
I want the grid has a 100% height and width. But it didn't. The grid has a 100% width, but height is not set to 100%.
Only the grid header is visible.

I try various tricks I found on the forum and on the code library (this example : http://www.telerik.com/community/code-library/aspnet-ajax/ajax/how-to-set-100-height-and-random-styles-to-a-radajaxmanager-update-panel.aspx#590889) but that not works.

Is there a solution ?


Cedric
Top achievements
Rank 1
 answered on 02 Jun 2009
1 answer
93 views
I have a simple question.  I want a title on first PDF file.  When I use PageTitle, it shows on all pages.  Can that be done?
Pavlina
Telerik team
 answered on 02 Jun 2009
1 answer
122 views
hello.

when i press sort arrow the sort command doest sort any data and "jumps" to the next column whit property allow filtering set to true. 

when i saw this behavior i have create a handler on sort command and i saw that if i click on label the eventargs brought‘s  the correct column but always the same command (Asc).

But if i click on arrow the sort collum brings the next column whit (Asc) command.

Using label i'm able to filter data in RadGrid whit some workaround code, but not using arrow.

All data is created in CodeBehind... the unique control created in markup is RadGrid.

In page load i'm creating columns and populating the grid... on every postbacks!

What i'm doing wrong, or is this a know issue. 

 
Pavlina
Telerik team
 answered on 02 Jun 2009
1 answer
291 views
Hi,
I have a master/content page scenario with 2 listboxes (available and chosen) and 2 buttons (add and remove) on the page.

Clicking on a button either adds a value from the available to the chosen or removes a value from the chosen to the available.

I have a RadAjaxManageProxy on the page and have it set up so that when a button is pressed it will refresh all listboxes and buttons.

The RadAjaxLoadingPanel is set to show over the button that was clicked.

However when a button is clicked the RadAjaxLoadingPanel is showing in the top left corner of the browser and not over the control.

Any ideas?
Pavlina
Telerik team
 answered on 02 Jun 2009
2 answers
276 views

We have Asp.net Ajax 2009 Q1 SP1 on our server and developer machine.
The width property is set to 100% and the page can be dynamically resized by the user. Initial window size is 100% width and height. The PanelBar width is more than 200px. On the child item, towards the right side of the panel bar (before the end of it) white area appears without styling. When the widow is resized so the PanelBar width reduces, this white area shrinks as well and at some point disappears. On expand of the window the white space reappears (dynamically). I have found a thread with (probably) similar issue but I am keep getting “Server Error” (
http://www.telerik.com/community/forums/aspnet-ajax/panelbar/radpane-width-problem.aspx).

Is there a way to disable white spacing appearance?

 Thanks Dejan

<asp:ScriptManager ID="popupScriptmanager" runat="server"></asp:ScriptManager> 
      
<telerik:RadPanelBar   
    runat="server" 
    ID="ViewGroupsPanelBar"    
    Width="100%"   
    AppendDataBoundItems="True">  
</telerik:RadPanelBar> 
protected void Page_Load(object sender, EventArgs e)  
{  
   int xCount = 1;  
   while (xCount < 10)  
   {  
      RadPanelItem rpi = new RadPanelItem();  
      ViewGroupsPanelBar.Items.Add(rpi);  
      rpi.Text = "Bar " + xCount.ToString();  
      rpi.PostBack = false;  
      if (xCount == 1)  
          rpi.Expanded = true;  
 
      int iCount = 1;  
      while (iCount < 5)  
      {  
         RadPanelItem rpiChild = new RadPanelItem();  
         rpiChild.Text = "Item " + xCount.ToString() + "; " + iCount.ToString();  
         rpiChild.Value = "Item " + xCount.ToString() + "; " + iCount.ToString();  
         rpiChild.Width = Unit.Percentage(100);  
         rpi.Items.Add(rpiChild);  
         iCount++;  
      }  
      xCount++;  
   }  
}  
 

Dejan
Top achievements
Rank 1
 answered on 02 Jun 2009
10 answers
147 views

We have Asp.net ajax 2009 Q1 SP1 on our server and developer machine.
On client click of the button that has NavigateURL property set to (e.g.) 
rtb.NavigateUrl = "javascript:alert('Hello World');"; it will execute it twice. In your examples you have trial dll that is form February 2008 and our dll is release version from January 2009. Is there a solution / patch for this behaviour? Thanks. Dejan

Dejan
Top achievements
Rank 1
 answered on 02 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?