Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views

When I apply filter on RCB:

 

  ProductCode.Filter = DirectCast(1, RadComboBoxFilter)

 

arrow becomes button:

Nencho
Telerik team
 answered on 28 Apr 2016
1 answer
102 views

Dear SIR

I have 2 questions on RadGrid edit template:

1)  When I added a DatetimePicker control, the Time can't be selected from time popup button. it always shows 0:00.  I found it seems not compatible with AjaxToolkit(V15)? is there any solution?

2) I'd like to activate the control change events, e.g. when I change start date time and end date time, I will calculate the time span to display. or I will set control value when an combobox selectedvalue is changed. How do I activate editor's control events?  

 

Thanks very much.

Eyup
Telerik team
 answered on 28 Apr 2016
6 answers
242 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
360 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
84 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
172 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
468 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
1.0K+ 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
148 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
110 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?