Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
164 views
Hi,

I wish to display the loading panel in the page so that it should always appear in the center of th epage i.e. If i am performing some action on the top of the page, the loading panel should appear in the center of the browser and if i am doing some action at the bottom of the page, the panel should appear in the center of the visible section of browser.

Whatever forum questions and answer I have seen for this question, always keeps the panel in the center of the page and not center of the visible section of the browser.

Need help.

regards,

PN
Nikolay Rusev
Telerik team
 answered on 25 Jun 2008
4 answers
88 views
I have two gridTemplatecolumns with linkbuttons that have the commands "File" and "Comments" in the parentGrid. There are two detailsTables inside the parentGrid. When a linkbutton is clicked I only wish to display one of the nested detailsTables. At the moment both are displaying. In the item command of the radgrid I have put the following code

If e.CommandName = "Files" Then

e.Item.OwnerTableView.DetailTables(0).Visible =

False

e.Item.OwnerTableView.DetailTables(1).Visible =

True

End If

If e.CommandName = "Comments" Then

e.Item.OwnerTableView.DetailTables(0).Visible =

True

e.Item.OwnerTableView.DetailTables(1).Visible =

False

End If

But this does not change the visibilty of the nested tables.
How can I show the nested table dependant on which linkbutton is clicked?

Daniel
Telerik team
 answered on 25 Jun 2008
3 answers
221 views
Hi Guys,

Which style to do I change to stop my windows being transparent and what do I change it to? Is driving me a bit nuts! :S

Cheers,

Pete
Georgi Tunev
Telerik team
 answered on 25 Jun 2008
1 answer
282 views
How can I open a radwindow from server side script?
Georgi Tunev
Telerik team
 answered on 25 Jun 2008
2 answers
310 views
Hi,
I am creating a chart at runtime(on the click event of a button) on to a page. The x-axis, by default expects double values. But my requirement is to plot Date in the format 'MM/DD/YYYY' format. The CustomFormat option  is not working. May be  i have coded it wrong. This is my code. Please give necessary help. Thanks in advance.

 RadChart rChart = new RadChart();
rChart.PlotArea.XAxis.Appearance.CustomFormat = "MM/DD/YYYY";
            ChartSeries cSeries = new ChartSeries();
            cSeries.Name = "NewChart";
            ChartSeriesItem csItem1 = new ChartSeriesItem();
            csItem1.YValue = 10;
            csItem1.XValue = double.Parse("10/10/2002");
            ChartSeriesItem csItem2 = new ChartSeriesItem();
            csItem2.YValue = 20;
            csItem1.XValue = double.Parse("10/10/2003");
            ChartSeriesItem csItem3 = new ChartSeriesItem();
            csItem3.YValue = 30;
            csItem1.XValue = double.Parse("10/10/2004");
            ChartSeriesItem csItem4 = new ChartSeriesItem();
            csItem4.YValue = 40;
            csItem1.XValue = double.Parse("10/10/2005");
            ChartSeriesItem csItem5 = new ChartSeriesItem();
            csItem5.YValue = 50;
            csItem1.XValue = double.Parse("10/10/2007");

            cSeries.AddItem(csItem1);
            cSeries.AddItem(csItem2);
            cSeries.AddItem(csItem3);
            cSeries.AddItem(csItem4);
            cSeries.AddItem(csItem5);

           
            rChart.AddChartSeries(cSeries);


            placeHolder1.Controls.Add(rChart);
John
Top achievements
Rank 1
 answered on 25 Jun 2008
2 answers
207 views
We're trying to use a RadTabStrip for navigation, where root tabs are categories, and their sub-tabs are locations. To handle the navigation, I've set up a OnTabClick server-side event, which works fine, except that it doesn't discriminate between the category (root) tabs and the location (sub) tabs, so I got a post-back for both, which was undesirable. To try and compensate for this, I set up a client-side event handler, OnClientTabSelecting, where I call "eventArgs.set_cancel(true);" if the selected tab is a root tab. This prevents the post-back, but it also stops them from being selected altogether, so now I'm stuck on the first category tab, because clicking any of the others results in nothing happening.

Do you have any suggestions for how to solve my problem? That is, client-side tab selection for root tabs, and server-side tab click event for sub tabs.
Alexander
Top achievements
Rank 1
 answered on 25 Jun 2008
2 answers
78 views
Hi,

I'm using old radchart and can't change (r.a.d.controlsQ3 2006 --> dll 2.9.2.0).

I need to create a chart where i would have every day of a month on the xAxis. Then i would like to place points on the chart for some of thoses days only (based on the data in the database). I will need to create differents chartseries for the same month, that may both have points on the chart but for different days.

I tried creating a chart with all the days of the month as XAxis and add a value to it :

 int daysInMonth = DateTime.DaysInMonth(Convert.ToInt32(ddlYear.SelectedValue), month);
                int j = 1;
                while (j <= daysInMonth)
                {
                    _rcIndexGraph.XAxis.AddItem("" + j + "/" + month);
                    _rcIndexGraph.XAxis.Items[j - 1].Value = j;
                   
                    j++;
                }

Then add an item to the chart based on the date of my data:

ChartSeries s = _myGraph.GetChartSeries(0);
s.Items.Clear();
foreach (DataRow row in data.Rows)
            {
                DateTime datetime = Convert.ToDateTime(row["datetime"]);

                ChartSeriesItem item = new ChartSeriesItem();

                double d = Convert.ToDouble(row["eic_index"]);
                d = Convert.ToDouble(d.ToString("N02"));
                item.XValue = datetime.Day - 1;
                item.YValue = d;
                item.PointSize = 6;
                s.Items.Add(item);
            }


This doesn't work and i also tried to fill the chartseries with "new ChartSeriesItem()" for each day, then fill the one i need later, but adding ChartSeriesItem with no value doesn't work either.

If you have any idea on how i could use the old chart to my purpose, i would be really greatful as this is extremly urgent.
Giuseppe
Telerik team
 answered on 25 Jun 2008
1 answer
211 views

Hi,
I build a GridTableView programmatically and add this GridTableView
to the collection of detail table views for the RadGrid to display
related data tables hierarchically. But when I click the expand button
and the edit command button, I got an exception,
Sys.WebForms.PageRequestManagerServerErrorException
My code as follows:

            if (!this.IsPostBack)
            {
                // Get related data tables: Customers table and Projects table 
                DataTable dtblCust = Datahandler.Datahandler.GetCustomer();
                DataTable dtblProj = Datahandler.Datahandler.GetCustProj();
                ViewState["Cust"] = dtblCust;
                ViewState["Proj"] = dtblProj;
                // Create a GridTableView
                GridTableView gtvProj = new GridTableView();
                string[] sTep = new string[1];
                sTep[0] = "ProjectInfoID";
                gtvProj.DataKeyNames = sTep;
                // Add ParentTableRelation to the GridTableView
                GridRelationFields grfTep = new GridRelationFields();
                grfTep.DetailKeyField = "CustomerInfoID";
                grfTep.MasterKeyField = "CustomerInfoID";
                gtvProj.ParentTableRelation.Add(grfTep);
                // Build columns of the GridTableView
                GridBoundColumn gbcTep = new GridBoundColumn();
                gbcTep.HeaderText = "Project ID";
                gbcTep.DataField = "ProjectInfoID";
                gbcTep.UniqueName = "ProjectInfoID";
                gbcTep.SortExpression = "ProjectInfoID";
                gtvProj.Columns.Add(gbcTep);
                gbcTep = new GridBoundColumn();
                gbcTep.HeaderText = "Project Name";
                gbcTep.DataField = "ProName";
                gbcTep.UniqueName = "ProName";
                gbcTep.SortExpression = "ProName";
                gtvProj.Columns.Add(gbcTep);
                gbcTep = new GridBoundColumn();
                gbcTep.HeaderText = "Create Day";
                gbcTep.DataField = "CreateDay";
                gbcTep.UniqueName = "CreateDay";
                gbcTep.SortExpression = "CreateDay";
                gtvProj.Columns.Add(gbcTep);
                // Add EditCommandColumn to the GridTableView
                GridEditCommandColumn geccTep = new GridEditCommandColumn();
                geccTep.UniqueName = "EditCommandColumn";
                geccTep.EditText = "Edit";
                geccTep.ItemStyle.Width = 100;
                gtvProj.Columns.Add(geccTep);
                // Add SortExpressions to the GridTableView
                GridSortExpression gseTep = new GridSortExpression();
                gseTep.FieldName = "ProjectInfoID";
                gseTep.SortOrder = GridSortOrder.Ascending;
                gtvProj.SortExpressions.Add(gseTep);
                // Add the GridTableView to the collection of detail table views for the RadGrid
                RadGrid1.MasterTableView.DetailTables.Add(gtvProj);
                RadGrid1.DataSource = dtblCust;
                RadGrid1.MasterTableView.DetailTables[0].DataSource = dtblProj;
                RadGrid1.SelectedIndexes.Add(1, 0, 1);
            }

Bestregards.

Yavor
Telerik team
 answered on 25 Jun 2008
1 answer
80 views
How can i show ticks on X-axis.For your information i am using RedChart.Net2 dll file.

Please reply ASAP it is urgent.
Giuseppe
Telerik team
 answered on 25 Jun 2008
5 answers
139 views
I have a RadToolBar inside of a frame.  The frame is essentially the same size as the toolbar and it is the only control contained inside the frame.  I would like to add a RadToolBarDropDown to the toolbar, however when it drops down, the drop down items do not appear because they are cut off by the frame. Is there a way to have the drop down items appear on top of the frame below it?
Thanks!
Peter
Telerik team
 answered on 25 Jun 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?