Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
85 views
Hey

A client of ours has requested us to supply him with a grid using Excell style filtering. This would require multiple filter criteria for each column using the OR operator.
Basically this means I need multi-select dropdownlists (which would be drop down checkboxlists or something) above the columns instead of single select dropdowns.
I was just wondering if your grid can facilitate this functionality and how?

Greetz,

Kevin
Kevin Van Puyvelde
Top achievements
Rank 1
 answered on 19 Apr 2010
1 answer
124 views
Hi,
I followed the example at:
http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/outlooknavigation/defaultcs.aspx

I am wondering if this is the only way to have this effect (panels at the button and content changing at the top). With this approach, we lose the capability to use RadPanelItem, forcing us to implement the items on each RadPageView.

 

Thanks.
Teodorico
Top achievements
Rank 1
 answered on 19 Apr 2010
4 answers
126 views
Hi,

We have one RadGrid which contains long text as a single record.
Everything displaying fine, but when mouse hover on it, then it displays not properly and display different color's line.
In short it does not display in specified skin.
Image is attached.
Please suggest for resolving the issue.

Thanks in Advance,
Naresh

Naresh Goradara
Top achievements
Rank 2
 answered on 19 Apr 2010
3 answers
202 views

Hello there, I'm trying to conditionally hide a row on the server side.  My code looks like this:

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)  
{  
    if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)  
    {  
        if (e.Item.OwnerTableView.Name == "Customer")  
        {  
 
        }  
 
        if (e.Item.OwnerTableView.Name == "CustomerDetail")  
        {  
            CustomerDetail detail = (CustomerDetail)e.Item.DataItem;  
            if (detail.IsCancelled)  
            {  
                // Hide the row, e.Item.Visible = false  doesn't seem to work
            }  
        }  
    }  
} 

The good news is the code gets hit during debugging, and at that point, I'd like to hide the row.  The row does reside inside of a DetailTable/GridTableView.  Do I need to do this inside of another server side event?  Or should I filter my results when the detailtable gets databound?

I've searched these forums for quite a while but no luck . Any help is greatly appreciated.

-- Mike
Mike
Top achievements
Rank 2
 answered on 19 Apr 2010
3 answers
539 views
Hi,

I encounter the following strange behaviour when using the Telerik RadGrid.

I have a 3-tiered hierarchical RadGrid. Simplified:
<RadGrid>
<NestedViewTemplate>
<RadGrid>
<NestedViewTemplate>
<RadGrid>
</RadGrid>
</NestedViewTemplate>
</RadGrid>
</NestedViewTemplate>
<RadGrid>

The HierarchyLoadMode is set to "ServerOnDemand" (default?), and all data is wired using the NeedDataSource event. The EditForm is set to a WebUserControl.

This construction however poses two significant problems:

  1. When a parent grid item is expanding, the parent's NeedDataSource event is called, while it isn't specifically needed for the parent to rebind. In fact, if I check the GridRebindReason property and make it so it doesn't set the DataSource property when the reason is GridRebindReason.DetailTableBinding, it works perfectly. So if the parent isnt required to rebind, why does it call the eventhandler? It reduces the amount of database querying by a lot if I filter for the DetailTableBinding flag.
  2. Even more "disturbing": When I try to edit or add any item, in the parent grid or either of the childgrids, the NeedDataSource event is called for every RadGrid in the hierarchy. Which results in a lot of queries for radgrids that aren't even visible on the page.

Is this a known problem? And more importantly, is there any way around this? I'd attach the code but sadly I don't have a clean version of the page.

Above problems are encountered using ASP.NET 3.5, C#, and the ASP.NET AJAX toolkit Q1 2010

Greetings
Iana Tsolova
Telerik team
 answered on 19 Apr 2010
1 answer
99 views
Hi there.

I have the need to be able to only allow a single selection of a node at a given level. For example, let's say my first level of nodes are states and under each state are cities within that state.

Alabama
    Mobile
    Tuscaloosa
Alaska
    Anchorage
    Fairbanks
    Juneau

If I have the Mobile node checked, then I select Archorage, Mobile would be deselected. I could however select multiple cities within a state. Is the best way to handle this to just run through the proper de-selection when the new node is clicked?

Mike
Nikolay Tsenkov
Telerik team
 answered on 19 Apr 2010
7 answers
158 views

Dynamically created columns causes problem when column Display = False

We are Telerik v2010 Q1.  When add a column with Dispay = false it hides the column, but there is the a large gap to the right of the grid e.g.

Before

ID

Col 2

Col 3

 

 

 

After

Col 2

Col 3

<< GAP?! >>

 

 

 

 

Extract

            //id column

            col = new GridBoundColumn();

            //TODO: Setting col.Display = false causes a problem

            this.uxResults.Columns.Add(col);

            //now ammend properties

            col.UniqueName = “ID"

            col.Visible = true; //NB Note that Display is set to false!!

            col.DataField = “ID”

            col.HeaderText = "";

            col.FilterListOptions = GridFilterListOptions.VaryByDataType;

            //col.AllowFiltering = true;

            //col.AllowSorting = true;

            //col.ReadOnly = true;

            col.Display = false;

Iana Tsolova
Telerik team
 answered on 19 Apr 2010
1 answer
90 views
I have a main page called Main.aspx which is based on a masterpage (called Main.Master).  The master page has a RadWindowManager on it. 

I have a pop-up page called Popup.aspx which is based on masterpage (called Popup.Master).  That master page also has a RadWindowManager on it for any popup pages.

Both of the master pages have a definition for opening a Help file.  When I click help from the main page, the help window is displayed in the center of the screen. 

The problem is that when I click help from the pop-up page, the help window is limited to the boundaries of the pop-up page that called it.

How can I call for the Help file but have it be independant of the pop-up page?

Thanks!
Princy
Top achievements
Rank 2
 answered on 19 Apr 2010
3 answers
532 views
If you look in the attached image, I am inserting a row into a radgrid with the Editmode="Popup".  The insert is failing because there is already a row with the user/password combination.

I am using the following code to display the error.
        protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e) 
        { 
            if (e.Exception != null) 
            { 
                Exception eex = e.Exception; 
 
                string msg; 
                if (ex.InnerException != null) msg = ex.InnerException.Message; 
                else msg = ex.Message; 
 
                RadGrid1.Controls.Add(new LiteralControl(string.Format("<span style='color:red'>{0}</span>", msg))); 
                e.ExceptionHandled = true; 
            } 
 
             
        } 

I would like to change the code above to display the error in the popup edit window instead of at the bottom of the grid itself.  Anyone know how to do this?

I've tried to put a label in the edit window but whenever I assign a value to the label in the RadGrid1_ItemInserted function, the new value is never rendered on the popup window.

Thanks.


Veli
Telerik team
 answered on 19 Apr 2010
2 answers
154 views
hi ,
i am using RadCalendar ,how to avoid multiple date selection at one time.
i.e when i selct i date ,and try to select other date .the previous selection also exits .
which gives me a error as we are performing some actions based on the selected date.

so how to avoid it .
sriharsha an
Top achievements
Rank 1
 answered on 19 Apr 2010
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?