Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
145 views
hi mi having three tables with data sets binding for a three y axis bar chart in radchart. user has the control to select these three databind using check box i.e if the user checks two check boxes out of three one series should be made invisible from other two series. this works fine with the following code. but the issue is if i make series[0] visible false, the legend associated with that is still displaying. i want that also to be suppressed with the above scenario. please help...

Chart display in asp.net with three series

<div style="margin:10px 10px 10px 10px;">

     <telerik:RadChart ID="RadChart1" runat="server" Height="333px" Skin="Hay" UseSession="true"  Legend-Visible="true"

            Width="700px"  AutoLayout="True"

                AutoTextWrap="True" SeriesOrientation="Vertical">

            <Series>

                  <telerik:ChartSeries Name="QUALIFIED_COUNT" Type="Bar"  DataYColumn="QUALIFIED_COUNT" Appearance-BarWidthPercent="30">

                 </telerik:ChartSeries>

                  <telerik:ChartSeries Name="NONQUALIFIED_COUNT" Type="Bar" DataYColumn="NONQUALIFIED_COUNT" Appearance-BarWidthPercent="30" >

                 </telerik:ChartSeries>

                  <telerik:ChartSeries Name="ABANDONED_COUNT" Type="Bar" DataYColumn="ABANDON_COUNT" Appearance-BarWidthPercent="30" >

                 </telerik:ChartSeries>

           </Series>

            <PlotArea>

                <XAxis DataLabelsColumn="creation_month">

                </XAxis>

                <YAxis Appearance-ValueFormat="General"  LabelStep="10"></YAxis>

            </PlotArea>

        </telerik:RadChart>

      </div>  


C# code to make its visibility false:

if (IncludeQualified == "N")  //when the check box is unchecked

                {

                    RadChart1.Series[0].Visible = false; --the bar suppresses  but the legend still there

                    divQualifiedReport.Visible = false;                   

                }

                else

                {

                    gvQualifiedReport.DataSource = dsReport.Tables[1];  --data binding in else

                    gvQualifiedReport.DataBind();

                }

                if (IncludeNonQualified == "N")

this IncludeQualified will set as ‘N’ if I uncheck the relevant check box.


thanks

saran


Saran kumar
Top achievements
Rank 1
 answered on 25 Sep 2009
1 answer
119 views
Hi,

I have a rad grid on a page and it just have two columns. one for the checkbox to select the row (The template column) and the other column for the some row description. I have paging enabled on this grid, because i can have hundreds of records in the grid.

Now for the row selection i have a checkbox with autopostback=false, so that my grid should not load on every row click. And i need to persist the state of the grid on all different types of events. i am saving all the row values in a hashtable which i am maintaining in a Session variable.

I do not have select all checkbox in the header. So, i just update my hashtable only on the page index changed event and this will help me in maintaining the state of all the rows and when i go to next page i set the row value on the basis of the their value in the hashtable. 

Now the problem i am having here is with the filtering event. In case of Page index changed event i can have access the old page controls and so i can save my values for the controls in the previous page.  But the problem with the filter is typical and i would like to explain that with the following scenario:

Suppose i have total 100 items on my grid and page size 10. i have put filter text as "xyz" and say 14 items have returned after passing the filter. Now i select the top 4 on the first page and clear the filter so that after selecting these 4 i can put some other filter condition and select some other items. So the problem is i need to save the state of those 4 top rows at the time i clear the filter or if i can handle those 4 selections after the filter gets cleared or changed to something else, how can i achieve this?

I would appreciate any help on this.

Sunil.
Pavlina
Telerik team
 answered on 25 Sep 2009
2 answers
51 views
Hello!

I created a test page and the ComboBox looks very strange and big on my side.
Here is a screenshot of your sample page when it is using Web20 skin: http://picasaweb.google.com/botondlong/TelerikSkinWeb20#5384996291258328274

I haven't done anything special: I have a masterpage with the RadScriptManager, and I have a RadComboBox, Skin set to Web20.

With further investigation I found that RadDatePicker is behaving the same: a big input box and the calendar itself is also bigger and looks quite ugly.

I checked, there is nothing related in my css or skin file. Where can be the problem?

Btw, I'm using RadControls for ASPNET AJAX Q1 2009.

Thanks
Botond
Botond Long
Top achievements
Rank 1
 answered on 25 Sep 2009
1 answer
36 views
I am having allignment problem in the pop up that appears by clicking rad combo box.Can any one suggest me some solution.
Simon
Telerik team
 answered on 25 Sep 2009
1 answer
117 views
I have some code that is calling radalert.
It works perfect in FireFox, but not in IE, IE throws an "Object doesn't support his property or method" error.
Do I need to do something different to get this to work with IE?
Any help would be appreciated.

I have the code in the click event of a button.

        if (condition > 0)
        {
            //do something
        }
        else
        {
            string radalertscript = "<script language='javascript'> window.onload = function(){radalert('Error has occurred.', 330, 210);}</script>";
            Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);          
        }
Georgi Tunev
Telerik team
 answered on 25 Sep 2009
3 answers
150 views
I have a grid with a large number of columns.  I would like to customize the headercontextmenu to show/hide groups of columns rather than having to select individual columns in the default.  I haven't gotten very far, but the small code sample below will give an indication of what I'm trying to do.  If someone has tackled this before, I would appreciate it if you could point me in the right direction.


        void HeaderContextMenu_PreRender(object sender, EventArgs e)
        {
            RadContextMenu menu = RadGrid1.HeaderContextMenu;

            RadMenuItem showColumnGroup1 = new RadMenuItem();
            showColumnGroup1.Text = "Show Group 1";
            showColumnGroup1.Attributes["ColumnName"] = string.Empty;
            showColumnGroup1.Attributes["TableID"] = string.Empty;
            showColumnGroup1.PostBack = true;
            showColumnGroup1.Visible = false;
            menu.Items.Add(showColumnGroup1);

            RadMenuItem hideColumnGroup1 = new RadMenuItem();
            hideColumnGroup1.Text = "Hide Group 1";
            hideColumnGroup1.Attributes["ColumnName"] = string.Empty;
            hideColumnGroup1.Attributes["TableID"] = string.Empty;
            hideColumnGroup1.PostBack = true;
            menu.Items.Add(hideColumnGroup1);

            RadMenuItem showColumnGroup2 = new RadMenuItem();
            showColumnGroup2.Text = "Show Group 2";
            showColumnGroup2.Attributes["ColumnName"] = string.Empty;
            showColumnGroup2.Attributes["TableID"] = string.Empty;
            showColumnGroup2.PostBack = true;
            showColumnGroup2.Visible = false;
            menu.Items.Add(showColumnGroup2);

            RadMenuItem hideColumnGroup2 = new RadMenuItem();
            hideColumnGroup2.Text = "Hide Group 2";
            hideColumnGroup2.Attributes["ColumnName"] = string.Empty;
            hideColumnGroup2.Attributes["TableID"] = string.Empty;
            hideColumnGroup2.PostBack = true;
            menu.Items.Add(hideColumnGroup2);

            ...
Yavor
Telerik team
 answered on 25 Sep 2009
1 answer
51 views
Hello,
i am evaluating the RadEditorMOSS_5_5_1_trial. When i try to access a list from a different SiteCollection i receive the following error message: List does not exist ... The page you selected contains a list that does not exist. The List is accessible with the current account and if i switch back to a list which is in the current Site the control works as expected. So the control has problems when accessing lists which are not in the current site.

Is this behaviuor a bug or a wanted behaviour? For our scenario we need to access list from different SiteCollection in the farm.

with best regards
Meik Napierski

 
Stanimir
Telerik team
 answered on 25 Sep 2009
1 answer
198 views
I'm not even sure what to title this one, but I could use anyone's help in the community :)

I've written some custom controls that take advantage of the Telerik greatness. As such, my class library project references (what was at the time) the latest Telerik dlls. In this case, it's using Telerik.Web.UI 2009.1.311.35. When I compile my class library, I get a nice little dll. I have dropped that into a number of web projects I'm working on, and it's fine as long as the Telerik.Web.UI dll is in the web project's /bin directory along with it.

Recently, I've upgraded one of the web projects to the latest Telerik dll, since it uses the Telerik controls on it's own as well as my custom controls. Lo and behold, the class library is now freaking out that it can't find the 2009.1.311.35 dll version for it's own use. I can't have the two living side-by-side in the /bin directory, nor do I want to.

How do I get around this? I've tried getting the 2009.1.311 dll to compile into my custom class dll, so it isn't dependent on the correct dll existing along side it in the /bin directory of the web project. That didn't work correctly either. I can't figure out how to get my class library to not care about a particular version, so that it would use whatever Telerik version is in the web project's bin.

Anyone have any tips? What am I doing wrong!

Thanks so much, guys!
Veli
Telerik team
 answered on 25 Sep 2009
1 answer
60 views

I have an interesting / frustrating anomaly. 

 

My screen has a load on demand combo box on it.  When you select something from the combo box the RADGrid below is populated based on the item selected in the combo box.  One of the grid columns contains a textbox so the users can update the value.

 

All of that works without a problem.

 

The odd thing is when the grid first displays you have to click somewhere, anywhere on the screen outside of the grid before it will allow you to enter anything in any of the text boxes in the grid.  You can see the cursor is in the text box, but nothing you type shows up.  But if you click outside of the grid and then back in a text box in the grid you can type.

The problem does not present itself in Firefox, just Internet Explorer.

 

I’m rather hoping someone this is a common problem with a known resolution I haven’t been able to locate?

Veli
Telerik team
 answered on 25 Sep 2009
1 answer
88 views
I have a scenario where I have a tabstrip that contains multiple levels of tab hierarchy and I want to find a unique index across all tabs (not just the tabs on Level 0, Level 1, etc.).  Normal SelectedIndex, SelectedTab, IndexOf, etc. on the tabs returns only an index for that tab level not a unique tab index for all levels.

Do tabs have a unique index that can be accessed that is a unique tab index across all tabs in the tabstrip collection?  If not, how could I add one (I need it to work like a index, not the value of the tab).

Example:  Imagine in this scenario that there is 1 tabstip, 2 parent tabs.  One Parent tab has two children and another Parent tab has three children.  I would like the Child3 of Parent2 to have the highest tab index and be able to access that index value.  

Parent1                        Parent2
Child1    Child2            Child1    Child2    Child3

The index of Parent1 = 0 and Parent 2 = 1 when I check through normal Index methods.  The index of Parent1's Child1 is 0 and the indexif Parent2's Child1 is also 0.  I am assuming that parents are created before their children, so in that case is there some kind of wider scope index where the tabs have indexes that do not repeat with the following structure (or could be created).

Parent1(Index = 0)                                           Parent2 (Index= 3)
Child1(Index = 1)    Child2 (Index = 2)              Child1(Index = 4)    Child2(Index = 5)    Child3(index = 6)


Thank you for your help,
Atanas Korchev
Telerik team
 answered on 25 Sep 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?