Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
I am trying to export a grid with a single level hierarchal data, but the customer only wants to export the second level data that is currently expanded in the web-page, not all of the second level stuff.

Is there a way to export the entire first level of the data in the grid and then only export the hierarchal subsets that are currently expanded in the grid instead of all or nothing?

Thanks,
Jim Harkins
Daniel
Telerik team
 answered on 11 Jan 2010
3 answers
121 views
hi

how can i set the position of my pop up window?
i mean place where it should be appear

thanks in advance

regards
webster
Svetlina Anati
Telerik team
 answered on 11 Jan 2010
14 answers
234 views
We are receiving a javascript error (see subject) when loading a user control that contains a splitter but only when the control is Ajaxed. While debugging, it is finding exception in ScriptResource.axd. The error is at the line: var l=n.panes;
}o.splitbars=k;  
this._resetLastItemClass(g);  
}},_fixItemsIndeces:function(e){var n=this._splitters[e];  
var l=n.panes;  
var d=l?l.length:0;  
var q=n.splitbars; 
This exception is new since we upgrade to Q3 2009. Is this a known issue? And as i said, we do not receive an error if Ajax is disabled. I can provide more code is necessary. Thanks!
XXXX
Top achievements
Rank 1
 answered on 11 Jan 2010
2 answers
127 views
Looks like the form decorator has compatibiliy issues with microsoft's ajaxToolkit ConfirmButtonExtender and ModalPopupextender.  For every instance of the extender a bracket "]" appears. If I select "buttons" for ControlsToSkip the issue goes away but now my buttons don't match the rest of my site.  This is probably because the popup extender has buttons embedded in it.  I see Zone as a ControlsToSkip option.  What is a Zone and can I enclose the extender in such a Zone?

 

Lini
Telerik team
 answered on 11 Jan 2010
3 answers
269 views

Dear All,

I am very new to RadGrid. So please let me know how I can get the following task done. I need to programmatically create an grid with multiple column types. A few columns need to have mulitple sub-columns inside. So as far as my understanding goes, I need to create template column to do this job. So I did the following code and it seems working. However, i do not know how to get the filtering and sorting working with these columns though. Your help will be highly appreciated!

Here is what I have done. The current problem is the the combombox that I added to the filter control does not keep its value after postback. Please let me know what is missing. Thanks.

//the following is My template column which is extended   
//from the GridTemplateColumn  
 
    public class ComparisonColumn : GridTemplateColumn  
    {  
        private string _VColName;  
        private string _TColName;  
        private string _DColName;  
        private string _HColName;  
        private string _FilterCol;  
        RadComboBox combo;  
 
 
        public ComparisonColumn(string HeaderColName)  
            : base()  
        {  
 
            _HColName = HeaderColName;  
            _VColName = HeaderColName;  
            _TColName = HeaderColName + "_T";  
            _DColName = HeaderColName + "_D";  
            DataField = _VColName;  
        }  
 
         //I added a combobox in the filter control cell. It has 3 items "C", "T"   
        //and "D". Each item represent a sub-column in this column.   
        //So user will select a sub-column to filter on by select a value in  
// this dropdown list and then enter filter value into the filter textbox   
//and do the filtering.  
 
        protected override void SetupFilterControls(TableCell cell)  
        {  
 
            base.SetupFilterControls(cell);  
 
            cell.VerticalAlign = VerticalAlign.Bottom;  
            combo = new RadComboBox();  
            combo.ID = ("RadComboBox1" + this.UniqueName);  
            RadComboBoxItem c = new RadComboBoxItem("C");  
            combo.Items.Add(c);  
            RadComboBoxItem t = new RadComboBoxItem("T");  
            combo.Items.Add(t);  
            RadComboBoxItem d = new RadComboBoxItem("D");  
            combo.Items.Add(d);  
            combo.Width = Unit.Percentage(20);  
 
            TextBox txBox = (TextBox)cell.Controls[0];  
            txBox.TextChanged += this.textBox_TextValueChanged;  
            cell.Controls.AddAt(2, combo);  
            combo.SelectedIndexChanged += this.list_SelectedIndexChanged;  
 
            cell.Wrap = false;  
        }  
 
          
 
 
        private void list_SelectedIndexChanged(object sender, EventArgs e)  
        {  
            RadComboBox o = (RadComboBox)sender;  
            _FilterCol = o.Text;  
            switch (_FilterCol)  
            {  
                case "C": DataField = _VColName; break;  
                case "T": DataField = _TColName; break;  
                case "D": DataField = _DColName; break;  
                default:  
                    DataField = _VColName;  
                    break;  
 
            }  
        }  
 
 
        private void textBox_TextValueChanged(object sender, EventArgs e)  
        {  
 
            GridFilteringItem filterItem = (GridFilteringItem)((TextBox)sender).NamingContainer;  
            _FilterCol = combo.Text;  
            if (_FilterCol == null || _FilterCol == "C" || _FilterCol == "")  
            {  
                DataField = _VColName;  
            }  
            else if (_FilterCol == "T")  
            {  
                DataField = _TColName;  
            }  
            else if (_FilterCol == "D")  
            {  
                DataField = _DColName;  
            }  
        }  
 
   
        //I was hopping to keep the selection in the combo box after postback   
        //(sorting). However, The following attempt does not work  
 
        protected override void SetCurrentFilterValueToControl(TableCell cell)  
        {  
            base.SetCurrentFilterValueToControl(cell);  
            RadComboBox combo = (RadComboBox)cell.Controls[2];  
            if ((_FilterCol != string.Empty))  
            {  
                combo.Text = _FilterCol;  
            }  
        }  
    }  
 
 
//the header template  
    public class ComparisonHeaderTemplate : ITemplate  
    {  
        private string _headerTxt;  
        private string _VColName;  
        private string _TColName;  
        private string _DColName;  
        public ComparisonHeaderTemplate(string headerTxt, string dataFldText)  
        {  
            _headerTxt = headerTxt;  
            _VColName = dataFldText;  
            _TColName = dataFldText + "_T";  
            _DColName = dataFldText + "_D";  
        }  
 
        public void InstantiateIn(System.Web.UI.Control container)  
        {  
            Table table = new Table();  
            TableRow row1 = new TableRow();  
            TableRow row2 = new TableRow();  
            TableCell cell11 = new TableCell();  
            TableCell cell21 = new TableCell();  
            TableCell cell22 = new TableCell();  
            TableCell cell23 = new TableCell();  
            table.Width = Unit.Percentage(100);  
            cell11.ColumnSpan = 3;  
            cell11.Width = Unit.Percentage(100);  
            cell21.Width = Unit.Percentage(33.3);  
            cell22.Width = Unit.Percentage(33.3);  
            cell23.Width = Unit.Percentage(33.4);  
 
            row1.Cells.Add(cell11);  
            row2.Cells.Add(cell21);  
            row2.Cells.Add(cell22);  
            row2.Cells.Add(cell23);  
            table.Rows.Add(row1);  
            table.Rows.Add(row2);  
 
            cell11.Text = _headerTxt;  
            cell21.Text = "Current";  
            cell22.Text = "Threshold";  
            cell23.Text = "Difference";  
            table.HorizontalAlign = HorizontalAlign.Center;  
            table.GridLines = GridLines.None;  
            container.Controls.Add(table);  
            //container.Controls.Add(new LiteralControl("<br />"));  
        }  
 
 
    }  
 
    public class ComparisonItemTemplate : ITemplate  
    {  
        protected LiteralControl lControlV;  
        protected LiteralControl lControlT;  
        protected LiteralControl lControlD;  
        private string colnameV;  
        private string colnameT;  
        private string colnameD;  
 
        public ComparisonItemTemplate(string cName)  
        {  
            colnameV = cName;  
            colnameT = cName + "_T";  
            colnameD = cName + "_D";  
        }  
 
        public void InstantiateIn(System.Web.UI.Control container)  
        {  
            lControlV = new LiteralControl();  
            lControlV.ID = colnameV;  
            lControlV.DataBinding += new EventHandler(lControl_DataBinding);  
            lControlT = new LiteralControl();  
            lControlT.ID = colnameT;  
            lControlT.DataBinding += new EventHandler(lControl_DataBinding);  
            lControlD = new LiteralControl();  
            lControlD.ID = colnameD;  
            lControlD.DataBinding += new EventHandler(lControl_DataBinding);  
            Table table = new Table();  
            TableRow row1 = new TableRow();  
            //TableRow row2 = new TableRow();  
            TableCell cell11 = new TableCell();  
            TableCell cell12 = new TableCell();  
            TableCell cell13 = new TableCell();  
            table.Width = Unit.Percentage(100);  
            table.CellSpacing = 1;  
 
            cell11.Width = Unit.Percentage(33.3);  
            cell12.Width = Unit.Percentage(33.3);  
            cell13.Width = Unit.Percentage(33.4);  
            //TableCell cell22 = new TableCell();  
            cell11.BackColor = Color.BlanchedAlmond;  
            cell12.BackColor = Color.Wheat;  
            cell13.BackColor = Color.LightSalmon;  
            row1.Cells.Add(cell11);  
            row1.Cells.Add(cell12);  
            row1.Cells.Add(cell13);  
            //row2.Cells.Add(cell22);  
            table.Rows.Add(row1);  
            //table.Rows.Add(row2);  
            cell11.Controls.Add(lControlV);  
            cell12.Controls.Add(lControlT);  
            cell13.Controls.Add(lControlD);  
 
            container.Controls.Add(table);  
        }  
 
 
        public void lControl_DataBinding(object sender, EventArgs e)  
        {  
            LiteralControl l = (LiteralControl)sender;  
            GridDataItem container = (GridDataItem)l.NamingContainer;  
            String colName = l.ID;  
            l.Text = ((DataRowView)container.DataItem)[colName].ToString() + "<br />";  
        }  
    }  
 
 
Iana Tsolova
Telerik team
 answered on 11 Jan 2010
1 answer
142 views
I was wondering what is the code of the LinqToSql.TelerikSamplesDataContext ?
It has been used as ContextTypeName in this demo http://demos.telerik.com/aspnet-ajax/grid/examples/performance/linq/defaultcs.aspx

Thanks
El
Top achievements
Rank 1
 answered on 11 Jan 2010
1 answer
107 views
Dear Sir,
    Please see the attached documents, as you will note i am using rad control in right to left application, but the problem that it's getting a missy layout while loading, and also not the expected layout after loading in case od combo box.

Please if you can assist!
Georgi Tunev
Telerik team
 answered on 11 Jan 2010
6 answers
598 views
2009.3.1210.35
I would like the [Remove] button to render the same gray button as [Select] for the Simple skin.

Kamen Bundev
Telerik team
 answered on 11 Jan 2010
2 answers
336 views
I've read all the documents which I've been linked to but I have not come up with the correct syntax yet on how to do this.  I am using ASP.Net AJAX 3rd Quarter 2009 suite and I'm trying to override the text of the default embedded CSS for the combobox.  I look at the default skin for ComboBox and the styles I want to override are as follows:

.RadComboBox_Default,
.RadComboBox_Default .rcbInput,
.RadComboBoxDropDown_Default
{
 font: 12px "Segoe UI", Arial, sans-serif;
 color: #333;
}

I've tried puttig a div in front of them and putting them in my own CSS but it does not override the default.  Can someone tell me how I'd need to write the css to override the above?  Please help!!  Thank you.
Kamen Bundev
Telerik team
 answered on 11 Jan 2010
1 answer
119 views
Hi,
 
I have a pristine, vs 2008 environment, fully patched.  I had problems installing your assemblies and ran gacutil to install the assemblies found in C:\Program Files\Telerik\RadControls for ASP.NET AJAX Q3 2009\Bin35> and C:\Program Files\Telerik\RadControls for ASP.NET AJAX Q3 2009\Bin>. 

The error that I am getting is attached.  A couple of potential issues that I see are that the assemblies in the bin35 and the bin directories have different version numbers.  The project is configured as a .net 3.5 project, however the assembly that vs/telerik is expecting to find is the assembly from the bin directory.

Installation shouldn't be this difficult, I have spent 2 days trying to get this to work.....
Pavlina
Telerik team
 answered on 11 Jan 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?