Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
87 views
This is my first time using HtmlChart and I need a bit of help.

I have bound a grid and chart on the server side. The grid works but the chart doesn't.

Here is the code and attached is a screen capture what I currently getting and what I would like to see.

ASP.NET
                        <td width="100%" valign="top" align="left">
                            <telerik:RadHtmlChart ID="barChart" runat="server" Width="600px" Height="200px">
                            </telerik:RadHtmlChart>
                        </td>

C#
                DataTable dtNetworkCompareResults = dataSet.Tables["NetworkCompareResults"];

                radgridSearchResults.DataSource = dtNetworkCompareResults;
                radgridSearchResults.Visible = true;
                radgridSearchResults.DataBind();

                barChart.DataSource = dtNetworkCompareResults;

                this.barChart.PlotArea.Series.Clear();

                LineSeries networkSeries1 = new LineSeries { DataFieldY = "Total" };
                this.barChart.PlotArea.Series.Add(networkSeries1);
                LineSeries networkSeries2 = new LineSeries { DataFieldY = "PSC" };
                this.barChart.PlotArea.Series.Add(networkSeries2);
                LineSeries networkSeries3 = new LineSeries { DataFieldY = "Specialist"};
                this.barChart.PlotArea.Series.Add(networkSeries3);

                barChart.PlotArea.XAxis.DataLabelsField = "NetworkName";
                barChart.PlotArea.XAxis.Name = "NetworkName";

                barChart.Legend.Appearance.Visible = true;
                barChart.Visible = true;

                barChart.DataSource = dtNetworkCompareResults;
                barChart.DataBind();
Princy
Top achievements
Rank 2
 answered on 15 May 2014
3 answers
108 views
Hi,

I added RadMonthCalendar on Master page banner
 <telerik:RadMonthYearPicker ID="RadMonthYearPicker" runat="server" OnSelectedDateChanged="RadMonthYearPicker_SelectedDateChanged" AutoPostBack="true">
trying to add selected chang event in child pages, but getting error: (Cannot implicitly convert type 'System.EventHandler' to 'Telerik.Web.UI.Calendar.SelectedDateChanged EventHandler')

 Child page load:
 RadMonthYearPicker radMonthYear = (RadMonthYearPicker)this.Master.FindControl("RadMonthYearPicker");
                 radMonthYear.SelectedDateChanged += new EventHandler(RadMonthYearPicker_SelectedDateChanged);
                 year = radMonthYear.SelectedDate.Value.Year;
                 month = radMonthYear.SelectedDate.Value.Month;

protected void RadMonthYearPicker_SelectedDateChanged(object sender, EventArgs e)
        {
            RadMonthYearPicker rmy = (RadMonthYearPicker)sender;
           
           
            year = rmy.SelectedDate.Value.Year;
            month = rmy.SelectedDate.Value.Month;
            BindLabelData();
            GetData("Total");
            GetQuarterData("Total");
            BindData(1);
            
           
        }

Also getting error (No overload for 'RadMonthYearPicker_SelectedDateChanged' matches delegate 'System.EventHandler' )when i give like this:   protected void RadMonthYearPicker_SelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)

Please let me know how to proceed on this. Thanks

Shinu
Top achievements
Rank 2
 answered on 15 May 2014
7 answers
634 views
Dears ,

I have a rad grid contain data and instead use edit to but value in one cell for every row , I want to create a two buttons in every row to put this value
Ex:

the cell in database name " mgm_con" I want when I press in the button to put in this cell " confirmed " or the second button " n't confirmed "
Shinu
Top achievements
Rank 2
 answered on 15 May 2014
5 answers
93 views
Dear Sir:

As the subject.
Example as how to change the Query and Delete?

Kind Regards
Princy
Top achievements
Rank 2
 answered on 15 May 2014
1 answer
141 views
Hi I am using RadComboBox under GridTemplateColumn,
Whenever i click on edit the value unable to bind. the update radcombobox it shows blank and have to reselect the data.
How do i insert data into RadComboBox once press on edit?

here is my source code please help urgently I've been trying for 48 hours....

<telerik:RadGrid ID="RadGridYieldConfig" runat="server" AllowFilteringByColumn="True"
            AllowPaging="True" PageSize="12" AllowSorting="True" CellSpacing="0" GridLines="None"
            OnNeedDataSource="RadGridYieldConfig_NeedDataSource" OnItemCommand="RadGridYieldConfig_ItemCommand" EnableLoadOnDemand="True">
            <GroupingSettings CaseSensitive="false" />
            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
            <MasterTableView Width="100%" CommandItemDisplay="Top" AutoGenerateColumns="false"
                EditMode="InPlace">
                <Columns>
                    <telerik:GridEditCommandColumn>
                    </telerik:GridEditCommandColumn>
                    <telerik:GridTemplateColumn
                        HeaderText="Customer Name" DataField="CUSTOMER_NAME" UniqueName="CUSTOMER_NAME">
                        <ItemTemplate>
                        <asp:Label ID="lblCustomerName" runat="server"
                Text='<%# DataBinder.Eval(Container.DataItem, "CUSTOMER_NAME")%>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadComboBox runat="server" ID="RCBCustomer" DataTextField="catg010"
                                DataValueField="catg010" OnItemsRequested="RCBCustomer_OnItemsRequested"
                                OnSelectedIndexChanged="RCBCustomer_OnSelectedIndexChangedHandler" Width="100%">
                            </telerik:RadComboBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn> 



Protected Sub RadGridYieldConfig_ItemCommand(ByVal sender As Object, ByVal e As GridCommandEventArgs)
        m_eInf = New YieldInfo
        m_DB = New Database
        Dim item As GridEditableItem = TryCast(e.Item, GridEditableItem)


        If e.CommandName = RadGrid.EditCommandName Then

            Dim DataItem As GridDataItem = CType(e.Item, GridDataItem)
            If e.Item.IsDataBound Then

                RCBEditValue = CType(item.FindControl("lblCustomerName"), Label).Text

                Dim box As RadComboBox = DirectCast(item.FindControl("RCBCustomer"), RadComboBox)
                box.Text = RCBEditValue
            End If



















Princy
Top achievements
Rank 2
 answered on 15 May 2014
21 answers
538 views
We are using datepicker .inspite of setting the width and even changing the width to different values in terms of pixels and percentage , the width remains
unchanged .
This problem occurs only in IE8 browser , where as in all other browser(FF,ie7 etc)  it works fine

<td style="width: 35%">  
                                        <telerik:RadDatePicker ID="txtDoj" runat="server" Skin="Vista" MinDate="1900-01-01">  
                                            <Calendar runat="server" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False">  
                                            </Calendar> 
                                            <DatePopupButton HoverImageUrl="" ImageUrl="" /> 
                                        </telerik:RadDatePicker> 
                                    </td> 

Could we know a solution for this problem

Thanks and regards,
sriharsha
Leon
Top achievements
Rank 1
 answered on 14 May 2014
1 answer
226 views
Hello ,

I am using RadFile explorer telerik control for upload file but in this when the rad fileexplorer is load i have made one method "OnClientload" so in this method I want to side some folder of the grid data at the time of load and disable the pointer events on that folder also so teh user not able to click on that folder.

For Example:
          function OnClientLoad(explorer) {
           
               var radExplorer = $find("RF1");
              var getGrid = radExplorer.get_grid();
              var table = getGrid.get_masterTableView();
              var rows = table.get_dataItems();
            
              for (var i = 0; i < rows.length; i++) {
                  var menuItem = rows[i];
                  if (menuItem.get_dataItem().Name == "catalog") {
                      $('.rgRow div:contains("catalog")').css('pointerEvents', 'auto');
                      $('.rgRow div:contains("catalog")').css('opacity', 0.4);
                  }}}
                
but in this code the pointer events class is not working on the folde


             
             
         
Vessy
Telerik team
 answered on 14 May 2014
0 answers
197 views
The Telerik UI for ASP.NET AJAX suite is not tested and supported under MVC. They are based on the web form paradigm and heavily rely on the web form server lifecycle that is not available in an MVC environment. You can only add the AJAX controls to a standard web form in an MVC project. The Razor engine is not supported by the Telerik UI for ASP.NET AJAX controls.

We recommend using the UI for ASP.NET MVC, the Telerik product built from the ground up to support the principles of MVC development in your MVC projects.

If you have general questions about the UI for ASP.NET AJAX controls, you can post them in the General Discussions forum section.
If you have questions about a specific control, you can post them in their respective forum under the UI For ASP.NET AJAX forum.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 14 May 2014
1 answer
94 views
I have a screen with file explorer on it.  I understand you cannot delete the parent, top level, folder, but I should be able to delete a file in the parent folder.  When I right click and brink up the content menu I can delete but the delete button in the toll bar is disabled.  If I move the file from the parent directory to a child folder the delete button on the tool bar will enable.  It is only the toolbar delete for file in the top level folder that does not work.
Vessy
Telerik team
 answered on 14 May 2014
1 answer
331 views
Hi,
 I have a rad grid and I need to clear its contents after a client side event.How it will done from client side itself.

Thanking You
Jis George.
Kostadin
Telerik team
 answered on 14 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?