Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
157 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
251 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
170 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
40 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
155 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
111 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
129 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
82 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
7 answers
204 views
Hi I using the dom inspector to select tags and apply styles. I am having a number of problems:

1. sometimes when I select an element using the dom inspector, the dom inspector disappears altogether and although the item is hightlighted in the editor window, applying a style does nothing

2. sometime when I select an element using the dom inspector and apply a css class I end up with a span tag with the class in it, instead of the class applied to the desired tag

3. sometime when I select an element and apply a css class I end up with class="RadEDomMouseOver" applied to the tag - how can your code end up in my source?

4. sometimes applying css class does nothing

5. sometimes the class gets applied to the topmost tag in the editor instead of the desired tag


I've been using radeditor for a number of years, building CMSs for clients that have no technical ability. I have found lately that the kind of flaky behavior described above seems to be occurring quite a bit. I can go into the source to deal with it, but I don't expect clients to. Are there published best practices that should be used for editing content? I don't mind supporting my own code, but I expect the tool to be as "end user proof" as possible

Thanks
Rumen
Telerik team
 answered on 30 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?