Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
443 views

Good morning

Please, how can find a radnumerictextbox exist in GridTableView Footer inside a telerik radgrid by javascript

 Regards

Kostadin
Telerik team
 answered on 12 Jan 2016
4 answers
391 views

Hello,

I have a custom style sheet, which I use successfully with various controls. I have an issue with a RadButton which I am trying to use as an image button. I find that on initial entry the RadButton styles are not taking effect. On postback the styles DO take effect. Other styles from the same stylesheet DO take effect immediately on initial entry against other controls defined in the same user control.

Some specifics: 1) This is a SharePoint web part which defines user controls dynamically. One of these user controls has the RadButton (which has the problem) and also contains other controls (which DO work).

2) I am using a RadAjaxPanel - all User Controls are added to this Panel.

3) The buttons are disabled in the code on initial entry.

4) the gradient styling does not work at all.

Here is an extract from the styles.css:

 

.classImage
{
    background: url(images/previousAsset200x23.png), linear-gradient(to bottom, #f2f2f2, #a9a9a9),
       -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#cbcbcb)),
       -moz-linear-gradient(top, #f2f2f2, #a9a9a9) ;
    background-position: 8px 2px;
    background-repeat:no-repeat;
    width: 250px;
    height: 23px;
    border: solid;
    border-radius: 4px;
    border-width: 1px;
    border-color:black;
    /*padding: 0px 7px 0px 4px ;*/  /* top right bottom left */
    padding: 2px 4px;
}
 
.classHoveredImage
{
    /*background-position: 0 -10px;*/
}
 
.classPressedImage
{
    /*background-position: 0 -20px;*/
}

Here is an extract of the ascx file:

<SharePoint:CssLink ID="cssLink1" runat="server" DefaultUrl="XXX.SharePoint.YYY/Styles.css" />
    <telerik:RadPanelBar ID="RadPanelBar1" runat="server" ExpandMode="FullExpandedItem" Width="900px" Height="116px">
        <Items>
            <telerik:RadPanelItem Text="Asset Search" Expanded="true" >
                <ContentTemplate>
                    <table style="width:100%; text-align:center">
                        <tr>
                            <td>       
                                <telerik:RadButton ID="PreviousAssetRadButton" runat="server" Width="210px"
                                     Height="23px" Text="Previous Asset" ButtonType="StandardButton"
                                    ToolTip="Find the prior asset on the pipeline."
                                    OnClick="PreviousAssetRadButton_Click"
                                    CssClass="classImage" HoveredCssClass="classHoveredImage"
                                    PressedCssClass="classPressedImage"
                                    Image-IsBackgroundImage="true">
                                    <Image
                                   ImageUrl="/_layouts/15/images/XXX.SharePoint.YYY/previousAsset56X23.png"
                                        EnableImageButton="true"  />
                                </telerik:RadButton>
                                  

Danail Vasilev
Telerik team
 answered on 12 Jan 2016
1 answer
147 views
Hello all,

We were trying to improvise on the existing Telerik filters in our web application.
We initially had normal filters with existing GridKnownFunction values for some columns, while we had RadComboBox to enable drop-down on top of which there were filters for few other columns.
Now we were trying to use checklist filtering (instead of RadComboBox implementation) along with the existing normal filters in the same RadGrid.
We set the FilterType to Combined and tried using the OnFilterCheckListItemsRequested property of RadGrid along with setting FilterCheckListEnableLoadOnDemand property of GridBoundColumn to true for the columns that required Checklist filtering.
However, we are running into several issues where the normal filtering is not working as expected.
Is it possible to have both these types of filtering in the same RadGrid?
Are we missing out on something else here?

Please guide us through this.

Thanks in advance,
Anushree Ramanath
Maria Ilieva
Telerik team
 answered on 12 Jan 2016
7 answers
210 views

hi,

i jave a chart with line series and it has a different behavior of the auto scale between 200 and 400 items (or more).

the first is loaded correctly and the first value shown in the Yaxis is 0.95 (see attached) but with 400 it starts form zero.

all items are all positive and greater than zero.

what configuration am i missing?

 RadHtmlChart chart = new RadHtmlChart { Transitions = true, Skin = "Bootstrap", CssClass = "plutochart" };
            chart.ID = "htmlChart";
            chart.Legend.Appearance.BackgroundColor = Color.White;
            chart.Legend.Appearance.Position = ChartLegendPosition.Bottom;
            chart.Legend.Appearance.TextStyle.Bold = false;
            chart.Legend.Appearance.TextStyle.FontFamily = "Helvetica";
            chart.Legend.Appearance.TextStyle.Italic = false;
            chart.Legend.Appearance.TextStyle.Color = Color.Black;
            chart.Legend.Appearance.TextStyle.FontSize = 12;
            chart.Legend.Appearance.TextStyle.Margin = "0";
            chart.Legend.Appearance.TextStyle.Padding = "10";

            chart.Appearance.FillStyle.BackgroundColor = Color.Transparent;
            
            chart.PlotArea.XAxis.TitleAppearance.Visible = false;
            chart.PlotArea.XAxis.LabelsAppearance.DataFormatString = LocalizeHelper.DateTimeFormat;
            chart.PlotArea.XAxis.MajorGridLines.Visible = false;
            chart.PlotArea.XAxis.MinorGridLines.Visible = false;

            /*
             * nell'ascisse ci stanno al max 9 label quindi devo calcolare il corretto Step
             */
            double gropu = (listCount / 9);
            int step = Convert.ToInt32(Math.Ceiling(gropu));
            chart.PlotArea.XAxis.LabelsAppearance.Step = step > 0 ? step : 1;
            chart.PlotArea.XAxis.LabelsAppearance.RotationAngle = -45;
            chart.PlotArea.YAxis.TitleAppearance.Text = string.Empty;
            chart.PlotArea.YAxis.TitleAppearance.TextStyle.Margin = "20";
            chart.PlotArea.YAxis.MinorGridLines.Visible = false;
            chart.PlotArea.YAxis.Type = HtmlChartValueAxisType.Numeric;
            chart.PlotArea.YAxis.LabelsAppearance.DataFormatString = LocalizeHelper.RoundDoubleDecimalsToString;

 

LineSeries itemSeries = new LineSeries { Name = quotationsTitle };
            itemSeries.LabelsAppearance.DataFormatString = LocalizeHelper.RoundDoubleDecimalsToString;
            itemSeries.LineAppearance.Width = 3;
            itemSeries.TooltipsAppearance.Color = Color.White;
            itemSeries.LabelsAppearance.Visible = false;
            itemSeries.MarkersAppearance.Visible = false;
            LineSeries minMaxLastSeries = new LineSeries { DataFieldY = "MinMaxLastQuoteDouble", Name = minMaxLastTitle };

chart.PlotArea.XAxis.DataLabelsField = "QuoteDateTime";
                    itemSeries.DataFieldY = "QuoteDouble";
                    itemSeries.TooltipsAppearance.ClientTemplate = @"#= kendo.format(\'{0:" + LocalizeHelper.RoundDoubleDecimalsToString + @"}\', dataItem.QuoteDouble) #
                                <br/>
                                #= dataItem.QuoteDateTimeToString #";

                    minMaxLastSeries.TooltipsAppearance.ClientTemplate = @"#= kendo.format(\'{0:" + LocalizeHelper.RoundDoubleDecimalsToString + @"}\', dataItem.MinMaxLastQuoteDouble) #
                                <br/>
                                #= dataItem.QuoteDateTimeToString #";

minMaxLastSeries.LineAppearance.Width = 5;
            minMaxLastSeries.LabelsAppearance.Visible = true;
            minMaxLastSeries.LabelsAppearance.DataFormatString = LocalizeHelper.RoundDoubleDecimalsToString;
            minMaxLastSeries.MarkersAppearance.Visible = true;
            minMaxLastSeries.MarkersAppearance.Size = 14;
            minMaxLastSeries.MarkersAppearance.BackgroundColor = Color.Teal;
            minMaxLastSeries.TooltipsAppearance.DataFormatString = LocalizeHelper.RoundDoubleDecimalsToString;
            minMaxLastSeries.MissingValues = MissingValuesBehavior.Gap;
            

            LineSeries averageQuoteSeries = new LineSeries { DataFieldY = "AverageValue", Name = averageValueTitle };
            averageQuoteSeries.LineAppearance.Width = 3;
            averageQuoteSeries.LabelsAppearance.Visible = false;
            averageQuoteSeries.LabelsAppearance.DataFormatString = LocalizeHelper.RoundDoubleDecimalsToString;
            averageQuoteSeries.Appearance.FillStyle.BackgroundColor = Color.FromArgb(250, 152, 25);
            averageQuoteSeries.MarkersAppearance.Visible = false;
            averageQuoteSeries.TooltipsAppearance.DataFormatString = LocalizeHelper.RoundDoubleDecimalsToString;

            itemSeries.MissingValues = MissingValuesBehavior.Interpolate;

            chart.PlotArea.Series.Add(itemSeries);
            chart.PlotArea.Series.Add(averageQuoteSeries);
            chart.PlotArea.Series.Add(minMaxLastSeries);

Danail Vasilev
Telerik team
 answered on 12 Jan 2016
1 answer
75 views

Hi, this is Ankur and i have some query in binding  RadScheduler  cells. Actually,  I am facing a issue on binding RadScheduler month view each cell with some enteries which are coming from database.

I had attached an image in which, cells in scheduler with blue circles which i had already bind but the circles in red are those cells which i have to bind.

So can you please short out my issue, that how should i bind scheduler all cells of current month with enteries which are coming from database.

Plamen
Telerik team
 answered on 12 Jan 2016
4 answers
520 views
I am trying to switch our use of jquery over to that bundled with telerik since they are now the same version. However, I'm having a problem getting jquery-ui to work with it. I'm using jquery-ui to create a dialog, and it doesn't appear to work. Expanding the $telerik.$, I don't see a .dialog method on it.

I have the script references in our master page, as

</head>
<body>
<form id="form1" runat="server">
 
<telerik:RadScriptManager runat="server" ID="rsmMaster" EnablePartialRendering="true" LoadScriptsBeforeUI="true" >
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
    </Scripts>
</telerik:RadScriptManager>

then in a user control, I have
<link rel="stylesheet" type="text/css" href="/Styles/jquery-ui-1.9.1.min.css"/>
<script type="text/javascript" src="/Scripts/static/jquery-ui-1.9.1.min.js"></script>

When I view the page source, I see the same order as this, the
<script src="/WebResource.axd?d=DuSlCKW6NVW_IvooK_ULRkGrkaQk8B9YO8dMFExK7Zd9u8awk2PNvZljNscyGZmt29aEjTONftL-RFMNd5YH_LVuLwJPS8p7Ny3IB93VcfM1&t=634970873020000000" type="text/javascript"></script>
is far above the jquery-ui lines.

Any thoughts
Danail Vasilev
Telerik team
 answered on 12 Jan 2016
1 answer
129 views

Hi,

I am using RadFileExplorer in order to render files in specifed location.Now I need two more option: 

1. A search box on top where the user could type in a file's name and it could filter the grid to show the file name.

2. The properties of the files to be shown in the grid - created date, last modified, etc.
I would also look at creating a right-click view properties screen for checking out the various properties of a file.
Verison, size on disk, total size, created on, modified on, etc. === just like in Windows

DLL version I am using is 2014.2.618.40

 Any body can help me in this.

 

Vessy
Telerik team
 answered on 11 Jan 2016
2 answers
121 views

Hi,

 I m Using radwindowsmanager for displaying an edit window for Items in a radgrid 

when displayng it for the top items in the grid it's displayed very well when the items list in the grid exceeds the page boundaries and needs to scroll 

the edit window is displayed in the bottom of the page and the form for edit is not fully displayed although i force it to be maximized in show 

I need to display it from position 0 of the explorer 

 

thenks

Samir
Top achievements
Rank 1
 answered on 11 Jan 2016
3 answers
270 views

I have a page with 6 tabs.  In each tab is a RadGrid with a ContextMenu. 

I am enabling keyboard support for the page and successfully have the context menus opening with hotkey (Shift+F10) by capturing onkeydown in RadGrids.

But how do I detect (when menu is open) that the escape key has been pressed so I can call menu.close();

I tried attaching an onkeydown attribute handler to the menu but that didn't work.

Thanks,

Sean

Ivan Danchev
Telerik team
 answered on 11 Jan 2016
4 answers
337 views

Hi,

My page has 10 tiles (4 square, 4 wide and 2 custom sized), I need to arrange the 4 square one below another and in the next column 4 wide one below another, followed by 2 custom tiles in the next column (layout attached). I am not able to position the square tiles one below another, and I read few posts which says that 2 square tiles act as one wide. Is there a way I can achieve the desired layout as shown in the attachment, please let me know.

Thanks,

Rajesh

Rajesh
Top achievements
Rank 1
 answered on 11 Jan 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?