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

Following this demo, http://www.telerik.com/help/aspnet-ajax/pivotgrid-custom-data-calculations.html, I'm go one step further to create the calculated items programmatically in c# (instead of aspx). 

Here's the part of code under onLoad event that I've tried:

            PivotGridCalculatedItem newCalulation = new PivotGridCalculatedItem();
            newCalulation.GroupName = "Testing: XXYY";

            foreach (PivotGridField GridField in RadPivotGrid1.Fields)
            {
                if (GridField.FieldType.ToString() == "PivotGridColumnField" && GridField.UniqueName == "CreationYear")
                {
                    (GridFieldas PivotGridColumnField).CalculatedItems.Add(newCal);
                }
            }

But it's not working an giving me an 'Object reference not set to an instance of an object.' error. Please advise.

Best regards.


Konstantin Dikov
Telerik team
 answered on 22 Jul 2014
3 answers
165 views
Hi

I tried this but didn’t succeed

http://www.telerik.com/help/aspnet-ajax/grid-model-binding-and-strongly-typed-data-controls-support.html


Could you make a complete sample of this.


Thanks in
advance.

Kostadin
Telerik team
 answered on 22 Jul 2014
1 answer
254 views
On any horizontal chart I create that has values below zero, the x-axis labels are overlapping the negative value section of the chart.

As you can see from the first attachment (sample1.jpg), the x-axis labels are always justified to the left of y's zero line (not to the left  of the entire chart).

I tried abbreviating my labels but all that happens is the shorter label names still justify up to the y zero line (sample2.jpg).

This only happens on charts that contain negative y-series values. 

On charts with all positive values there is no graph below zero thus the labels appear correctly. (sample3.jpg).

I have tried a number of things to fix this (setting margin, setting the y-axis series min value to a fixed number, ,etc) but I cannot seem to get the labels to be justified to the left of the entire chart (not to the left of the y zero value).





Danail Vasilev
Telerik team
 answered on 22 Jul 2014
12 answers
938 views
2010.2.809.35   VS2008 / IE8

In the grid if I use this for GridBoundColumn it displays fine, but if my value is blank, I would like the cell to display balnk value instead of a single $ sign.    Help?

DataFormatString="${0:$###,###.##}"
Asutosh
Top achievements
Rank 1
 answered on 22 Jul 2014
1 answer
135 views
I have a RadGrid with a MasterTableView and the Insert/Cancel of such are either LinkButtons or PushButtons which are ugly. I want to make them look like the default RadButtons that I am using across the rest of the site. Right now my only solution is to use screenshots. Is there a better built-in way to do so?
Princy
Top achievements
Rank 2
 answered on 22 Jul 2014
6 answers
302 views
 hi

in ASP.NET AJAX (NOT SilverLight or ... Just For ASP.NET ajax):
How can I drag n drop multiple gridview rows to Treeview node?
How can I  drag n drop between  gridview and treeview?
Please Help me.
thanks

Shinu
Top achievements
Rank 2
 answered on 22 Jul 2014
1 answer
234 views
Is there a way to extend the Group Sizes option to the decimals?  Based on my testing, it doesn't appear to work with the decimals.  Deal with small numbers all the time and for readability it would be great to see something like this:

1.000 343 234 345

Just curious if there is a way to accomplish this.

Thanks,

Richard
Princy
Top achievements
Rank 2
 answered on 22 Jul 2014
11 answers
527 views
HAI  All,


how to write the code when i click on Update button it will show one RadAlert box saved sucessfully if i click on ok button it will redirect to some other page with some id
see this code once 
ASPX:
 
   <cc1:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" AutoSize="true" CenterIfModal="true" Modal="true">
          </cc1:RadWindowManager>
 
C#:
 
RadWindowManager1.RadAlert("You have Updated the item successfully!", 250, 150, "", "", "");


if i click on "ok" button in radalert it will redirect to some other page like 
 Response.Redirect("ItemDetails.aspx?ItemID={0}", intItemId);
Shinu
Top achievements
Rank 2
 answered on 22 Jul 2014
5 answers
308 views
Hi,
I change column in radgid dynamically in ItemDataBound but when i export the data in to excel i am getting the default value from table:

protected void EmplReqGrid_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
string ddlTerm = ((DataRowView)e.Item.DataItem)["TERMID"].ToString().Trim();
if (ddlTerm == "F")
item.Cells[4].Text = "Fall";
else
item.Cells[4].Text = "Spring";
}
}

Instead of showing "Fall" or "Spring" after I exporting grid to excel  it shows "F" or "S".

Please help me.
Thanks so much.
Shinu
Top achievements
Rank 2
 answered on 22 Jul 2014
3 answers
108 views
Hi.  I just need something to get me started.

Please see the attachment for a picture of the data from an SQL data source, and the simple chart I'm trying to build. 

What goes inside the <telerik:RadHtmlChart /> to bind the fields and achieve the basic format shown?

I can repackage the data somewhat to make binding easier if that's needed.

Can you help?

Thanks.
Ed
Top achievements
Rank 1
 answered on 22 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?