Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
897 views

Towards making it easier to provide help, I would like to briefly describe what I want to do with Telerik Grid.

 

I am developing an application where the grid is used to display 4 rows of 5 columns of thumbnail images. Paging is enabled because there can be a thousand rows of data. There is a caption directly under each thumbnail. There is a hidden field that has the user ID associated with the thumbnail image.

 

Clicking on the thumbnail, invokes a client side event handler which gets the user ID for that image.  An Ajax call is made to the server with the user ID to get the url of a full size image, and various user data. The full size image and associated user information will be displayed on a separate tab at the end of the Ajax call by JavaScript on the client.

 

I am using a GridTemplateColumn to allow me to build the more involved grid cell that contains and image, caption, and hidden field HtmlControls with the runat=”server”  

I am assuming that I can either set the grid DataSource property and call the DataBind method or handle this in the NeedDataSource event.

 

I plan to use the ItemDataBound event to set the alt and url attribute of the <img>tag along with the caption text held in a <div> container. I will also need to set the value attribute of the hidden field to the user ID.

 

My data source will be a List<AlbumInfoItemCollection> that has four properties. Each property is a get accessor for an AlbumInfoItem. The AlbumInfoItem class has properties that hold all the information necessary to set the url, caption, and user ID.

 

Basic Problem/Question

My basic problem is when handling the ItemDataBound event, I need to know the syntax to get the row instance of the AlbumInfoItemCollection.

 

I would imagine that they do exist, but I could not find any examples that did this.

Thanks in advance,
Carl Taylor
Suwanee, GA

PS I absolutely love your product!!!

Rosen
Telerik team
 answered on 06 Oct 2009
3 answers
97 views
I'm using a Panelbar with a sitemap datasource. How do I configure items in the sitemap to only expand the items underneath it and not navigate to a url?
Paul
Telerik team
 answered on 06 Oct 2009
15 answers
460 views
I'm dynamically creating a radChart in the code-behind.  At the point where controls.add(radChart) is called it causes the page to take between 16 - 18 seconds to load.  I also created a duplicate of this chart in an aspx page [not created dynamically], but the same extended page load was still an issue.  The Telerik version is: Version=2008.3.1314.20.

Thank you in advance for any help and/or advice.  Here's my C# code:

private void CreateRadChart(int iSent, int iRcvd)
{
    // Create a RadChart and assign its datasource, title, and size.
    RadChart radChart = new RadChart();

    radChart.SeriesOrientation = ChartSeriesOrientation.Horizontal;
    radChart.ChartTitle.Appearance.Visible = false;
    radChart.Legend.Appearance.Visible = false;
    radChart.Appearance.Border.Width = 0;
    radChart.Width = Unit.Pixel(650);
    radChart.Height = Unit.Pixel(110);

    // BRONZE User 1-35, SILVER User 36-70, GOLD User 71-99, Platinum User 100+

    ChartMarkedZone mrkdZone = new ChartMarkedZone();
    mrkdZone.ValueStartY = 0;
    mrkdZone.ValueEndY = 35;
    mrkdZone.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(166, 125, 61);
    radChart.PlotArea.MarkedZones.Add(mrkdZone);

    mrkdZone = new ChartMarkedZone();
    mrkdZone.ValueStartY = 35;
    mrkdZone.ValueEndY = 70;
    mrkdZone.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(211, 211, 211);
    radChart.PlotArea.MarkedZones.Add(mrkdZone);

    mrkdZone = new ChartMarkedZone();
    mrkdZone.ValueStartY = 70;
    mrkdZone.ValueEndY = 100;
    mrkdZone.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(207, 181, 59);
    radChart.PlotArea.MarkedZones.Add(mrkdZone);

    mrkdZone = new ChartMarkedZone();
    mrkdZone.ValueStartY = 100;
    mrkdZone.ValueEndY = 125;
    mrkdZone.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(248, 248, 255);
    radChart.PlotArea.MarkedZones.Add(mrkdZone);

    radChart.PlotArea.Appearance.Border.Width = 1;
    radChart.PlotArea.Appearance.Dimensions.Margins.Left = 6;
    radChart.PlotArea.Appearance.Dimensions.Margins.Top = 6;
    radChart.PlotArea.Appearance.Dimensions.Margins.Bottom = 25;
    radChart.PlotArea.Appearance.Dimensions.Margins.Right = 12;

    radChart.PlotArea.XAxis.Appearance.Visible = Telerik.Charting.Styles.ChartAxisVisibility.False;

    radChart.PlotArea.YAxis.AutoScale = false;
    radChart.PlotArea.YAxis.AddRange(0, 125, 5);
    radChart.PlotArea.YAxis.Appearance.MajorGridLines.Color = System.Drawing.Color.Gray;
    radChart.PlotArea.YAxis.Appearance.MinorGridLines.Color = System.Drawing.Color.Gainsboro;

    // Create a ChartSeries and assign its name and chart type
    ChartSeries chartSeries = new ChartSeries();
    chartSeries.Name = "Series1";
    chartSeries.Type = ChartSeriesType.Bar;
    chartSeries.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.Black;

    // Create ChartSeriesItem 1 and assign its name, value, and appearance
    ChartSeriesItem seriesItem = new ChartSeriesItem();
    seriesItem.Name = "Rcvd";
    seriesItem.YValue = iRcvd;
    seriesItem.Appearance.Border.Width = 1;
    seriesItem.ActiveRegion.Tooltip = "Recognition awards received";
    seriesItem.Appearance.FillStyle.MainColor = System.Drawing.Color.ForestGreen;
    seriesItem.Appearance.FillStyle.SecondColor = System.Drawing.Color.DarkGreen;
    chartSeries.AddItem(seriesItem);

    // Create ChartSeriesItem 2 and assign its name, value, and appearance
    seriesItem = new ChartSeriesItem();
    seriesItem.Name = "Sent";
    seriesItem.YValue = iSent;
    seriesItem.Appearance.Border.Width = 1;
    seriesItem.ActiveRegion.Tooltip = "Recognition awards sent";
    seriesItem.Appearance.FillStyle.MainColor = System.Drawing.Color.SteelBlue;
    seriesItem.Appearance.FillStyle.SecondColor = System.Drawing.Color.DarkBlue;
    chartSeries.AddItem(seriesItem);

    radChart.Series.Add(chartSeries);

    this.Page.Controls.Add(radChart);
}

citytech team1
Top achievements
Rank 1
 answered on 06 Oct 2009
2 answers
83 views
When we try to copy several pages (10+) from word, the editor does not do anything (this is the same in your demo);   what is the limit of the editor? 

Regards
Lini
Telerik team
 answered on 06 Oct 2009
1 answer
109 views
Hi, I am now using trial version to test the product. Currently I am trying to implement the chart zooming by range accordingly and need to be able to control by slider like in google finance chart. ChartFx (http://demo.softwarefx.com/chartfx/aspnet/ajaxsamples/)have a nice and neat built in function for that one but I am quite more interested in buying telerik product. Is it possible to implement using chart and slider and please give some guide. Thank you.

Added :
I found from this topic :  Home   /   Community   /   Forums     /   RadControls for ASP.NET AJAX: Chart   /   Stock Exchange Graphic
and hope this is the result : http://www.six-swiss-exchange.com/marketpulse/shares/security_info_en.html?id=CH0012138605CHF1

Ves
Telerik team
 answered on 06 Oct 2009
4 answers
172 views
I have a window that causes the content to expand and thus I need to either havethis window automatically increase in size or enable the scrollbars. I can't seem to get this working.

The case I am using is for .net validators... when validation fires, content is pushed below the bottom of the window.   
Georgi Tunev
Telerik team
 answered on 06 Oct 2009
2 answers
73 views
Dear Telerik and everyone,

Our solutions are using Telerik ASP.Net AJAX Controls, and we have just discovered a bug that: RadEditor doesn't work with Opera browser. RadEditor initializes enough toolbars, but, there's no input area until we click on full screen.

I think Telerik will fix this problem soon.

Best regard!
Lini
Telerik team
 answered on 06 Oct 2009
8 answers
267 views
this example looks interesting

http://demos.telerik.com/aspnet/prometheus/Editor/Examples/FileExplorer/FileSelectorDialog/DefaultCS.aspx

i am unable to get it to work - something on the click event of the explorer page.

the explorer dialog page comes up - but when i enter a function call in onclientitemclick - then my search patterns don't show my files, when i take it out - i see the files but i am unable to click a file and have it appear in the text box above.

please advise.
Fiko
Telerik team
 answered on 06 Oct 2009
3 answers
137 views
Hi Team,
I am using radDock component for displaying widgets. Curretly look of this component is coming as square. We would like to have widgets as rounded coorners. Similar to what iGoogle have.
Please reply how can I change the look or skin of the radDock control.

Thanks ,
Snehal
Martin
Telerik team
 answered on 06 Oct 2009
1 answer
130 views

Hi , I have a column type of  GridClientSelectColumn  , now how can access to checkbox in every row in this column , and how can checked,unchecked  them with client side way (in javascript function)

Shinu
Top achievements
Rank 2
 answered on 06 Oct 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?