Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
141 views
Hi,

I am trying to reset the value set in a combobox of a ComboBox used in a UserControl.

UserControl looks like that :

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserControl.ascx.cs" Inherits="UserControls.UserControl" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <telerik:RadComboBox ID="comboBox" runat="server" 
    EnableVirtualScrolling="false" EnableTextSelection="true" MaxHeight="250px" 
    AllowCustomText="False" MarkFirstMatch="false" ShowMoreResultsBox="true" 
    Filter="Contains" EnableLoadOnDemand="True" Sort="Ascending" Width="280px" 
    OnItemsRequested="comboBox_ItemsRequested" AutoPostBack="True" 
    OnSelectedIndexChanged="comboBox_SelectedIndexChanged" CausesValidation="false" 
    ZIndex="1000" ontextchanged="comboBox_TextChanged"></telerik:RadComboBox>
</span>


When I try to call the ClearSelection of the comboBox in default.aspx like that :

<html>
<body onload="Load()" >
<uc1:UserControl ID="cboComboBox" runat="server" Width="95%" MaxHeight="175px" />
</body>
</html>
<script type="text/javascript">
    function Load() {
        var cboComboBox= document.getElementById('<%=cboComboBox.FindControl("comboBox").ClientID%>');
        cboComboBox.clearSelection();
    }
</script>

I keep getting the error "Method undefined"

Any idea why ?

Thanks,

Guillaume


Shinu
Top achievements
Rank 2
 answered on 28 Jan 2014
1 answer
126 views
Hi,

I have added a GridTemplateColumn to display email address as follows
 <telerik:GridTemplateColumn HeaderText="Email Address" ItemStyle-Width="100px" FilterControlWidth="100px"
                                SortExpression="Email_Address" UniqueName="EmailAddress" ShowSortIcon="true" AllowFiltering="true">
                                <ItemTemplate>
                                    <a onclick="viewVirtualContact(<%#Eval("contact_id")%>,<%#Eval("isvirtualcontact")%>)">
                                        <%# Eval("Email_Address") %></a>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>

When I try to apply any filter, filteration does not work properly.
Please suggest on this.

Tnanks
Bharat Bhushna
Princy
Top achievements
Rank 2
 answered on 28 Jan 2014
1 answer
291 views
how to get the selected value of Drop down tree client said event [without check box and Auto post back]
Shinu
Top achievements
Rank 2
 answered on 28 Jan 2014
1 answer
155 views
I'm experiencing a problem where my code calls the rebind method, and this throws an exception for a reason I cannot figure out.

The exception it throws is: " System.Data.DataRowView' does not contain a property with the name 'post_flag' " It throws this error even when it does not delete the cell and simply rebinds it.

Here are the attributes of the grid:
            <telerik:RadGrid ID="_ExpGrid" runat="server" AllowPaging="True" PageSize="15" AutoGenerateColumns="false"
            Width="1700px" CellSpacing="4" Skin="Web20" OnItemCreated="_ExpGrid_ItemCreated" AllowSorting="true"
            OnDeleteCommand="_ExpGrid_DeletedCommand" OnPageIndexChanged="_ExpGrid_SelectedIndexChanged">

Here is the delete method:

if (IsPostBack)
                {
                    Service.ServiceClient client = new Service.ServiceClient(ConfigurationManager.AppSettings["ServiceBinding"]);

                    GridDataItem dataItem = (GridDataItem)e.Item;
                    int id = Convert.ToInt32(dataItem.GetDataKeyValue("Expense_ID"));
                    client.DeleteTrans(id);
                    _ExpGrid.Rebind();
                }

This is the line that throws an exception:
<asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Convert.ToBoolean(Eval("POST_FLAG")) %>' Enabled="false" />

      






John
Top achievements
Rank 1
 answered on 27 Jan 2014
3 answers
140 views
hi I have code like that


                    <telerik:RadButton ID="RadButton3" runat="server" GroupName="OverSampling"
                                           Text="" ButtonType="ToggleButton" ToggleType="Radio" Checked="false" AutoPostBack="false" >
                            <ToggleStates>
                                <telerik:RadButtonToggleState Text="Yes"  SecondaryIconUrl="images/radio6-on.png" />
                                <telerik:RadButtonToggleState Text="Yes" SecondaryIconUrl="images/radio6-off.png" />
                            </ToggleStates>
                        </telerik:RadButton>

                        <telerik:RadButton ID="RadButton4" runat="server" GroupName="OverSampling"
                                           Text="No" ButtonType="ToggleButton" ToggleType="Radio" AutoPostBack="false" >
                            <ToggleStates>
                                <telerik:RadButtonToggleState PrimaryIconUrl="images/radio6-on.png" />
                                <telerik:RadButtonToggleState PrimaryIconUrl="images/radio6-off.png" />
                            </ToggleStates>
                        </telerik:RadButton>

If I use PrimaryIconUrl, page doesn't show in my page. But if I use SecondaryIconUrl page show icon but right side. I want put icon left side of text but PrimaryIconUrl doesn't work. No image shown if I use PrimaryIconUrl.

How can I fix it?


Danail Vasilev
Telerik team
 answered on 27 Jan 2014
13 answers
212 views
Salam Dears,

I have create a scheduler control in a user control for sharpoint web part and every thing is fine but i cant dragging the apporintment to change the date or time of it any help please i have been searching on this issue sice 2 days with no success

thanx and regards.
Boyan Dimitrov
Telerik team
 answered on 27 Jan 2014
8 answers
165 views
Hi,

I have a ASP.NET page with a RadScheduler on it.
The page references a user control for the menu on the top of the page. The user control does not have an AjaxManager on it.

I have a RadAjaxManager on the main page.

When the page loads and you click on a calendar appointment the advancededitform appears correctly.
But if you try to cancel out of the AdvancedEditForm the LoadingPanel freezes. 

I have another page in the application that uses a RadScheduler and it works fine. But that page does not reference any user controls.

If I set EnableAjax=false for this RadAjaxManager everything works fine.

In the Chrome debugger I get his error while the loading panel is freezing.
Uncaught TypeError: Cannot read property 'parentNode' of undefined.

Any ideas what would cause this?

Thanks,

Kevin
Plamen
Telerik team
 answered on 27 Jan 2014
1 answer
53 views


When
I attempt to access the on-line demos for the various product located at
demos.telerik.com are either not responding at al and timeout or take a long
time to respond. In particular, the demo for the dock controls does not work at
all. I need to access this information as I am working on a project using this
control.



The same thing happens when I place a control on a page, right mouse click on the
control and attempt to navigate to the specific control demo. The information
in the demos is helpful (more that the help files) .



My customer ID is EU1330672.



Rick

Slav
Telerik team
 answered on 27 Jan 2014
3 answers
132 views

Hi.
I have radtreeview1 (CheckBoxes=true, CheckChildNodes=true, TriStateCheckBoxes=true) and  I am filtering an OpenAccessLinqDataSource with this radtreeview1.SelectedValue.

But there are multiple selected value of radtreeview and this give me an error.

How can i filter to OpenAccessLinqDataSource with control.SelectedValue (multiple value).

Error is something like that : system.web.query.dynamic.parseexception: '==' operator incompatible with operand types 'int32?' and 'object' .
Thanks.
Plamen
Telerik team
 answered on 27 Jan 2014
1 answer
103 views
Having issue with editor I need to remove the AboutEditor tool from that how to that in aspx or server side any suggestions plz


Regards 
Suman
Marin Bratanov
Telerik team
 answered on 27 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?