Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
127 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
225 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
140 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
175 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
177 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
2 answers
114 views
We're using a RadDock and as we have to display some localized labels in there, we don't want to give it a fixed size, but we want it to behave in a 'shrink-to-fit' way. For some reason the width property is initialized with a DefaultAttribute of 300. When we set it to Unit.Empty it looks fine in Firefox (it shrinks to fit as expected). Unfortunately in IE7 the Rad is doing strange things, its right border always expands till to the right window border. Do you have any idea why it is doing this?
Pascal
Top achievements
Rank 1
 answered on 10 Jul 2009
1 answer
171 views
Does anyone know of a server or client event that can be configred for a RadGrid or the table view of a RadGrid that will fire when any value in the row or cell has changed.

I want to generate a callback to the server whenever any of the content controls in a row has changed to indicate that the current row for editing is "dirty" and needs to be managed.

Thanks
Yavor
Telerik team
 answered on 10 Jul 2009
1 answer
59 views
Dear All

Is it possible to add text area in the advanced insert/Edit form, the text area is our customized notes i want to put from data base


regards

imtiyaz
T. Tsonev
Telerik team
 answered on 10 Jul 2009
1 answer
122 views
Hi,

Our organization is about to start a new project, and we are currently reevaluating UI Components offerings.  We have used Telerik in the past and we now need to see if it can still fullfill our needs.

The most important scenarios we are looking to cover I will describe below, and I would like Telerik to tell me if using their controls will help me in doing it.

We want to be able to bind to a grid the content of an XML files.  The grid should allow inline editing (similar as a worksheet in Excel) of multiple rows.  Upon some trigger (let's say a Save button outside the grid), the grid should send back to the server, in XML format, only the data of the rows that have changed.  An acceptable solution would be to send the entire XML back (not only the rows that have changed).

We want the same behavior to be achievable with a Tree control as well.

Thank you,
Jonathan Rajotte
Sebastian
Telerik team
 answered on 10 Jul 2009
1 answer
142 views
Does the ListBox control support double clicking to move items back and forth between listboxes?

Thanks,
Gene.
Simon
Telerik team
 answered on 10 Jul 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?