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

Hi I am trying change to change the color of the bar chart and databinded using sql datasource. the 

Here's the code behind

Page load code behind

Dim barColors As Color() = New Color(7) {Color.Purple, Color.SteelBlue, Color.Aqua, Color.Yellow, Color.Navy, Color.Green, Color.Blue, Color.Red}
        GraphIncoming.ChartTitle.Text = "Number of Incoming request per Area for the Year " + dpdYearWKPerArea.SelectedValue.ToString + ""
        GraphIncoming.DataBind()
        Dim k As Integer = 0
        GraphIncoming.PlotArea.Series(0).Name = "Value"
        For Each item As ChartSeriesItem In GraphIncoming.PlotArea.Series(0).Items
            item.Appearance.FillStyle.MainColor = barColors(System.Math.Max(System.Threading.Interlocked.Increment(k), k - 1))
        Next
######

aspx Page

 <telerik:RadHtmlChart ID="GraphIncoming" runat="server" DataSourceID="SqlDataSource2" Font-Underline="False" Skin="Office2010Blue" Width="100%">
                                                        <PlotArea>
                                                            <Series >
                                                                <telerik:ColumnSeries DataFieldY="Value"  >
                                                                    <Appearance FillStyle-BackgroundColor="#337ab7"></Appearance>
                                                                    <TooltipsAppearance Color="White" />
                                                                </telerik:ColumnSeries>
                                                            </Series>
                                                            <XAxis DataLabelsField="Area">
                                                                <LabelsAppearance RotationAngle="45">
                                                                </LabelsAppearance>
                                                                <TitleAppearance Text="">
                                                                    <TextStyle Bold="true" Color="Red" FontFamily="Verdana" FontSize="12px" Italic="true" />
                                                                </TitleAppearance>
                                                            </XAxis>
                                                            <YAxis>
                                                                <TitleAppearance Text="Number of Incoming request">
                                                                    <TextStyle Bold="true" Color="Red" FontFamily="Verdana" FontSize="12px" Italic="true" />
                                                                </TitleAppearance>
                                                            </YAxis>
                                                        </PlotArea>
                                                        <Legend>
                                                            <Appearance Visible="True">
                                                            </Appearance>
                                                        </Legend>
                                                        <ChartTitle >
                                                            <Appearance Visible="True">
                                                                <TextStyle Bold="true" Color="Blue" FontFamily="Verdana" FontSize="12px" Italic="true" />
                                                            </Appearance>
                                                        </ChartTitle>

                                                        <Zoom Enabled="False"></Zoom>
                                                    </telerik:RadHtmlChart>

 

 

 

Vessy
Telerik team
 answered on 15 Feb 2021
1 answer
371 views
Hi,

Wound like to check whether Telerik.Web.UI.dll 2009 version is affected by CVE-2019-18935 or CVE-2017-11317?

Our application is using Telerik.Web.UI.dll 2009 version and please let us know if any vulnerabilities with this version?

Please advise.
Vessy
Telerik team
 answered on 15 Feb 2021
1 answer
150 views

Users reported a problem in a very old application using Telerik RadComboBox v2017.2.711.45 and I'm trying to find a solution for it, without having to upgrade the telerik controls (we don't have any active subscription or support):

 

Problem is, that when the user selects some text on a page, and releases the left mouse button over a RadComboBox control, then the dropdown opens. E.g:

- user presses left mouse button in a textbox for example
- user moves the mouse to select text
- while the left button is still pressed, the mouse is moved out of the textbox and over a RadComboBox
- user releases the left mouse button (while over the RadComboBox)

--> the dropdown list opens/expands, which is not desired (since the mouse-button down was not over that control)

 

Does anyone have an idea how to approach and fix this problem globally?

Is there for example a way to find a RadComboBox at the current mouse position, so that I could do something in the mousedown/up events?

 

Thanks a lot for any help

Doncho
Telerik team
 answered on 15 Feb 2021
3 answers
247 views
Team,

  Can anybody let me know if how can I set my paging to the right alignment in the RadGrid. Currently with this code below the grid is not diaplsying the pager with right alignment.

in Code-Behind i wrote

 

this.RadGrid1.MasterTableView.PagerStyle.AlwaysVisible = true;

 

 

this.RadGrid1.MasterTableView.PagerStyle.ShowPagerText = false;

 

 

this.RadGrid1.MasterTableView.PagerStyle.HorizontalAlign = HorizontalAlign.Center;

 

 

this.RadGrid1.MasterTableView.PagerStyle.PrevPageText = "Previous";

 

 

this.RadGrid1.MasterTableView.PagerStyle.NextPageText = "Next";

 

 

this.RadGrid1.MasterTableView.PagerStyle.Mode = Telerik.Web.UI.GridPagerMode.NextPrevAndNumeric;

 



Thanks
Vijay
Doncho
Telerik team
 answered on 12 Feb 2021
5 answers
177 views
Is there a way to reorder a LayoutRow, in a RadPageLayout, depending on device?  In my scenario I have multiple rows (each containing a DIV with various other controls), and when the page is being viewed by a mobile device, I'd like to have the 1st and 2nd row switch positions.
Rumen
Telerik team
 answered on 12 Feb 2021
28 answers
1.1K+ views
Hi,
I'm using the RadEditor on our website.  When I browse to it on an iPad and I try to enter text the onscreen keyboard doesn't pop up.

The iPad uses Safari which is listed as supported for RadEditor...

Anyone solved this problem?
Rumen
Telerik team
 answered on 12 Feb 2021
3 answers
156 views

I would like to fix the spacing in between my AsyncUpload and the previous object.  I tried adding it to a table and doesn't seem to matter.  From the code you can see that I have set "HideFileInput" to true.  I am just wanting the "Select" button.

Attached is two images.  If I put the AsyncUpload in the same cell it goes under the RadTextBox and I don't want that as I would like it next to.  If they are in different cells then the spacing is too far apart.  How do get them closer w/o throwing it under the RadTexBox.

 

    <tr>
        <td class="LabelStyle-Right" style="vertical-align: top;">Subject:</td>
        <td style="vertical-align: top;">
            <telerik:RadTextBox ID="_subject" runat="server" MaxLength="100" Width="200"></telerik:RadTextBox>
            </td>
        <td style="vertical-align: top; text-align: left;">
            <telerik:RadAsyncUpload ID="_FaxFile" runat="server" Width="100%"
                AllowedFileExtensions=".pdf" MaxFileInputsCount="1" Visible="true" ToolTip="Select PDF" HideFileInput="true" MaxFileSize="15728640" Localization-Select="Select PDF">
            </telerik:RadAsyncUpload>
<%--            <span class="allowed-attachments" style="font: italic 10px arial, verdana; color: blue;">
                <asp:Label runat="server" ID="FileTypes" Visible="true" Enabled="false"></asp:Label></span>--%>
 
        </td>
    </tr>
Vessy
Telerik team
 answered on 11 Feb 2021
1 answer
117 views

Is it possible to navigate document using up, down, pgup, pgdn and home end keys or only pager options available?

How to translate page width descriptions like "Fit to page" etc.

I did translation using "MessagesSettings" but nowhere found combobox options.

Attila Antal
Telerik team
 answered on 11 Feb 2021
3 answers
222 views

I have a rad grid nested:

<telerik:RadGrid ID="gvDocs" runat="server" ShowHeader="false" Width="100%" AutoGenerateColumns="false" OnItemCommand="gvDocsDx_ItemCommand" GridLines="None" CssClass="diagCodes" OnItemDataBound="gvDocs_ItemDataBound">
    <MasterTableView BorderWidth="0">
        <Columns>
            <telerik:GridButtonColumn CommandName="DeleteItem" UniqueName="btnDelDoc" ButtonType="PushButton" Text=" Delete "></telerik:GridButtonColumn>
            <telerik:GridBoundColumn DataField="id" UniqueName="id" HeaderText="RefId" Display="false"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="friendlyName"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="pgNum"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="fileNote"></telerik:GridBoundColumn>
        </Columns>
        <NoRecordsTemplate>
            <div class="no-record">No document associations</div>
        </NoRecordsTemplate>
    </MasterTableView>
</telerik:RadGrid>

 

I am trying to navigate to btnDelDoc so I can disable it.  Here is the code I have and I think I am close: (it is not finding the button) HELP!

protected void gvDocs_ItemDataBound1(object sender, GridItemEventArgs e)
{
    if (util.appUserIsReports)
    {
        //RadPushButton btn = e.Item
        //GridDataItem item = e.Item as GridDataItem;
        if (e.Item is GridDataItem)
        {
            GridDataItem item = e.Item as GridDataItem;
            RadButton button = item.FindControl("btnDelDoc") as RadButton;
            button.Enabled = false;
        }
    }
}

 


Attila Antal
Telerik team
 answered on 11 Feb 2021
1 answer
105 views

Hello,

I have a simple radDataPager with the Bootstrap skin.

The first, previous, next and last icons are wrongly displayed when the mouse hoovers the buttons (see the four pictures).

The markup:

<div class="SearchPagerContainer">
  <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="lvArticles" PageSize="24" Skin="Bootstrap" Style="margin-left: 3px; margin-top: 2px" OnInit="RadDataPager1_Init">

    <Fields>
      <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
      <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="4"/>
      <telerik:RadDataPagerButtonField FieldType="NextLast" />
      <telerik:RadDataPagerPageSizeField PageSizeComboWidth="70" PageSizes="12;24;48" PageSizeText="# par page: " HorizontalPosition="NoFloat" />
    </Fields>
  </telerik:RadDataPager>
</div>

It seems to be basic, but it does not work.

Any idea ?

Philippe

Doncho
Telerik team
 answered on 10 Feb 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?