Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
206 views

Hi Team,

I am using server based dynamic radhtmlchart control in my asp.net page. It is getting dynamically rendered and added to the the page. I have a requirement where y-Axis points should be in descending order (Ref: pic 1). I have tried using reversed = true property but it is moving the x-axis to the top of the chart. 

Is there any way i can implement the requirement as shown in the reference picture.

Any sort of help is appreciated.

sri harsha
Top achievements
Rank 1
 answered on 18 Mar 2019
1 answer
149 views

So I'm trying to do what should be simple... I'm databinding to a grid and want to make simple edits and save.  But I can't get it to work :(  I've tried every combination I can think of and none work.  When I click edit, the edit form opens but no changes save back.  I'm sure it's something simple that I've overlooking but... 

I've tried it a few ways, this is an example:

<telerik:RadGrid ID="DailyHoursGrid" runat="server"
                        AutoGenerateEditColumn="True" CellSpacing="0" DataSourceID="LinqDataSource3"
                        GridLines="None">                      
                        <ClientSettings>
                            <Selecting CellSelectionMode="None" />
                        </ClientSettings>
                        <MasterTableView AutoGenerateColumns="False" DataSourceID="LinqDataSource3">
                            <CommandItemSettings ExportToPdfText="Export to PDF" />
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"
                                Visible="True">
                                <HeaderStyle Width="20px" />
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
                                Visible="True">
                                <HeaderStyle Width="20px" />
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridBoundColumn DataField="Employee" DataType="System.Int32"
                                    FilterControlAltText="Filter Employee column" HeaderText="Employee"
                                    ReadOnly="True" SortExpression="Employee" UniqueName="Employee">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="EventType"
                                    FilterControlAltText="Filter EventType column" HeaderText="EventType"
                                    ReadOnly="True" SortExpression="EventType" UniqueName="EventType">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Time" DataType="System.DateTime"
                                    FilterControlAltText="Filter Time column" HeaderText="Time" ReadOnly="False"
                                    SortExpression="Time" UniqueName="Time">
                                </telerik:GridBoundColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                        
                    </telerik:RadGrid>

 And my data is as follows:

<asp:LinqDataSource ID="LinqDataSource3" runat="server"
                      ContextTypeName="TimeClock.TimeClockEntities2" EntityTypeName="" OrderBy="Time"
                      Select="new (Employee, EventType, Time)" TableName="Events"
                       
                       
                      Where="Time >= @Time && Time <= @Time1 && Employee == @Employee"
                      EnableUpdate="True" EnableInsert="True">
                      <WhereParameters>
                          <asp:ControlParameter ControlID="StartDatePicker" DefaultValue="0:00" Name="Time"
                              PropertyName="SelectedDate" Type="DateTime" />
                          <asp:ControlParameter ControlID="EndDatePicker" DefaultValue="0:00" Name="Time1"
                              PropertyName="SelectedDate" Type="DateTime" />
                          <asp:ControlParameter ControlID="HourlyReportEmployeeCombo" DefaultValue="0"
                              Name="Employee" PropertyName="SelectedValue" Type="Int32" />
                      </WhereParameters>
                  </asp:LinqDataSource>


When in edit mode, the only thing that works is cancel, neither delete or edit do anything...
Eyup
Telerik team
 answered on 18 Mar 2019
1 answer
74 views

Hi!

AddFileInput - adds a row at the end of the control.

How can I add a row in a particular place in the middle?

 

Thanks

Vessy
Telerik team
 answered on 18 Mar 2019
1 answer
203 views

Hello, I have a chart created with ScatterLineSeries. Everything works, except the color inside the markers is white. I'd like it to be filled with the same color of the marker's outline.

Is there a property to fill inside the marker "automatically". when the chart or the series is first created ?

I am aware of there are SeriesItem.BackgroundColor and series.MarkersAppearance.BackgroundColor properties; However, I need to fill the markers automatically (when the chart is first created), since the different (mutliple) series get different colors and I can't tell what color will the series be.

 

I am attaching a screenshot

 

Thank you

Ahmet

 

 

Marin Bratanov
Telerik team
 answered on 15 Mar 2019
1 answer
477 views

hi, I have a radchart and want to show multiple lines using sql data source. User selects date range from calendar (raddatepicker) after that select points from radcombobox and I query the database for those range with three parameters (first date, second date and name point), naturally this is all handled by RadAjaxManager.I'm aware that in radhtmlchart not supported datagroupcolumn. How to do it radhtmlchart with multiple line series.

This is my code ASPX with radchart setting and RadAjaxManager:

<telerik:RadDatePicker runat="server" Visible="true" ID="dpIN"></telerik:RadDatePicker> &nbsp;&nbsp; <telerik:RadDatePicker runat="server" Visible="true" ID="dpOUT"></telerik:RadDatePicker>
    <telerik:RadComboBox ID="rcb_point" runat="server" AutoPostBack="True" DataSourceID="dsPoints" Width="300px"
            DataTextField="name_point" DataValueField="id" 
            AppendDataBoundItems="true">
            <Items>
                <telerik:RadComboBoxItem Text="Все точки" Value="0" Selected="true"></telerik:RadComboBoxItem>
            </Items>
        </telerik:RadComboBox>

<telerik:RadChart ID="RadChart2" DataSourceID="SqlDataSource1" runat="server"
                        Width="1500px" Height="800px" DefaultType="Line" OnItemDataBound="RadChart1_ItemDataBound" 
                        AutoLayout="true" AutoTextWrap="true" CreateImageMap="false">
        <ChartTitle>
            
        </ChartTitle>
        <Series>
            <telerik:ChartSeries DataYColumn="param_d" Name="передача данных" Type="StackedLine">
                <Appearance LegendDisplayMode="ItemLabels">
                    
                </Appearance>

            </telerik:ChartSeries>

        </Series>
    </telerik:RadChart>

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionInfo %>" SelectCommand="RetrieveChart" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:ControlParameter ControlID="rcb_point"  Name="point_id" PropertyName="SelectedValue" Type="Int32" />
        <asp:ControlParameter ControlID="dpIN" Name="date_in" PropertyName="SelectedDate" Type="DateTime" />
        <asp:ControlParameter ControlID="dpOUT" Name="date_out" PropertyName="SelectedDate" Type="DateTime" />
    </SelectParameters>
</asp:SqlDataSource>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
      <AjaxSettings>
          <telerik:AjaxSetting AjaxControlID="rcb_point">
              <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="RadChart2" LoadingPanelID="RadAjaxLoadingPanel1" />
                  <telerik:AjaxUpdatedControl ControlID="rcb_point" />
                  <telerik:AjaxUpdatedControl ControlID="dpIN" />
                  <telerik:AjaxUpdatedControl ControlID="dpOUT" />

              </UpdatedControls>
          </telerik:AjaxSetting>
      </AjaxSettings>
  </telerik:RadAjaxManager>
 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
 </telerik:RadAjaxLoadingPanel>

 

And this is my C# code:

       protected void Page_Load(object sender, EventArgs e)
        {
            RadChart2.DataGroupColumn = "sensor_type";
            RadChart2.PlotArea.XAxis.DataLabelsColumn = "date_in";
            RadChart2.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 300;
            RadChart2.PlotArea.Appearance.Dimensions.Margins.Bottom = Telerik.Charting.Styles.Unit.Percentage(30);
        }

 

Bellow i will attach two picture: my structure data table, i need to form multiple line series a column "sensor_type", and this is what i have right now.

 

Thank you for your attention, i hope upi will help me.

Marin Bratanov
Telerik team
 answered on 15 Mar 2019
1 answer
383 views

Hello!

1. How can I set the temporaryFolder to be in the MemoryStream?

2. I am using the control dynamically. That is, one control has several file selection buttons. The problem is that if the user wants to cancel / remove the file that is uploading then the entire line is deleted. How can I cancel / delete only the file and not the entire line (which has a title and a select button)?

 

Thanks

Vessy
Telerik team
 answered on 15 Mar 2019
1 answer
390 views

I'm looking to get my site up to WCAG 2.0 AA and I have a RadAsyncUpload control:

 

<telerik:RadAsyncUpload ID="mfUpload" runat="server" MultipleFileSelection="Automatic"  RenderMode="Auto" Skin="Bootstrap"
                                                OnClientFileUploadFailed="failed" EnableViewState="false" OnClientFilesUploaded="OnClientFilesUploaded"
                                                OnClientFileUploading="OnClientFileUploading" EnableAriaSupport="true"
                                                AllowedFileExtensions="jpg,png,gif,pdf"  DisablePlugins="true"  OnClientFileSelected="OnClientFileSelected"
                                                OnClientFileUploadRemoved="removed"   OnClientFilesSelected="onSelect"  OnClientValidationFailed="OnClientValidationFailed"  
                                                OnClientAdded="added"    Localization-Select="<%$ Resources:GlobalResource, SelectTitle %>"
                                                Localization-Cancel="<%$ Resources:GlobalResource,CancelText %>"  
                                                Localization-Remove="<%$ Resources:GlobalResource,RemoveText %>"  EnableInlineProgress="true">
                                
                            </telerik:RadAsyncUpload>

AriaSettings don't seem to be available and I need to set a label to the form element (upload control).  I set the EnableAriaSupport=true but I don't think that's going to solve my problem.

What are my options?

Peter Milchev
Telerik team
 answered on 15 Mar 2019
1 answer
339 views
Hello,

 

i have facing problem while i tried to Cascading ComboBoxes inside the radgrid.

my website has to Cascading ComboBoxes first one for Departments and second One for Task List and both working fine but the task combobox while i select any item from the list every time jump to the first item in the list. 

could you please advice ? kindly find the code below ?

 
Protected Sub LoadDepartments()
       Dim connection As New SqlConnection(ConfigurationManager.ConnectionStrings("PayrollConnectionString").ConnectionString)
 
       Dim adapter As New SqlDataAdapter("SELECT IDDepartment, DepartmentCode, DepartmentName, DepartmentCode + '-' + DepartmentName AS FullName FROM MasterDepartments ORDER BY DepartmentName", connection)
       Dim dt As New DataTable()
       adapter.Fill(dt)
 
 
       For i As Integer = 0 To RadGrid1.Items.Count - 1
           DirectCast(RadGrid1.Items(i).FindControl("Department"), RadComboBox).DataTextField = "FullName"
           DirectCast(RadGrid1.Items(i).FindControl("Department"), RadComboBox).DataValueField = "DepartmentCode"
           DirectCast(RadGrid1.Items(i).FindControl("Department"), RadComboBox).DataSource = dt
           DirectCast(RadGrid1.Items(i).FindControl("Department"), RadComboBox).DataBind()
 
           DirectCast(RadGrid1.Items(i).FindControl("Department"), RadComboBox).Items.Insert(0, New RadComboBoxItem("- Select a Department -"))
 
 
 
       Next
 
   End Sub
 
   Protected Sub LoadTasks()
 
       Dim connection As New SqlConnection(ConfigurationManager.ConnectionStrings("PayrollConnectionString").ConnectionString)
       Dim dt As New DataTable()
 
 
       For i As Integer = 0 To RadGrid1.Items.Count - 1
           Dim adapter As New SqlDataAdapter("SELECT     id, Category, Title, SortOrder, Colors, IsEditable, IsVisible, Descripion, SUBSTRING(Title, 1, 2) AS Expr1 FROM         dbo.LookUps WHERE     (Category = N'task code') AND (SUBSTRING(Title, 1, 2) = @DeptCode)", connection)
 
 
           adapter.SelectCommand.Parameters.AddWithValue("@DeptCode", DirectCast(RadGrid1.Items(i).FindControl("Department"), RadComboBox).SelectedValue)
 
 
           DirectCast(RadGrid1.Items(i).FindControl("TaskList"), RadComboBox).DataTextField = "Descripion"
           DirectCast(RadGrid1.Items(i).FindControl("TaskList"), RadComboBox).DataValueField = "Expr1"
           DirectCast(RadGrid1.Items(i).FindControl("TaskList"), RadComboBox).DataSource = dt
           DirectCast(RadGrid1.Items(i).FindControl("TaskList"), RadComboBox).DataBind()
 
           DirectCast(RadGrid1.Items(i).FindControl("TaskList"), RadComboBox).Items.Insert(0, New RadComboBoxItem("- Select a task list -"))
           adapter.Fill(dt)
 
       Next
Eyup
Telerik team
 answered on 15 Mar 2019
6 answers
151 views

On C#/ASP.NET I am creating a graph that I am putting dates on X axis; however, the dates are only being displayed on the major ticks. Does RadHtmlChart have a setting to display dates on minor ticks as well  ?

 

I am attaching a screenshot.

 

Thanks

Vessy
Telerik team
 answered on 15 Mar 2019
5 answers
73 views
At times if a user is entering content into the editor, applies formatting and then hits the undo button, at times it causes IE 11 to crash. This causes them to close IE and restart the app. This does not happen all of the time but it does happen. What would cause IE to crash by clicking the undo button?
Rumen
Telerik team
 answered on 14 Mar 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?