Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
243 views
I'm creating 8 series in my chart - 4 lines, 4 points, one point series for each line. Data is displaying fine. I have used the Hay skin but have opted to change the color of one of my lines. However, I can't seem to get the pointmarks in the point series to change color.

I'm creating my series as follows:-

protected RadChart SetChartData(RadChart radChart, DataTable chartDataTable)
        {
            radChart.DataSource = chartDataTable;
            
            radChart.Series.Add(CreateChartSeries("Assets", ChartSeriesType.Line, "Assets"));
            radChart.Series[0].Appearance.LabelAppearance.Visible = false;
 
            radChart.Series.Add(CreateChartSeries("Assets calibrations", ChartSeriesType.Point, Color.Red, "AssetCalibrations"));
            //radChart.Series[1].Appearance.PointMark.FillStyle.MainColor = System.Drawing.Color.Red;
            radChart.Series[1].Appearance.LabelAppearance.Visible = false;
 and so forth for the other 6 series
            return radChart;
        }
 
which calls my CreateChartSeries method:-
 
protected ChartSeries CreateChartSeries(string name, ChartSeriesType type, Color seriesColor, string dataYColumn)
        {
            ChartSeries chartSeries = new ChartSeries();
            chartSeries.Name = name;
            chartSeries.Type = type;
            if (type == Telerik.Charting.ChartSeriesType.Line) { chartSeries.Appearance.LineSeriesAppearance.Color = seriesColor; }
            if (type == Telerik.Charting.ChartSeriesType.Point) { chartSeries.Appearance.PointMark.FillStyle.MainColor = seriesColor; }
 
            chartSeries.DataYColumn = dataYColumn;
 
            return chartSeries;
        }

I know my code is stepping into the 2nd if (type==Point) and it appears to set the color, but when my chart is rendered, the points are all colored by the Hay skin. I've even tried setting the color after the series.add (commented out now in my SetChartData method.

Hopefully I'm doing something daft?
thanks
--Michael

Ves
Telerik team
 answered on 08 Jun 2011
2 answers
74 views
Hi.. am new to RedSlider, I have placed the RadSlider in the asp.net page..

but when I scroll the page, Radslider also moves along with the page which I DO NOT want to..

How can I avoid this?

thanks
Pramod
pramodh
Top achievements
Rank 1
 answered on 08 Jun 2011
4 answers
111 views
This is an odd one.  I've put a couple of listboxes on my page and bound them to data.  For some reason they both have a little 'double arrow' at the top left of each list item.  The double arrow faces right and is present except when hovering over it.

I figure it must be intended for drag or 'move from listbox to listbox' type functionality, but I've set as many properties to 'false' as I can and they refuse to depart!!

Any help would be appreciated.

Mark
Peter Filipov
Telerik team
 answered on 08 Jun 2011
3 answers
205 views
Hi,

i am working on telerik tree view context menu. kindly tell me is there any way to add checkbox in context menu of telerik tree view.

with regards,

Faisal
Princy
Top achievements
Rank 2
 answered on 08 Jun 2011
1 answer
101 views
Hello every one,

See The Image ,
After clicking the add layout button ,
what ever i click rad tool bar button assigned rows are come like "System.Data.DataRowView"
please replay as soon as possible

Thanks,
Mohamed.
Veronica
Telerik team
 answered on 08 Jun 2011
9 answers
162 views
Hello,

I am having an issue getting the edittform to show up.  I have pasted in my code for the grid.

<

rad:RadGrid ID="rgAccountClass" runat="server"

 

 

onneeddatasource="rgAccountClass_NeedDataSource"

 

 

AllowAutomaticUpdates="True"

 

 

AutoGenerateColumns="false" EnableLinqExpressions="false"

 

 

AllowPaging="true" Skin="Default2006">

 

 

<PagerStyle Mode="Slider" />

 

 

<ClientSettings>

 

 

<Selecting AllowRowSelect="true" />

 

 

</ClientSettings>

 

 

<MasterTableView EditMode="EditForms">

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<rad:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommand" EditImageUrl="Skins/Default2006/Grid/Edit.gif" />

 

 

<rad:GridBoundColumn UniqueName="AccountClassCode" DataField="AccountClassCode" HeaderText="Account Class" />

 

 

<rad:GridBoundColumn UniqueName="Description" DataField="Description" HeaderText="Description" />

 

 

 

<rad:GridTemplateColumn UniqueName="CycleBFlag2" EditFormColumnIndex="0">

 

 

<EditItemTemplate>

 

 

<asp:TextBox ID="txtTest" runat="server" />

 

 

</EditItemTemplate>

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblCycleBFlag" runat="server" Text='<%# Bind("CycleBFlag") %>' />

 

 

</ItemTemplate>

 

 

</rad:GridTemplateColumn>

 

 

 

<rad:GridBoundColumn UniqueName="CycleBFlag" DataField="CycleBFlag" HeaderText="Cycle B Flag" />

 

 

<rad:GridBoundColumn UniqueName="ModifiedBy" DataField="ModifiedBy" HeaderText="Modified By" />

 

 

<rad:GridBoundColumn UniqueName="ModifiedDate" DataField="ModifiedDate" HeaderText="Modified Date" />

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

<FilterMenu EnableTheming="True">

 

 

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

</FilterMenu>

 

 

</rad:RadGrid>

I have tried several different ways to make this work and nothing seems to be right.  I amsure I Am missing something simple.  Any help would be appreciated.

Thanks, Dan

 

Princy
Top achievements
Rank 2
 answered on 08 Jun 2011
1 answer
80 views

Hi,

I am having trouble using RadGrid on IE7 that is when I am selecting only one row to display by setting display none property of all the rows except one (that needs to be displayed) the the header and columns are rendered misaligned, as you can see in figure 1, plus the last column of header is also not displaying completely.

Figure 1

However when I set all the rows to display things are rendered fine (see figure 2) and also when I set only 1st row to display that also works fine as you can see in figure 3



Figure 2


Figure 3

The issue is not reproducible on IE8 and FireFox.

Pavlina
Telerik team
 answered on 08 Jun 2011
2 answers
113 views
Hi,

Following your Online Example for Grid/Self-referencing Hierarchy, I can get the self-referencing to work on my test project...but, the issues I am having are:

I am using Linq to Sql Classes  as my structure.

1. In my case, I set the root level filter to RadGrid1.MasterTableView.FilterExpression = "parentid = 0"This works as expected and only displays root level items, BUT, it never shows any children items b/c they are filtered out b/c of the filter expression.  If I do not set the filter, I can expand the parent items to see the child items, but, the child items also appear as root items since there is no root level filter.

2. This is related to issue 1, when fitlering items at the root level, it never shows/filters any child items, again, b/c of the above filter where it is only showing items where parentid = 0..thus, the linq to sql expression only returns items where parentid = 0.

3. If I do not set the filter condition (which then allows me to see the hierarchal structure) and I filter items, is it possible to always show the parent row if the item itself is supposed to be a child item?  For example, if the filter matches a child item, I want it to show the entire hierarchy of its parents even tho the parent might not match the filter condition.

Now, If I use a Parent-Child table structure, and not Self-Referencing is the following possible:

1.  When filtering on a child table, it only filters the items under the currently expanded parent.  Can I filter/show only parent items  (along w/ child items) which child tables that match my filter criteria?

---

Also, how does the paging work w/ self-referencing..ie, if only displaying 25 items per page, will it grab all child items for all the root level items?

On a side note, we are currently on version 2010.3.1215.40 of the RadControls for ASP.NET AJAX, so please let me know if there were known issues for the past version.

Thanks

Iana Tsolova
Telerik team
 answered on 08 Jun 2011
1 answer
176 views
Hi,

How can I have RibbonBarButtons on the same RadRibbonBar with client and server side events.

Button ID = "Open" - client side event
Button ID =  "ChangeUser" - server side event

The problem I have is that "Open" causes a RadWindow to open on the client side via window.radopen, but when I add the server side event "onbuttonclick" it causes a postback and while the window.radopen is called the postback causes it to disappear again. I somehow need to cancel postback when the client event is handled. Is there an easy way to do this?

<telerik:RadRibbonBar ID="MainRibbon" runat="server" SelectedTabIndex="0" Skin="Windows7"
        AccessKey="O" 
        onclientbuttonclicked="ButtonClicked"
onbuttonclick="MainRibbon_ButtonClick">
        <telerik:RibbonBarTab Text="File">
            <telerik:RibbonBarGroup Text="Patients">
                <Items>
                    <telerik:RibbonBarButton Text="Open patient" Size="Large" ImageUrlLarge="../Images/Open.png" ID="Open" />
                </Items>
            </telerik:RibbonBarGroup>
            <telerik:RibbonBarGroup Text="Users">
                <Items>
                    <telerik:RibbonBarButton Text="Change user" Size="Large" ImageUrlLarge="../Images/ChangeUser.png" ID="ChangeUser" />
                    <telerik:RibbonBarButton Text="Log off" Size="Large" ImageUrlLarge="../Images/ArrowLeft.png" ID="LogOff" />
                </Items>
            </telerik:RibbonBarGroup>
        </telerik:RibbonBarTab>
    </telerik:RadRibbonBar>


Regards,

Andrew
Simon
Telerik team
 answered on 08 Jun 2011
3 answers
141 views
Hi Team

My English is not that good sorry.

I popluate my radtreeview from a sqldatasource works 100%.
Now on the right click contextmenus i want to open a radwindow to add data to sql database to update the treeview nobes

I use this code to open a Radwindow

  RadWindow window1 = new RadWindow();
        window1.NavigateUrl = "frm_Catalogue_Structure.aspx";
        window1.VisibleOnPageLoad = true;
        window1.Width = 400;
        window1.Height = 500;
        this.form1.Controls.Add(window1);








How can i trigger this call from one of the right click contextmenu list
Herman
Veronica
Telerik team
 answered on 08 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?