Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views
Hey,

I am having a problem hiding the expand icon on a Grid.  I've been trying to follow the examples in the documentation, but I'm trying to do it a little different than what is posted.  I have a column in the master view that tells me if I have additional records in a detail table.  So I'm trying to utilize this column in order to show or hide the expand icon.

Here is an example of what I have so far, but I must admit, I'm really lost.

  Dim nestedViewItems As GridItem() = tableView.GetItems(GridItemType.Item) 
            For Each nestedViewItem As GridItem In nestedViewItems 
                If nestedViewItem.DataItem("AdditionalAddresses") > 0 Then 
                    Dim NestedGridItem As GridNestedViewItem = NestedGridItems(nestedViewItem.ItemIndex) 
                    Dim cell As TableCell = NestedGridItem.NestedTableViews(0).ParentItem("ExpandColumn") 
                    cell.Controls(0).Visible = False 
                    nestedViewItem.Visible = False 
                End If 
            Next 

I am getting in the if statement based on my "AdditionalAddresses" column, however, I can't seem to find out how to reference the "expandColumn" cell.

Thanks,
Bob
Shinu
Top achievements
Rank 2
 answered on 02 Jun 2009
2 answers
64 views
Hi All,

The problem.
When i click on the Insert btn (CommandItemTemplate) of the Detail table, it does not go into "Insert Mode", ie no New Grid Row is provided (inline mode) to capture data into.
Is there a requirement I'm missing??

Scenario:
  • I am not using the <ParentTableRelation> . (I mention it because I don't know if this could cause the issue).  
  • DataBinding occurs in the DetailTableDataBind event.(MainGrid uses OnNeedDataSource).

Thanks
Neal

 

Neal
Top achievements
Rank 1
 answered on 02 Jun 2009
2 answers
103 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
141 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
118 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
126 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
95 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
123 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
296 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?