Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
105 views
Hi - Is it possible to remove the Export to Microsoft Excel menu item from the default IE8 browser popup menu? Is there a setting in the grid control that will stop this from appearing?

Thanks
Dean Brown
Top achievements
Rank 1
 asked on 04 Oct 2012
1 answer
135 views
Hi I have a generic list of objects that I would like to bind to a bar graph that have the following properties:

public decimal TotalValue
{
    get
    {
        return _totalValue;
    }
    set
    {
        _totalValue = value;
    }
}
 
public decimal TotalHours
{
    get
    {
        return _totalHours;
    }
    set
    {
        _totalHours = value;
    }
}
 
public string FieldActivityNameWUnit
{
    get
    {
        return _fieldActivityNameWUnit;
    }
    set
    {
        _fieldActivityNameWUnit = value;
    }
}
 
public int ActivityMonth
{
    get
    {
        return _activityMonth;
    }
    set
    {
        _activityMonth = value;
    }
}
 
public string ActivityMonthName
{
    get
    {
        return _activityMonthName;
    }
    set
    {
        _activityMonthName = value;
    }
}
 
public string FieldActivity
{
    get
    {
        return _fieldActivity;
    }
    set
    {
        _fieldActivity = value;
    }
}

If you look at the attached graphic, really all I want is the totalvalue displayed.not the month number or the totalhours.  how do I get rid of these other two series?  here is my code so far:
    protected void CreateYearChart()
    {
 
        RadChartProjectActivityYearly.Legend.Clear();
        RadChartProjectActivityYearly.Series.Clear();
 
        FieldActivity _activity = FieldActivityService.GetByID(Int32.Parse(ddlFieldActivity.SelectedValue.ToString()));
        RadChartProjectActivityYearly.ChartTitle.TextBlock.Text = _activity.Unit + " in " + ddlDetailYear.SelectedItem.Text;
 
        List<FactProjectActivityTotalsByMonth> _factsBar1 = FactProjectActivityTotalsByMonthService.GetForYear(Int32.Parse(ddlDetailYear.SelectedItem.Text), Int32.Parse(ddlFieldActivity.SelectedValue.ToString()));
 
        RadChartProjectActivityYearly.DataSource = _factsBar1;
 
        RadChartProjectActivityYearly.Legend.Visible = true;
 
//        RadChartProjectActivityYearly.Series[0].DataYColumn = "TotalValue";
        RadChartProjectActivityYearly.PlotArea.XAxis.DataLabelsColumn = "ActivityMonthName";
         
        RadChartProjectActivityYearly.DataBind();
        RadChartProjectActivityYearly.AutoLayout = true;
 
        foreach (Telerik.Charting.ChartSeries series in RadChartProjectActivityYearly.Series)
        {
            Debug.WriteLine(series.Name);
            //if (series.Name != "TotalValue")
            //{
            //    RadChartProjectActivityYearly.Series.Remove(series);
            //}
        }
 
        //RadChartProjectActivityYearly.RemoveSeriesAt(2);
        //RadChartProjectActivityYearly.RemoveSeriesAt(0);

I thought about creating the series manually but then I lose the X-axis labels so ideally I'd like to be able to databind to only one property of the object in the underlying list.  Her is the declaration:
<telerik:RadChart ID="RadChartProjectActivityYearly" runat="server" skin="Forest" Width="1000px" >
<Legend>
 <Appearance Position-AlignedPosition="TopRight"></Appearance>
 </Legend>
    <PlotArea>
        <XAxis AutoScale="False" DataLabelsColumn="ActivityMonthName" ></XAxis>
    </PlotArea>
</telerik:RadChart>
thanks for the help
Petar Kirov
Telerik team
 answered on 04 Oct 2012
11 answers
273 views

HI Telerik,

I am looking for a file explorer for web application (web page) which should look like vista explorer or your FirstLook exploerer at http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/default/defaultcs.aspx. Do you have any sample code to go ahead with this control? Can i add my own button in the menu? I would prefer vista explorer but i am ok with the example provided also. Could you please suggest me regarding this? I am using  Rad file explorer for the first time and does not have much idea about its properties, how to bind etc.
Please do the needful ASAP.

Regards,
Srikanth
Vessy
Telerik team
 answered on 04 Oct 2012
5 answers
156 views
Hi,

I want to populate a RadMenuItem from a wcf-service.
This is working but I have the following problem.
The wcf-service is only called the first time I visit the menu. The second time I hoover the menu the items from the wcf-service are not refreshed. Because the items I want to show can be changed in the meanwhile I want the menuitems always be populated/refreshed from the wcf-service.
How can I do this?

Paul
Dimitar Terziev
Telerik team
 answered on 04 Oct 2012
4 answers
151 views
Is there any way to enable drag and drop if you bind to xml?
Charles
Top achievements
Rank 1
 answered on 04 Oct 2012
4 answers
164 views

<td id="td_grdRuleList" align="left" style="vertical-align: top; width: 700px;" colspan="2">
    <asp:Label ID="sds" runat="server" Height="1px"></asp:Label>
    <div id="dv_memberAndRule" runat="server" style="width: 100%; display: none;">
        <telerik:RadCodeBlock ID="RadCodeBlock20" runat="server">
            <table border="0">
                <tr>
                    <td style="width: 500px;">
                        <telerik:RadMultiPage runat="server" ID="RadMultiPage1" title="" SelectedIndex="0"
                            CssClass="pageView">
                            <telerik:RadPageView ID="RadPageView2" runat="server" Height="450">
                                <table width="100%" border="0" cellpadding="0px" cellspacing="0px" class="tblspacer">
                                    <tr>
                                        <td style="width: 100%;">
                                                <div id ="Mohamed">
                                                     <telerik:radgrid>

How to find the DiV  inside the radmultipage view
Bold Id i want to find

Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 04 Oct 2012
3 answers
243 views
How can I utilize RadAsyncUpload to upload files to a SharePoint document library? Apparently, its not as simple as setting the TargetFolder of the RadAsyncUpload to a SharePoint document library URL. The ASP page hosting the control sits outside of SharePoint but in the same internet zone for authentication purposes.

Anybody have an unambiguous example of how to do this?

Here's the front code, but how to wire it together in the back-end C#?

<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" Skin="Windows7" FileUploaded="RadAsyncUpload1_FileUploaded"
    AllowedFileExtensions="jpg,jpeg,gif,png">
</telerik:RadAsyncUpload>
<div>
    Valid image types: JPEG, GIF, PNG.</div>
<hr />
<telerik:RadButton ID="RadButton1" runat="server" Skin="Windows7" Text="Upload" OnClick="RadButton1_OnClick">
</telerik:RadButton>
Kalina
Telerik team
 answered on 04 Oct 2012
2 answers
227 views
Hello,
I have a multiline RadTextBox on my page:
<telerik:RadTextBox ID="DescriptionTextBox" TextMode="MultiLine" runat="server" Width="100%" Height="150px" />

Later, this textbox is made read-only (from code-behind - depending on permissions of user). Under Chrome and Firefox everything works well - even though the textbox is disabled, I can use scrollbar and read all the text. Unfortunately, under IE (both IE8 and IE9) the scrollbar is shown but it's not enabled.

Is there any way to make it usable?

Thank you in advance.
pawelg
Top achievements
Rank 1
 answered on 04 Oct 2012
1 answer
199 views
Please see attachment..
  Change update button text to Save
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Oct 2012
1 answer
126 views

Hello .. I hope someone can help. I have a RadGrid on a Web Form with master page... i need to select a row and capture selected row index in a Label, to use this javascript code:

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> 
    <script type="text/javascript"> 
        function RowSelected(sender, args) { 
            document.getElementById("<%= Label1.ClientID  %>").innerHTML = args.get_itemIndexHierarchical();             
        } 
    </script> 
  </telerik:RadCodeBlock>

At runtime, in the internet explorer, I can see that Label change to value of Row Selected ... for example: 2, 4, 7, 11 .
However, when I press a button the value of Labelxx.Text is ever "Label", the value really never change. I read many forums and posed a possible solution and that many people have worked is:

1) In the webform.aspx replace the code

<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

by this

<asp:HiddenField ID="Label1" runat="server" />

2) replace the next line in javascript code:

document.getElementById("<%= Label1.ClientID  %>").innerHTML = args.get_itemIndexHierarchical();

by this

document.getElementById('Label1').value = args.get_itemIndexHierarchical();

3) in the Webform.aspx.cs take the value of label with:

string value_row = Label1.value

Curiosly .. this solucion works for me when the Webform.aspx isnot with the masterpage... When Webform.aspx is with MasterPage ... the same code is not working; I checked variables, codes, script and dont working ... nothing :'(

The MasterPage only contain a RadToolBar, a scriptManager and ContentPaceHolder... its all.
The WebForm only contain a RadGrid, native asp Label and native asp button...

 any idea why this happens? .. Thanks in advance for your help.

Eyup
Telerik team
 answered on 04 Oct 2012
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?