Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
698 views
I have a repeater with a textbox (TextBox1) and a label in each item. I added a TextChanged event handler to the textbox and set autopostback to true. I want to change the value of the label based on what's typed into the textbox. I also have a textbox outside the repeater (TextBox2) that should also change the value in the label inside the repeater.

I used a RadAjaxManger control and told it that TextBox2 should update the repeater and it works perfectly.

The issue is that TextBox1 (the one inside the repeater) always does a full postback when I don't want it to. I tried using the RadAjaxManager and setting the repeater able to update the repeater and I tried programatically adding the specific textbox and label to the RadAjaxManager in the handler for the repeater's ItemDataBound event and I tried wrapping the entire repeater in a RadAjaxPanel all to no avail.

On another page I have a dropdownlist in a repeater that works perfectly, but this textbox just won't cooperate.

Any suggestions would be great, thanks!
Angel Petrov
Telerik team
 answered on 14 Apr 2014
3 answers
213 views
So I have several RadComboBoxes in my site that work perfectly fine in IE on the desktop, Chrome on the desktop, etc. ... but when I test them on an iOS device or Windows Phone (possibly Android, too ... haven't had a chance to test yet) they appear to render as native dropdown controls, but they don't have any data in them.

I'm defining RenderMode in the web.config as "Auto":

<add key="Telerik.Web.UI.RenderMode" value="Auto" />

Here's the definition of one of the comboboxes:

<telerik:RadComboBox ID="ddlUserGroups" Width="200px" MaxHeight="300px"
    DataValueField="UserPermissionGroupID" DataTextField="Name" runat="server"
    EnableEmbeddedSkins="false" AllowCustomText="false" MarkFirstMatch="true">
</telerik:RadComboBox>

I'm then databinding from code behind.

Any help would be appreciated.


George
Dimitar
Telerik team
 answered on 14 Apr 2014
1 answer
116 views

Hello Guys,
Recently i faced the issue with telerik control , my published application was working fine, when i publish the new application , i found UI was not getting load properly, there was also issue coming, tabs images were not showing and there was log getting write in application

Error Log
This is an invalid webresource request. at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)

at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Aneliya Petkova
Telerik team
 answered on 14 Apr 2014
2 answers
443 views
Asp.net Ajax in an asp page, I am on Q1 2014 update.
I have this page with a radpicker in the editForm template (radDatePicker1):
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="members_Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
    </style>
</head>
<body>
 
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
            </Scripts>
        </telerik:RadScriptManager>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:WTAConnectionString %>" DeleteCommand="DELETE FROM [Tempi] WHERE [Id] = @Id" InsertCommand="INSERT INTO [Tempi] ([Date], [Pnum], [WorkedTime], [Note], [Week], [hours], [minutes]) VALUES (@Date, @Pnum, @WorkedTime, @Note, @Week, @hours, @minutes)" SelectCommand="SELECT * FROM [Tempi]" UpdateCommand="UPDATE [Tempi] SET [Date] = @Date, [Pnum] = @Pnum, [WorkedTime] = @WorkedTime, [Note] = @Note, [Week] = @Week, [hours] = @hours, [minutes] = @minutes WHERE [Id] = @Id">
            <DeleteParameters>
                <asp:Parameter Name="Id" Type="Int32" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter DbType="Date" Name="Date" />
                <asp:Parameter Name="Pnum" Type="String" />
                <asp:Parameter DbType="Time" Name="WorkedTime" />
                <asp:Parameter Name="Note" Type="String" />
                <asp:Parameter Name="Week" Type="String" />
                <asp:Parameter Name="hours" Type="Int32" />
                <asp:Parameter Name="minutes" Type="Int32" />
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter DbType="Date" Name="Date" />
                <asp:Parameter Name="Pnum" Type="String" />
                <asp:Parameter DbType="Time" Name="WorkedTime" />
                <asp:Parameter Name="Note" Type="String" />
                <asp:Parameter Name="Week" Type="String" />
                <asp:Parameter Name="hours" Type="Int32" />
                <asp:Parameter Name="minutes" Type="Int32" />
                <asp:Parameter Name="Id" Type="Int32" />
            </UpdateParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:WTAConnectionString %>" SelectCommand="SELECT [Pnum] FROM [Pnum]"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:WTAConnectionString %>" SelectCommand="SELECT [minutes] FROM [helper]"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:WTAConnectionString %>" SelectCommand="SELECT [hours] FROM [helper]"></asp:SqlDataSource>
        <link href="../css/StyleSheet.css" rel="stylesheet" />
        <div>
            Time Management - Registered Users
        </div>
        <table class="auto-style1">
            <tr>
                <td class="left"></td>
                <td class="center"></td>
                <td class="right"></td>
            </tr>
            <tr>
                <td></td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td> </td>
                <td>
                    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" Culture="it-IT" DataSourceID="SqlDataSource1" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowPaging="True" Skin="Outlook" CellSpacing="-1" GridLines="Both">
                        <ExportSettings>
                            <Pdf PageWidth="">
                            </Pdf>
                        </ExportSettings>
                        <ClientSettings>
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                        </ClientSettings>
                        <MasterTableView DataKeyNames="Id" DataSourceID="SqlDataSource1" CommandItemDisplay="Top">
                            <RowIndicatorColumn Visible="False">
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Created="True">
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton">
                                    <HeaderStyle Width="35px" />
                                </telerik:GridEditCommandColumn>
                                <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" FilterControlAltText="Filter Id column" HeaderText="Id" ReadOnly="True" SortExpression="Id" UniqueName="Id">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="60px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="Date" DataType="System.DateTime" FilterControlAltText="Filter Date column" HeaderText="Date" SortExpression="Date" UniqueName="Date" DataFormatString="{0:dd/MM/yyyy}">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="80px" />
                                </telerik:GridDateTimeColumn>
                                <telerik:GridDropDownColumn DataField="Pnum" DataSourceID="SqlDataSource2" ListTextField="Pnum" ListValueField="Pnum" FilterControlAltText="Filter column column" UniqueName="column" HeaderText="P-Number">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="80px" />
                                </telerik:GridDropDownColumn>
                                <telerik:GridBoundColumn DataField="WorkedTime" DataType="System.TimeSpan" FilterControlAltText="Filter WorkedTime column" HeaderText="Worked Time" SortExpression="WorkedTime" UniqueName="WorkedTime">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="90px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Week" FilterControlAltText="Filter Week column" HeaderText="Week" SortExpression="Week" UniqueName="Week">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="60px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridDropDownColumn DataField="minutes" DataSourceID="SqlDataSource3" ListTextField="minutes" ListValueField="minutes" FilterControlAltText="Filter minutes column" UniqueName="minutes" HeaderText="Minutes" DataType="System.Int16">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="80px" />
                                </telerik:GridDropDownColumn>
                                <telerik:GridDropDownColumn DataField="hours" DataSourceID="SqlDataSource4" ListTextField="hours" ListValueField="hours" FilterControlAltText="Filter hours column" UniqueName="hours" HeaderText="Hours" DataType="System.Int16">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                    <HeaderStyle Width="80px" />
                                </telerik:GridDropDownColumn>
                                <telerik:GridBoundColumn DataField="Note" FilterControlAltText="Filter Note column" HeaderText="Note" SortExpression="Note" UniqueName="Note">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                </telerik:GridBoundColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" Text="Delete" CommandName="Delete" FilterControlAltText="Filter column1 column" ConfirmDialogType="RadWindow" ConfirmText="Do you really want to delete this project and all its content?" UniqueName="column1">
                                    <HeaderStyle Width="30px" />
                                </telerik:GridButtonColumn>
                            </Columns>
                            <EditFormSettings EditFormType="Template">
                                <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"></EditColumn>
                                <FormTemplate>
                                    <table class="table">
                                        <tr>
                                            <td class="left"></td>
                                            <td class="center" colspan="2"></td>
                                            <td class="right"></td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td class="topBorder">
                                                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                                            </td>
                                            <td class="topBorder"> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td class="centerLeft">
                                                <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Culture="it-IT"  MaxDate="2020-12-31" MinDate="2013-01-01" Skin="Outlook" Calendar-CultureInfo="it-IT">
                                                    <Calendar UseRowHeadersAsSelectors="False" runat="server" UseColumnHeadersAsSelectors="False" EnableWeekends="True" Culture="it-IT" FastNavigationNextText="&lt;&lt;" Skin="Outlook"></Calendar>
 
                                                    <DateInput runat="server" DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" LabelWidth="40%">
                                                        <EmptyMessageStyle Resize="None"></EmptyMessageStyle>
 
                                                        <ReadOnlyStyle Resize="None"></ReadOnlyStyle>
 
                                                        <FocusedStyle Resize="None"></FocusedStyle>
 
                                                        <DisabledStyle Resize="None"></DisabledStyle>
 
                                                        <InvalidStyle Resize="None"></InvalidStyle>
 
                                                        <HoveredStyle Resize="None"></HoveredStyle>
 
                                                        <EnabledStyle Resize="None"></EnabledStyle>
                                                    </DateInput>
 
 
                                                </telerik:RadDatePicker>
                                            </td>
                                            <td class="centerRight">
                                                <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
                                            </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td> </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td >
                                                <telerik:RadDropDownList ID="RadDropDownList1" runat="server" Skin="Outlook">
                                                </telerik:RadDropDownList>
                                            </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td > </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td>
                                                <telerik:RadDropDownList ID="RadDropDownList2" runat="server" Skin="Outlook">
                                                </telerik:RadDropDownList>
                                            </td>
                                            <td >
                                                <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
                                            </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td> </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td>
                                                <telerik:RadDropDownList ID="RadDropDownList3" runat="server" Skin="Outlook">
                                                </telerik:RadDropDownList>
                                            </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td> </td>
                                            <td> </td>
                                            <td> </td>
                                        </tr>
                                        <tr>
                                            <td> </td>
                                            <td >
                                                <telerik:RadTextBox ID="RadTextBox1" runat="server" Height="45px" Width="100%" Skin="Outlook">
                                                </telerik:RadTextBox>
                                            </td>
                                            <td> </td>
                                        </tr>
                                    </table>
                                </FormTemplate>
 
 
 
                            </EditFormSettings>
                        </MasterTableView>
                    </telerik:RadGrid>
                </td>
                <td> </td>
            </tr>
            <tr>
                <td> </td>
                <td> </td>
                <td> </td>
            </tr>
            <tr>
                <td> </td>
                <td> </td>
                <td> </td>
            </tr>
        </table>
    </form>
</body>
</html>

I am trying to set today date as default using this code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
public partial class members_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        RadDatePicker1.SelectedDate = DateTime.Now.Date;   
   
    }
     
}
I get the error message "Unknown entity RadDatePicker1". So basically it is not reachable in code behind.
I saved, rebuild, rebooted, update, but the problem is still there. I can I solve this problem?
Felice
Top achievements
Rank 1
 answered on 14 Apr 2014
3 answers
86 views
I need to add RadAsyncUpload as an item to RadContextMenu, but it should not be a button, should be a regular text menu item....how can i do this? if not possible, is there a way i can force RadAsyncUpload client side, so that i can have RadAsyncUpload hidden on the page somewhere and i can force it in the OnClientItemClicked of the RadContextMenu??
Thanks
-Samir
Shinu
Top achievements
Rank 2
 answered on 14 Apr 2014
1 answer
154 views
Good morning,
I downloaded a latest Telerik.dll files(Q1 14 release)  into my Web application and when I am running application I received javascript error:
Object required                                                                                        Line:4597
Telerik.Web.UI.WebResource.axd                                                        Char:1
Code:0                                                   
URL:http://10.2.54.98/applications/eisportal/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_...

But I do have this in web config file in two places:


<httpHandlers>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
</httpHandlers>



<handlers>
<add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
</handlers>
Please help me with this issue.

Thanks so much
Danail Vasilev
Telerik team
 answered on 14 Apr 2014
1 answer
80 views
I'm using the radgrid client DataBinding odata data source.

add the filter like this.

var filterExpression = new Telerik.Web.UI.GridFilterExpression();
filterExpression.set_fieldName(dataField);
filterExpression.set_fieldValue(filterValue);
filterExpression.set_filterFunction(filterFunction);

grid.get_masterTableView()._filterExpressions.add(filterExpression);

but how to add OR filter ?


I want a filter in the GridView that is something like this:

ispay=0 AND (checklist eq 'CAS' OR checklist eq 'CUP')

but I'm only able to get:

ispay=0 AND checklist eq 'CAS' OR checklist eq 'CUP'
!!
help me
Antonio Stoilkov
Telerik team
 answered on 14 Apr 2014
1 answer
270 views
I have a GridTemplateColumn with a asp:ImageButton. I use it to go to another page and need to get with me the CommandArgument='<%# Container.DataItem("id") %>'

It works well, but have trouble with the CommandArgument when I try to insert a new record.
If i remove the CommandArgument='<%# Container.DataItem("id") %>' on insert it works fine. But if not, i have error:
System.MissingMemberException: No default member found for type 'GridInsertionObject'.

<telerik:GridTemplateColumn HeaderButtonType="TextButton" HeaderStyle-Width="30px">
   <ItemTemplate>
    <asp:ImageButton ID="imbEditDog" CommandArgument='<%# Container.DataItem("id") %>' ImageUrl="../../../picture/mini/edit.gif" ToolTip="Uppdatera" OnClick="EditHund" PostBackUrl="~/medlemsidor/minsida/hundar/editdog.aspx" BorderStyle="None" runat="server" />
   </ItemTemplate>
</telerik:GridTemplateColumn>

How do I get around the problem?
I have try with RadGrid1_ItemDataBound, but I get the error anyway.

If TypeOf e.Item Is GridDataInsertItem Or e.Item.IsInEditMode Then
    Dim editItem As GridEditableItem = DirectCast(e.Item, GridEditableItem)
    Dim imgButton As ImageButton = DirectCast(editItem.FindControl("imbEditDog"), ImageButton)
    imgButton.Enabled = False
End If




Jayesh Goyani
Top achievements
Rank 2
 answered on 14 Apr 2014
6 answers
338 views
hi
i need to access to the control in radlist view . i founde some examples in forum but none of them didn't solve my problem. or where in VB.NET and i couldn't understand.
so please tell me how can i access to controls and theire properties in itemtemplate.

<telerik:RadListView ID="RadListView1" runat="server" DataSourceID="SqlDataSource1"
    ItemPlaceholderID="ListViewContainer" Width="800px" Height="380px" 
AllowCustomPaging="True" AllowCustomSorting="True" AllowNaturalSort="True" 
AllowPaging="True" >
  
    <LayoutTemplate>
        <asp:PlaceHolder runat="server" id="ListViewContainer" />
          
    </LayoutTemplate>
      
    <ItemTemplate>
        <fieldset style="float: left; width: 350px; height: 150px;">
            <legend><b>نام فروشگاه :</b>:
                <%#Eval("ShopName")%></legend>
              
                     <table style="width:100%;height:100%;">
                        <tr>
                            <td><asp:Image runat="server" ID="Image1" ImageUrl='<%#Eval("imageURL") %>'
                        AutoAdjustImageControlSize="false" Width="90px" Height="110px" ToolTip='<%#Eval("ShopName") %>'
                        AlternateText='<%#Eval("ShopName") %>' />
                            </td>
                            <td>
                            <div style="width:100%;height:100%;">
                                <label>
                                جزئیات:</label>
                            <%#Eval("details")%>
                               <br />
                            <asp:Button ID="post" runat="server" Text="دیدن محصولات" PostBackUrl="~/Comidity.aspx" />
                            
                           <asp:Label ID="Label1" runat="server" Text='<%#Eval("ID") %>'></asp:Label>
                            </div>
                             
                            </td>                    
                        </tr>
                     </table>
                      
        </fieldset>
    </ItemTemplate>
</telerik:RadListView>

i want to access to Label1 and read it property.
i added all script manager and ajax manager and etc.

thank you.
Shinu
Top achievements
Rank 2
 answered on 14 Apr 2014
3 answers
238 views
 When combobox selectionindex changed(client side) any control enable /
disable that is work fine but when clicks on button and go to server
side then control is previous state not a selection changed state.



first rad textbox state is enable



ComboBox----> SelectionChanged ------>  rad textbox disable -----> fine

Button click event server side ----->   rad textbox state is enable that is wrong 
Shinu
Top achievements
Rank 2
 answered on 14 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?