Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
187 views

Any tips or directions on how i can make a cascading combobox filter for a nested table?

Currently i have a grid that has 2 tables (a parent and a child).

Eyup
Telerik team
 answered on 28 Apr 2016
1 answer
313 views

I have a RadHtmlChart on my page using the Bootstrap theme, as shown in the attached screenshot. I currently have the figures for the columns displaying, i.e. 1 and 2 in the columns Jan and Feb. Is it possible to high the figures when a 0 is returned, rather than displaying them on the x axis. But obviously keeping the values if they are greater than 0.

Also you will notice in the screenshot that when I hover over a bar, there is a tooltip displaying the data value. Is it also possible to disable these tooltips?

Stamo Gochev
Telerik team
 answered on 28 Apr 2016
2 answers
66 views

How do Telerik controls programmatically register their ScriptReferences with the ScriptManager? The only way I can seem to get it to work is by explicitly referencing the script in the ScriptManager like so:

<asp:ScriptManager runat="server" ID="ScriptManager1">
    <Scripts>
<asp:ScriptReference Assembly="Atl.Core.WebBase" Name="Atl.Core.Resources.Scripts.ScriptTest.js" />
</Scripts>
</asp:ScriptManager>

Vessy
Telerik team
 answered on 28 Apr 2016
2 answers
142 views

How do Telerik controls programmatically register their scripts with the ScriptManager? I have created a custom control and the only way I can get the scripts to register is by explicitly referencing the script in the page's markup.

<asp:ScriptManager runat="server" ID="ScriptManager1">
<Scripts>
<asp:ScriptReference Assembly="Core.WebBase" Name="Core.Resources.Scripts.ScriptTest.js" />
</Scripts>
</asp:ScriptManager>

But how to do this programmatically? I cannot expect my users to know to do this for every page they use the control on. I've used the ClientScript to do this like so: Page.ClientScript.RegisterClientScriptResource(typeof(ScriptTest), "Atl.Core.Resources.Scripts.ScriptTest.js"); but this does not work with asynchronous postbacks. Whats the trick? :)

Vessy
Telerik team
 answered on 28 Apr 2016
4 answers
425 views
I am binding a DataTable dynamically in code behind to a RadHtmlChart and adding ColumnSeries Objects to the PlotArea.  The code I'm executing looks like this:

SqlDataAdapter da = new SqlDataAdapter(sqlCommand);
                    da.Fill(pivotTable);

                    for (int i = 2; i < pivotTable.Columns.Count; i++ )
                    {
                        ColumnSeries cs = new ColumnSeries();
                        cs.DataFieldY = pivotTable.Columns[i].ColumnName;
                        cs.Name = pivotTable.Columns[i].ColumnName;
                        cs.Gap = 1.5;
                        cs.Spacing = 0.4;
                        cs.Stacked = true;
                        cs.LabelsAppearance.Position = Telerik.Web.UI.HtmlChart.BarColumnLabelsPosition.Center;
                        cs.TooltipsAppearance.Color = System.Drawing.Color.White;

                        GraphAvgWT.PlotArea.Series.Add(cs);
                    }

                    GraphAvgWT.DataSource = pivotTable;
                    GraphAvgWT.DataBind();

When I run this in any browser there is an exception thrown that looks like this:

Unhandled exception at line 869, column 1 in http://localhost:49573/ScriptResource.axd?d=WLmYcdOKb_LAUnVSHQHR_hSJ5_ioMpFtRv-OH10MfF6U9fb1aA_Wxx1ydL_Dzi9j6TRzmqrWagcWnKdo5Eq1K82yemCb8VeXhI_pB8YUERcZ9lmHzOgkSZqZJb4-cBN_QxRKGZb-mZqVdCLfssHYSg2&t=5ebf97e0

0x800a03ee - JavaScript runtime error: Expected ')'

As a result the chart does not contain any data, but the Legend shows all of the columns/series that I added.  I've also compared this code to the GroupDataSource example (http://www.telerik.com/support/code-library/group-radhtmlchart-data-source) and I'm adding the series by a similar manner and setting the same properties on the ColumnSeries Object.   

If I comment-out the line that reads "GraphAvgWT.PlotArea.Series.Add(cs);" the error goes away, but of course, there is no data in the chart.

Can you please help me resolve this issue?  Thanks.
Stamo Gochev
Telerik team
 answered on 28 Apr 2016
2 answers
967 views

Hi All

Am recently starting to work with Kendo Grid (i'm new to MVC) and had the following requirement.

1) A tool bar that contains the Save and Cancel Button, as well as a filter for months

So i did the following

.ToolBar(toolbar =>
        {
            toolbar.Save();
            toolbar.Template(@<text>
                <div class="toolbar">
                    <label class="fismonth-lable" for="fiscalmonth">Show fiscal months:</label>
                        @(Html.Kendo().DropDownList()
                            .Name("fiscalmonth")
                            .OptionLabel("All")
                            .AutoBind(false)
                            .Events(e => e.Change("fiscalmonthChange"))
                            .HtmlAttributes(new { style = "width:150px;" })
                            .DataSource(ds =>
                            {
                                ds.Read("Toolbar_FiscalMonth", "Home");
                            })
                        )
                </div>
        </text>);
        })

But only the dropdown showed up. Am i missing something?

 

Secondly, i have a Boolean column that i wish to be displayed and edited as a checkbox. This is what i did

columns.Bound(p => p.IsSelectedForValidation).Filterable(false).Title("").ClientTemplate("<input type='checkbox' #= IsSelectedForValidation? checked='checked' : '' #  id='#=ID#'></input>").Width(30);

It does show as a checkbox, and i can check and uncheck it, but the "real" editing will still take place as a dropdown of "true/false". Am i missing something?

 

Thank you so much for your kind help.

 

Regards,

Su Ming

Su Ming
Top achievements
Rank 1
 answered on 28 Apr 2016
2 answers
120 views

Hello,

please help me!

I need set the TextBox no-editable when the row is in EditMode but editable when iadd a new row

here it is a part of my code:

<telerik:GridTemplateColumn HeaderStyle-Width="150px" UniqueName="txtID" HeaderText="ID del Servicio">
                                <ItemTemplate>
                                    <%# Eval("IdServicio") %>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:TextBox runat="server" ID="textID" Text='<%# Eval("IdServicio") %>' width="145px" ReadOnly="true"/>
                                    <asp:RequiredFieldValidator runat="server" ControlToValidate="textID" />
                                    <asp:CompareValidator runat="server" ControlToValidate="textID" Operator="DataTypeCheck" Type="Integer" />
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>

Hansel Eduard
Top achievements
Rank 1
 answered on 28 Apr 2016
2 answers
82 views

some years ago I remember a handy "getting started" pdf that had walkthroughs of RadGrid development,specifically I recall master-detail development (hierarchy). Is that still available somewhere?

 

Incidently some of the demo links are broken - http://demos.telerik.com/aspnet-ajax/errorpageresources.aspx?aspxerrorpath=/aspnet-ajax/grid/examples/hierarchy/declarative-relations/defaultcs.aspx

 

 

Pavlina
Telerik team
 answered on 27 Apr 2016
1 answer
109 views

I am using the resource file to localize the Radfilter, everything is working except for the Preview Provider.    What is the Name of the Operator to use in the resource file if there is one.

French Preview :     (Prénom Égal à 'abc' AND Nom Égal à 'abc')

English Preview:      (Firstname Equal to 'abc' AND LastName Equal to 'abc')

 

Chi

 

 

 

Pavlina
Telerik team
 answered on 27 Apr 2016
3 answers
284 views
I am using the RadDateInput control.  If I key in a date such as, 2/33/2008, the date is highlighted in red.  How can I also display an error message?  I would like to use something like the ValidationSummary and RequiredFieldControl controls in ASP.Net.  Is there something similar in telerik or should I just go on and use the ASP.Net validation controls?

Thanks,
Bob
Viktor Tachev
Telerik team
 answered on 27 Apr 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?