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

I am currently using version 2016.3.914.45 of ASP.Net Ajax control.

My grid is inside a page layout control.

The problem is that on my development machine a asp checkbox appears in the grid as expected. but when published

the checkbox does not appear on any browser I check with. if I place a letter "S" in the text portion of the checkbox I can

see the "S" and select the grid row with the "S" but I still see now checkbox.

 

if I place all the code inside a simple html page with no page layout the checkbox is displayed correctly.

 

Thanks for any help

Viktor Tachev
Telerik team
 answered on 13 Oct 2016
7 answers
262 views
I am trying to get the combobox to load on demand and be searchable but am having problems.  I have followed the demos but can get it to work.
Here is what I have.

Aspx page:

<telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="True" CollapseDelay="0"
                            ExpandDelay="0" Filter="StartsWith" ItemsPerRequest="10"
                            MarkFirstMatch="true" EnableAutomaticLoadOnDemand="True" EmptyMessage="-New Menu-"
                            ShowMoreResultsBox="True" EnableItemCaching="false" EnableLoadOnDemand="True" EnableVirtualScrolling="True">
                            <HeaderTemplate>
                                <table style="width: 275px" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 175px; height: 13px">Name
                                        </td>
                                        <td style="width: 60px; height: 13px">ID
                                        </td>
                                        <td style="width: 40px; height: 13px">Grade
                                        </td>
                                    </tr>
                                </table>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table style="width: 275px" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 175px;">
                                            <%# DataBinder.Eval(Container.DataItem, "FullName")%>
                                        </td>
                                        <td style="width: 60px;">
                                            <%# DataBinder.Eval(Container.DataItem, "StudentID")%>
                                        </td>
                                        <td style="width: 40px;">
                                            <%# DataBinder.Eval(Container.DataItem, "DisplayGrade")%>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </telerik:RadComboBox>

C# to bind
RadComboBox1.DataTextField = "FullName";
    RadComboBox1.DataValueField = "StudentID";
    RadComboBox1.DataSource = dt_students;
    RadComboBox1.DataBind();


I get this error when I click on it.
"There was an error in the callback.s[]_$$__$$__$$_False_$$_"

Any help would be great thank you.
Matt
Nencho
Telerik team
 answered on 13 Oct 2016
7 answers
288 views
how can i Cancel Drap & Drop in RadFileExplorer?
Vessy
Telerik team
 answered on 13 Oct 2016
5 answers
52 views
I have a RadListView control, which has a asp button in Itemtemplate to delete the Item . I have a requirement to make all my controls in page read only. Intially in Page_PreRender event i am traversing through the all controls and their child controls and disabling them. Everything is working as expected. But when i change page of RadListView The asp controls which i have disabled them earlier are again getting enabled. Is this expected behaviour with RadListView combining with RadPager. Below are the properties i have set.
<telerik:RadAjaxManagerProxy ID="ADCleintsRadAjaxManagerProxy" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ClientsRadAjaxPanel">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ClientsRadListView" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        </telerik:RadAjaxManagerProxy>
 
<telerik:RadAjaxPanel ID="ClientsRadAjaxPanel" runat="server"
              LoadingPanelID="RadAjaxALoadingPanel" ViewStateMode="Disabled">
 
            <telerik:RadListView ID="ClientsRadListView" runat="server"
                ItemPlaceholderID="DrugsContainer"
                AllowPaging="True" PageSize="4" DataSourceID="ClientsDataSource" 
                OnItemDataBound="ClientsRadListView_OnItemDataBound"
                ViewStateMode="Disabled" OnNeedDataSource="ClientsRadListView_OnNeedDataSource"  OnItemCreated="RadListView1_ItemCreated" >

 

 

I have checked the Button enable property in different events when i changed the page. Below are the sequence of page flow.
When i changed the RadListView page>
RadListView1_ItemCreated> Button.enabled property is true
PageLoad > Button.enabled property is true
Page_PreRender > first disabling all the form elements with a function > I found my Button enabled property is false here after disabling means my function is working fine.
RadListView1_ItemCreated> This event is fired again and my button.enabled is true here. Please can any one help me with this?

Kostadin
Telerik team
 answered on 13 Oct 2016
6 answers
1.1K+ views

I have an ASP.Net page with VB.net code-behind.

I have a number of telerik controls on the page like the RadMenu, RadButtons, RadTextBox, RadLabel, etc.

The page has a dark near black background.

I have just added the telerik RadioButtonList.  My default skin for all my ASP.Net pages is Office2007.

With the Office2007 skin, the text of the items in the RadioButtonList is Black.  I need the text of the items to be White.

How to override the forecolor of the text of the items without affecting the other telerik controls on the page?

 

Sincerely,

Keith Jackson

Loïc
Top achievements
Rank 1
 answered on 13 Oct 2016
1 answer
94 views

Im creating a treeview on client side and there is a requirement of adding multiple radio buttons columns dynamically.

How can I achieve adding multiple columns client side with proper alignment. I couldnt find any article showing how to add radio button columns.

 

 node = new Telerik.Web.UI.RadTreeNode();
                    node.set_text(msg.d[i].Text);
                    node.set_value(msg.d[i].ID);
                    var dataItem = msg.d[i];
                    node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.WebService);
                   objTree.get_nodes().add(node);

               
                 

Anton
Telerik team
 answered on 13 Oct 2016
9 answers
600 views
Hi Team,

In RadTreeView, I want to add an image at right side of the node text for all the nodes in Client- Side.

Description:
1. Dynamically, I am adding nodes in the client side and here I wanted to place an image at right side of the node text(find attached for how I wanted) and I tried with "farimage" property, Image index property as the value of "1" and tried with many ways. But, all are not working out.

In one way, I am able to achieve this, If I append an image with the text. But, I am getting an error ("A potentially dangerous Request.Form value was detected from the client ") while post occurs.

I would be helpful if you send me an example.
Plamen
Telerik team
 answered on 13 Oct 2016
1 answer
465 views

I have a radgrid defined which contains a GridCheckBoxColumn.  Our accessibility evaluation tool is complaining because the input (checkbox) does not have a label associated with it.  I have EnableAriaSupport set to true on the radgrid.  I currently have a work around, which applies an "aria-label" attribute to the input in the idem created event.  But I'm hoping you can provide a better solution.  I'm including the column definition and my work around code below.

                            <telerik:GridCheckBoxColumn 
                                UniqueName="Active"
                                DataField="Active" 
                                HeaderText="Active" 
                                AllowFiltering="false"
                                >
                            </telerik:GridCheckBoxColumn>

 

    Protected Sub grid_ItemCreated(sender As Object, e As GridItemEventArgs)
        If TypeOf e.Item Is GridDataItem Then
            Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)

            If TypeOf item("Active").Controls(0) Is CheckBox Then
                Dim Ctrl As CheckBox = DirectCast(item("Active").Controls(0), CheckBox)

                Ctrl.InputAttributes.Add("aria-label", "Active")
            End If

        End If
    End Sub

 

Kostadin
Telerik team
 answered on 12 Oct 2016
3 answers
178 views

I am using RadPanelBar throughout my site and it works fine.  But suddenly when I try to add another one on a user control, I get some weird behavior.  The expandmode I'm using on the site is MultipleExpandedItems and that's what I would like to use in this user control.  I've spent hours on this and have tried to approach it from different directions.  I'm finally at the point where I copied the demo from Telerik and still getting the weird results.  Here's my current test user control.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TestUserControl.ascx.cs" Inherits="UserControls.TestUserControl" %>
     <div>
        <telerik:RadPanelBar runat="server" ID="RadPanelBar1" ExpandMode="MultipleExpandedItems">
            <Items>
                <telerik:RadPanelItem Text="Panel 1">
                    <Items>
                        <telerik:RadPanelItem Text="Item 1" />
                        <telerik:RadPanelItem Text="Item 2" />
                        <telerik:RadPanelItem Text="Item 3" />
                    </Items>
                </telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Panel 2">
                    <Items>
                        <telerik:RadPanelItem Text="Item 4" />
                        <telerik:RadPanelItem Text="Item 5" />
                        <telerik:RadPanelItem Text="Item 6" />
                    </Items>
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelBar>
    </div>

The panels render as collapsed and when you click on them nothing happens.  However, when I change the ExpandMode to SingleExpandedItem then suddenly it works.  Why does it only work on SingleExpandedItem mode in my user control but not in MultipleExpandedItems mode?  And why does MultipleExpandedItems work everywhere else on my site?

Ivan Danchev
Telerik team
 answered on 12 Oct 2016
7 answers
143 views
I am looking to print a TreeList without having the dependency of Excel or PDF. Is there a method other than exporting the innerHTML onto a page and printing the new page?
Kostadin
Telerik team
 answered on 12 Oct 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?