Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
219 views
Did the behavior of the RadFormDecorator change in 2009.2 regarding the portion of the DOM that is decorated by default?

In 2009.1, the decoration would only apply to controls that were lower in the DOM tree than the form decorator control itself.  For example:
<div>
<asp:Textbox>Not Decorated</asp:TextBox>
<div>
<TELERIK:RadFormDecorator ControlsToDecorate="TextBox" />
<asp:Textbox>Is Decorated</asp:Textbox>
</div>
</div>

This meant if you were using master pages or nested controls, that the decorating would stay confined to your control.  In 2009.2, it appears that the entire DOM is decorated by default.  Is this intended?  It is not documented in the change notes.

Joel
Georgi Tunev
Telerik team
 answered on 10 Jul 2009
2 answers
119 views
Hi,

There's no documentation in the 2009 Q2 Help file. You know about this, right?
Nathan J Pledger
Top achievements
Rank 2
 answered on 10 Jul 2009
3 answers
195 views
Hi,

I am using the Telerik skin and I have a hard time figuring out how to center the menu. I put it in a table cell and it seems to float to the left by default. I edited the css file to prevent the floating but it didn't work.

What is the right way to center the menu?
Paul
Telerik team
 answered on 10 Jul 2009
2 answers
63 views
Hello,

is there a way to set the MaxLength for the text in the FilterControl of a GridBoundColumn?

Best Regards
Dominic
Top achievements
Rank 1
 answered on 10 Jul 2009
2 answers
103 views
Question:

1. How can I restrict the number of dock can be mapped to a zone? Apparently I could drag and drop any number of dock to a zone, but I only want to have one.

2. Is it possible to do something like, dragging a literal text over a zone, but when it's dropped or hover onto a zone, it shows an image? My intention is to drag and drop image onto a zone.
Pero
Telerik team
 answered on 10 Jul 2009
2 answers
123 views
Hi
im using object datasource and radgrid... can u please help to achieve sorting using object datasource...

Thanks And regards
Vin
vin
Top achievements
Rank 1
 answered on 10 Jul 2009
11 answers
217 views
Hello all,
Have a quick question about the rendering of the rad grid specifically in internet explorer 6-7. Whenever EnableRowHoverStyle is on there seems to be a latency in IE whenever there are 30 or more items in the grid. When in firefox 2.0+ this seems to be non issue where the hover style is instant. I'm guessing this is the way IE renders the info.

For a quick test I created a simple grid with 10k items. After full render in IE; the cpu would spike every time I hovered over a row. Even though there were no styles or javascript associated with this control. In firefox, again, there was nothing. Does IE magically throw events on items even when there are none assigned to them? Any comments or suggestions would be very helpful. Thank you for your time.
Dimo
Telerik team
 answered on 10 Jul 2009
3 answers
132 views
I'm using rad controls 2009.1.311.35 & VS 2008.
The bgcolor of my design is blue.
So when I use editor its background color is also becomes blue.
To avoid this I'm using a css.

My editor is:
<telerik:RadEditor id="RadEditor_Desc" OnClientLoad="OnClientLoad" runat="server"  Skin="Sunset" width="715px" height="800px"   >
                          
 <Paragraphs>
<telerik:EditorParagraph Title="<p class='VerdanaFont10Line15'>Verdana Font10 Line15</p>" Tag="<p class='VerdanaFont10Line15'>" />
</Paragraphs>
<Content>
</Content>
</telerik:RadEditor>

To avoid the bgcolor blue i'm using the css:
<CssFiles>
<telerik:EditorCssFile Value="~/css/EditorContentArea.css" />
</CssFiles>

css file is:
 body
{
  background-color: White !important;
  color: Black !important;
}   

OnClientLoad is used to add custom colors.

The editor is in the content page.

When if i call the the external css to clear the bgcolor, the paragraph styles are not working.
I i avoid that file the paragrapg style wil work fine, but the bgcoolor is blue itself.
Plz help.

                                 
Rumen
Telerik team
 answered on 10 Jul 2009
1 answer
170 views
Hey,

We are programatically creating and saving grids.    We have a button that allows the user to save the current state of the grid.  The problem we are having is that when we retrieve the grid the filter expression is applied to the grid data which is correct but you don't see the filter value in the filter box over the column nor do you see where the "Equal To" or "Contains" has been set when you click on the down arrow next to the filter value.  I've attached the savesettings and loadsetting methods we are using.  Is there something else we need to set?

Thanks,
Larry

        public void SaveSettings(int reportid, string reportname)  
        {  
            object[] gridSettings = new object[4];  
 
            //Save groupBy  
            GridGroupByExpressionCollection groupByExpressions = this.MasterTableView.GroupByExpressions;  
            object[] groupExpressions = new object[groupByExpressions.Count];  
 
            int count = 0;  
            foreach (GridGroupByExpression expression in groupByExpressions)  
            {  
                groupExpressions[count] = ((IStateManager)expression).SaveViewState();  
                count++;  
            }  
 
            gridSettings[0] = groupExpressions;  
 
            //Save sort expressions  
            gridSettings[1] = ((IStateManager)this.MasterTableView.SortExpressions).SaveViewState();  
 
            //Save columns order and visibility  
            int columnsLength = this.MasterTableView.Columns.Count +  
             this.MasterTableView.AutoGeneratedColumns.Length;  
 
            string[] columnOrder = new string[columnsLength];  
            bool[] columnVisible = new bool[columnsLength];  
 
            ArrayList allColumns = new ArrayList(columnsLength);  
 
            allColumns.AddRange(this.MasterTableView.Columns);  
            allColumns.AddRange(this.MasterTableView.AutoGeneratedColumns);  
 
            int i = 0;  
            foreach (Telerik.Web.UI.GridColumn column in allColumns)  
            {  
                columnOrder[i] = column.UniqueName;  
                columnVisible[i] = column.Visible;  
                i++;  
            }  
 
            gridSettings[2] = columnOrder;  
 
            //Save filter expression  
            gridSettings[3] = (object)this.MasterTableView.FilterExpression;  
 
            RemoteUser _user = ((RemoteUser)Context.User);  
 
            SqlHelper.Execute("user_custom_report_create_p" , _user.UserId , reportid , reportname, _user.CurrentCustomerID ,  _user.CurrentPeriod , GridHelper.Serialize(columnOrder, GridHelper.SeralizeType.LOS) ,GridHelper.Serialize(gridSettings[1], GridHelper.SeralizeType.LOS), GridHelper.Serialize(gridSettings[3], GridHelper.SeralizeType.LOS), GridHelper.Serialize(gridSettings[0], GridHelper.SeralizeType.LOS) , GridHelper.Serialize(columnVisible, GridHelper.SeralizeType.LOS));  
              
 
        }  
 
 
 
        //this method should be called on PageInit  
        public void LoadSettings(int reportid)  
        {  
 
            object[] _columns = new object[5];  
            RemoteUser _user = ((RemoteUser)Context.User);  
 
              
            // go get the report settings  
            // if we cant find the reportid for this userid, throw an exception  
 
            DataTable _tbl = SqlHelper.ExecuteDataset("user_custom_report_get_p" , _user.UserId , reportid).Tables[0];  
 
            if (_tbl.Rows.Count == 0)  
                throw new Exception("The user custom report is not valid + userid: " + _user.UserId.ToString() + " reportid: " + reportid.ToString());  
              
            //TODO: check security to make sure the user has access to the customerid  
            //if ( _user.Customers.  _tbl.Rows[0]["CustomerID"].ToString()   
 
 
            HttpContext.Current.Session["CustomerID"] = _user.CurrentCustomerID = _tbl.Rows[0]["CustomerID"].ToString();  
            HttpContext.Current.Session["BillYYYYMM"] = _user.CurrentPeriod = _tbl.Rows[0]["billyyyymm"].ToString();  
 
 
            // Now get the string array of columns and use this.AddColumns  
            this.AddColumns((string[])GridHelper.DeSerialize(_tbl.Rows[0]["columns"].ToString() , GridHelper.SeralizeType.LOS));  
 
            //Load groupBy  
            this.MasterTableView.GroupByExpressions.Clear();  
            int count = 0;  
            foreach (object obj in ((object[])GridHelper.DeSerialize(_tbl.Rows[0]["groupby"].ToString() , GridHelper.SeralizeType.LOS)))  
            {  
                GridGroupByExpression expression = new GridGroupByExpression();  
                ((IStateManager)expression).LoadViewState(obj);  
                this.MasterTableView.GroupByExpressions.Add(expression);  
                count++;  
            }  
 
 
            //Load sort expressions  
            this.MasterTableView.SortExpressions.Clear();  
            ((IStateManager)this.MasterTableView.SortExpressions).LoadViewState((GridHelper.DeSerialize(_tbl.Rows[0]["sort"].ToString(), GridHelper.SeralizeType.LOS)));  
 
 
 
            this.MasterTableView.FilterExpression = (GridHelper.DeSerialize(_tbl.Rows[0]["filter"].ToString() , GridHelper.SeralizeType.LOS)).ToString();  
              
        }  
 
Yavor
Telerik team
 answered on 10 Jul 2009
1 answer
172 views
My scenario is this, I have a parent check box and when it gets checked, I want to set its child checkboxes to checked and disable the checkboxes. I have seen many posts on how to do this client side, but none on server side. How can I do this server side? Thanks.

Mike
Shinu
Top achievements
Rank 2
 answered on 10 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?