Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
110 views
I've got a TreeView in a combo box that works fine. What I'd like to do is keep track of which nodes are expanded in the treeview between pages (I use the control on multiple pages) I've seen code to do a treeview in a combobox and saving a treeview to a session variable but can't seem to get the combination of the two to work correctlty.

Anybody have any suggestions?

TIA - Jeff.
Shinu
Top achievements
Rank 2
 answered on 31 Mar 2011
2 answers
151 views
Is there a way to disable the Chart Title and Chart Legend to NOT be clickable when assigning the Chart a Click event? 

Putting a click event on the item, does not seem to work from code behind.
- item.ActiveRegion.Click += new RegionClickEventHandler(BaseItem_Click);
Item is clickable, but method never gets fired.

I'm using Telerik RadControls for ASP.NET Ajax - version 2010.3.1221.40

Help with any (or both) of the issues above would be greatly appreciated!


Thanks,
Katie

Katie Arnott
Top achievements
Rank 1
 answered on 30 Mar 2011
1 answer
235 views
I have a need to create an Excel Workbook with multiple worksheets and many of those worksheets will have multiple different tables inside of them.

I've learned how to create multiple worksheets but can't seem to figure out how to add multiple tables.  In the below code, you'll see I'm doing that by appending two stringbuilders together.  If I try to append the 2nd set of records ("DashboardFees") to anything other than a TableElement, I can't get it to run without an error.  Any assistance would be appreciated.  Here is what I have.

protected void rgDashboardProduction_GridExporting(object source, GridExportingArgs e)
        {
            IEnumerable<Record> productionRecords = GetDashboardProduction();
            IEnumerable<Record> feeRecords = GetDashboardFees();
 
            StringBuilder sb = new StringBuilder();
            WorksheetElement workSheet = new WorksheetElement("DashboardProduction"); //create new worksheet
            workSheet.Table = ParseRecord(productionRecords);
            
            workSheet.Render(sb); //generate xmlss code
            
            StringBuilder sb2 = new StringBuilder();
            WorksheetElement workSheet2 = new WorksheetElement("DashboardFees"); //create new worksheet
            workSheet2.Table = ParseRecord(feeRecords);
            workSheet2.Render(sb2); //generate xmlss code
 
            string output = string.Concat(sb.ToString(), sb2.ToString());
            e.ExportOutput = e.ExportOutput.Replace("</Styles>""</Styles>" + output); //add the rendered worksheet to the output
        }



private TableElement ParseRecord(IEnumerable<Record> records)
        {
            TableElement table = new TableElement();
            RowElement headerRow;
            RowElement row;
            CellElement cell;
            ColumnElement column;
 
            PropertyInfo[] properties = records.First().Properties;
            int numColumns = properties.Length;
 
            for (int col = 1; col <= numColumns; col++)
            {
                column = new ColumnElement();
                column.Attributes.Add("ss:Width", (100 * col).ToString());
                table.Columns.Add(column);
            }
 
            //Add Header Row
            headerRow = new RowElement();
            foreach (PropertyInfo property in properties)
            {
                cell = new CellElement();
                cell.StyleValue = "headerStyle";
                cell.Data.DataItem = property.Name;
                headerRow.Cells.Add(cell);
            }
 
            //Add Data Rows
            foreach (Record record in records)
            {
                row = new RowElement();
                foreach (PropertyInfo property in record.Properties)
                {
                    cell = new CellElement();
                    cell.Data.DataItem = property.GetValue(record, null);
                    row.Cells.Add(cell);
                }
                table.Rows.Add(row);
            }
 
            return table;
        }


Daniel
Telerik team
 answered on 30 Mar 2011
4 answers
165 views
Hello,

Found an article on drag & drop to multiple destinations here. In my case, it's the opposite -- I need to drag & drop (D&D) from any of four listboxes to a fifth destination listbox.

I noticed that after a first D&D from any of the source listboxes, subsequent D&D operations work only from that initial listbox, but not from any of the other three listboxes -- I assume some reference is not cleared after the first operation.

Can D&D from multiple sources be done "out-of-the-box", or does it need special handling similar to the multiple destination case?

Thanks.
SorinC
Top achievements
Rank 1
 answered on 30 Mar 2011
1 answer
38 views
Hi Admin,

I am getting problem in setting up the names in the radfilter option it shows me the Datafield values by default instead i want to use the Header Text as the Filter options , for Example i had a datafield name 'Customername' now instead of this i only want to show My HeaderText which is 'Customer' in the option. is it possible to do so.


Please reply asap.

Thanks,
Don Tompkins
Top achievements
Rank 1
 answered on 30 Mar 2011
1 answer
150 views
If i want to hide a treelistcolumn from .cs file how can i do it?
Veli
Telerik team
 answered on 30 Mar 2011
6 answers
108 views
Hi,
I wonder if RadScheduler has this following feature. When a user select a day in the past, Radscheduler will not allow him to insert an appointment. Besides, if he adds a new appointment, it is incorrect if he selects a start date and an end date in the past.

Kind regards,
Hai Tran
Hai
Top achievements
Rank 1
 answered on 30 Mar 2011
2 answers
124 views

Hi,

I don't want to use RadScheduler skins as embedded resources. I've been able disable those using EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false".

However, I haven't been able to disable the css for the calendar inside the RadScheduler. How do I do this?

Thanks,

Andre

André
Top achievements
Rank 1
 answered on 30 Mar 2011
1 answer
51 views
From what I see the RadScheduler in the WPF and SilverLight controls allows an Appointment to have a TimeMarker property.  I don't see this same thing for the AJAX RadScheduler.  Am I missing something?
Veronica
Telerik team
 answered on 30 Mar 2011
1 answer
78 views
Hello

I'm trying to write scripts that automate UI actions on a page that's loaded into a different frame. In other words the page with the automation script is loaded into one frame and the page that's being automated is loaded into another frame on the same page(I named the frame rightFrame).
I've been able to do this with the rad controls with the following code:
var control = (parent.rightFrame)[0].$find(ID);

However when i do the same thing for a control that's inside a rad window that popped up on the page i'm getting a null value returned. The issue is not waiting for the window to load. I've set ample timeout for that and it still doesn't work. Any help would be greatly appreciated.

Thanks
Alan
Misho
Telerik team
 answered on 30 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?