Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
148 views
I am very green with using the Telerik Controls and AJAX as a whole.

I am taking over coding a Project that was first developed with Visual Studio 2003, .NET 1.1 and Rad Controls.

I am now trying to upgrade the whole Project to Visual Studio 2010, .NET 4.5 and the Latest Telerik Web UI Controls (2014.1 225).

Everything seems to be working ok now but I have this error in IE8

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)
Timestamp: Mon, 17 Mar 2014 12:05:26 UTC


Message: 'length' is null or not an object
Line: 1982
Char: 1
Code: 0
URI: http://localhost/PolsDev/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=EmployeeDetails1_ctlAjax_ScriptManager0_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac9cbdec3-c810-4e87-846c-fb25a7c08002%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.3.1324.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a597c6a37-3447-4509-ba46-0faaa25cf6f9%3a16e4e7cd%3aed16cbdc%3af7645509%3a88144a7a%3a24ee1bba%3af46195d3%3a2003d0b8%3a1e771326%3aaa288e2d.

The page seems to load but at the bottom is this error.

Any help is appreciated.


























Angel Petrov
Telerik team
 answered on 24 Mar 2014
3 answers
801 views

What I am trying to do is set the color of the inside of the radwindow.  The skin I have set as Web20, but for what resides on the inside of the radwindow i want the color to the antiqueWhite.  I have tried applying a css style but it does not take even if I put important.

<telerik:RadWindowManager ID="rwManager" runat="server" CenterIfModal="true" Modal="true" Animation="FlyIn" Behaviors="Close" Skin="Web20" VisibleStatusbar="false" >
                <Windows>
 
                    <telerik:RadWindow ID="rwdelete" runat="server" NavigateUrl="~/MAC/Delete.aspx" Width="600px" Height="300px" ShowContentDuringLoad="false" CssClass="rwDelete"></telerik:RadWindow>
 
                    <telerik:RadWindow ID="rwChange" runat="server" NavigateUrl="~/MAC/Change.aspx" Width="800px" Height="600px" ShowContentDuringLoad="false"></telerik:RadWindow>
                    <telerik:RadWindow ID="rwNew" runat="server" NavigateUrl="~/MAC/NewUser.aspx"></telerik:RadWindow>
                </Windows>
            </telerik:RadWindowManager>
 
 
.rwDelete {
    background-color:antiquewhite !important;
}


I applied to the div that sits on the inside of the window and this works but it does not fill the whole inside of the radwindow.














Princy
Top achievements
Rank 2
 answered on 24 Mar 2014
1 answer
318 views
I have two RadDateTimePickers and I want to set the value of one of the pickers equal to the other RadDateTimePicker any time the user changes the date (either by typing or using the calendar popup.   I was looking for an example of how do this but cannot figure it out.

Here is what I have...

<tr>
<td>
<asp:Label ID="Label2" runat="server" Text="Start Time:"></asp:Label>
</td>
<td>
<telerik:RadDateTimePicker ID="dtStart" runat="server" Width="200px">
<Calendar>
<ClientEvents OnDateClick="StartDateClick" />

</Calendar>
</telerik:RadDateTimePicker>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Visible="true" ErrorMessage="Start Time is required." Display="Dynamic" Text="*" ControlToValidate="dtStart"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label3" runat="server" Text="End Time:"></asp:Label>
</td>
<td>
<telerik:RadDateTimePicker ID="dtEnd" runat="server" Width="200px"></telerik:RadDateTimePicker>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Visible="true" ErrorMessage="End Time is required." Display="Dynamic" Text="*" ControlToValidate="dtEnd"></asp:RequiredFieldValidator>
<asp:CustomValidator ID="cvDateRange" runat="server" Visible="true" Text="*" ErrorMessage="Events cannot span multiple days. Starting and Ending dates must be the same." OnServerValidate="ServerValidation"></asp:CustomValidator>
</td>
</tr>

​ function StartDateClick(sender, eventArgs) {
                   var day = sender.get_selectedDate();
                   var endDate = $find("<%= dtEnd.ClientID %>");
                    endDate.set_selectedDate(day);
}
Princy
Top achievements
Rank 2
 answered on 24 Mar 2014
4 answers
274 views
I have browsed over similar posts, but cannot find a solution.  Here is my request:

Simple Part
I have a client login page
I have a textbox for a username and one for password
In the username the .text value is "Enter your 8 digit Account #"
In the password the .text value is "Enter your Password"

Dificult Part
When the user gives focus to the password textbox I want the .text="" and the .textmode="password"

This is giving me fits.

The control has the property of EmptyMessage which is nice, it would be nice if that would display even if the Textmode was set to password.  I understand not allowing the password to be compromised, but this is a diferent situation being a login screen.

Any help would be appreciated!

John
nissim
Top achievements
Rank 1
 answered on 24 Mar 2014
4 answers
333 views
hello friends,

is there any way to increase the size of the footer text for the same 
do not break the line? Something similar to colspan attribute of html ... 

Thank you!

Code:

<telerik:RadGrid ID="rgTeste" runat="server" AutoGenerateColumns="false" ShowFooter="true"
        AllowPaging="true" PageSize="10" AllowSorting="true" AllowFilteringByColumn="False"
        EnableTheming="false" Width="99.7%" OnNeedDataSource="rgTeste_NeedDataSource" 
        OnSelectedIndexChanged="rgPedidosPessoa_SelectedIndexChanged" OnItemDataBound="rgTeste_ItemDataBound">
        <ClientSettings AllowGroupExpandCollapse="false" ReorderColumnsOnClient="false" AllowDragToGroup="false"
                        AllowColumnsReorder="false" EnablePostBackOnRowClick="true"  >
            <Selecting AllowRowSelect="true" />

            <ClientEvents OnRowContextMenu="RowContextMenuRgPedidosPessoa" />
        </ClientSettings>
        <MasterTableView AutoGenerateColumns="false" NoMasterRecordsText="Sem informações."
            Width="100%" TableLayout="Fixed" DataKeyNames="codigoPessoa,nome">
            <Columns>                  
               <telerik:GridBoundColumn DataField="quantidade" HeaderText="Qtde" HeaderStyle-Width="6%" Aggregate="Sum" 
               FooterText="Total: " HeaderTooltip="Quantidade">//                    
               </telerik:GridBoundColumn>
               <telerik:GridBoundColumn DataField="adress" HeaderText="Código SG." HeaderStyle-Width="10%" HeaderTooltip="Código sistema gestão"/>               
               <telerik:GridBoundColumn DataField="total" HeaderText="Total" HeaderStyle-Width="10%" DataFormatString="{0:N}" Aggregate="Sum" 
               FooterAggregateFormatString="Total: {0:N}" FooterStyle-Width="400px"/>//                                                            
            </Columns>                                    
        </MasterTableView>        
</telerik:RadGrid>
Viktor Tachev
Telerik team
 answered on 24 Mar 2014
1 answer
64 views
I have a RadGrid with a Details Table that is using a RadComboBox in the FilterTemplate.  The RadComboBox get populated correctly and it works correctly filtering one Details Table.  

<telerik:GridTemplateColumn HeaderText="State" SortExpression="State_cd" UniqueName="State_cd" ShowFilterIcon="True"
     DataField="State_cd" CurrentFilterFunction="EqualTo" AutoPostBackOnFilter="True" >
    <ItemTemplate>
        <asp:Label runat="server" ID="lblState" Text='<%# Eval("State_cd") %>'></asp:Label>
    </ItemTemplate>
 
    <FilterTemplate>
        <telerik:RadComboBox runat="server" ID="rcbState" DataTextField="State_cd" DataValueField="State_cd" AppendDataBoundItems="true"
            RenderingMode="Simple" EnableEmbeddedSkins="False" Skin="2015"
            SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("State_cd").CurrentFilterValue %>'
            OnClientSelectedIndexChanged="State_Changed" OnInit="rcbState_Init">
            <Items>
                <telerik:RadComboBoxItem Text="All" />
            </Items>
        </telerik:RadComboBox>
        <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
            <script type="text/javascript">
                function State_Changed(sender, args) {
                    var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                    var strState = args.get_item().get_value();
                    tableView.filter("State_cd", strState, "EqualTo");
                }
            </script>
        </telerik:RadScriptBlock>
    </FilterTemplate>                   
</telerik:GridTemplateColumn>
 

But as soon as I set that one filter and go to expand a different Details Table, I'm getting an error.

Selection out of range
Parameter name: value Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Selection out of range
Parameter name: value

I'm going to guess that is because I am attempting to populate the RadComboBox uniquely for each Details Table so that it only contains values in the data source for that Details Table.  Is what I'm trying to achieve possible?  Or does the datasource for the RadComboBox  filter need to be the same in all the Details Tables.
Eyup
Telerik team
 answered on 24 Mar 2014
8 answers
154 views
I have a radgrid displaying user records and an hyperlink . on the click of the hyperlink I want to open up a radwindow which navigates to edituserpermissions page using the userID as a querystring. How can i achieve this. Any help please
Edd
Top achievements
Rank 1
 answered on 24 Mar 2014
2 answers
598 views
hi

what is the correct way to update the RadTextBox value in jquery?
when one field is updated, i need to update another RadTextBox.
the code bellow seems to update the text box but when i click inside the text box the field becomes empty, and when submitting it it's empty as well.
what am doing wrong?

   <telerik:RadTextBox ID="txtName" runat="server" Height="24px" ClientEvents-OnBlur="txtName_Blur">
   </telerik:RadTextBox>
   <telerik:RadTextBox ID="txtProductSiteNumber" runat="server" Height="24px">
   </telerik:RadTextBox>

        function txtName_Blur(sender, eventArgs)
        {
                var productName = sender.get_value();
                var txtProductSiteNumber = "";
                var txtProductSiteNumber = $telerik.$("#ctl00_ContentPlaceHolder1_txtProductSiteNumber").val();

                 $telerik.$("#ctl00_ContentPlaceHolder1_txtProductSiteNumber").val(productName);
                 $telerik.$("#ctl00_ContentPlaceHolder1_txtProductSiteNumber_text").val(productName);
        }

10x
lina
Lina
Top achievements
Rank 1
 answered on 24 Mar 2014
1 answer
184 views
Do we have client side equivalent of RADGrid's PageIndexChanged event?

Thanks
Eyup
Telerik team
 answered on 24 Mar 2014
1 answer
176 views
Hi,
 I am displaying a Code11 barcode with the Text . On decreasing the ShortLinesLengthPercentage, I recently found the text got very far from the barcode. I want to control position of text How can I fix this?
Thanks
Angel Petrov
Telerik team
 answered on 24 Mar 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?