Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
115 views
Dear Sir or Madam,

I downloaded the current Telerik UI for ASP.NET AJAX  installer package (MSI)
from your website.
After finishing the installation I recognized that inside the target installation folder
there is no sub folder containing the demo solution / source codes.
(whereas e.g. in the MVC version it is available)

I furthermore found no download link to get the demo solution / source codes
independently. How to proceed now?

Thanks a lot and best wishes from Germany
Jens
Manjesh
Top achievements
Rank 1
 answered on 03 Nov 2014
5 answers
228 views
Hi,

I have 2 RadAutoCompleteBox and a button.

I want the button to be disabled until both RadAutoCompleteBox have 1 entry.
But I cannot seems to find how to do that.

Any help would be welcomed.
Mickael
Top achievements
Rank 1
 answered on 03 Nov 2014
2 answers
635 views
I do not want the row to be selected by clicking on it. I would like it to only be selected when the GridClientSelectColumn checkbox has been checked or unchecked. And is it possible to not highlight the row at all when it is selected?

<telerik:RadGrid ID="gridFundingBills" runat="server" Width="1100px" AllowMultiRowSelection="True"
                CssClass=" MyGridClass"
                AutoGenerateColumns="False"
                OnNeedDataSource="gridFundingBills_NeedDataSource"
                OnItemDataBound="gridFundingBills_ItemDataBound"
                 OnItemCreated="gridFundingBills_ItemCreated" >
                <MasterTableView DataKeyNames="FundingDtlID" EditMode="InPlace"
                    NoMasterRecordsText="There are no open funding bills at this time">
                    <Columns>
                        <telerik:GridBoundColumn DataField="CustomerNm" FilterControlAltText="Filter CustomerNm column" HeaderText="Property" SortExpression="CustomerNm" UniqueName="CustomerNm">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="VendorNm" FilterControlAltText="Filter VendorNm column" HeaderText="Vendor" SortExpression="VendorNm" UniqueName="VendorNm">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="BankAcct" FilterControlAltText="Filter BankAcct column" HeaderText="Bank" ReadOnly="True" SortExpression="BankAcct" UniqueName="BankAcct">
                        </telerik:GridBoundColumn>
                        <telerik:GridHyperLinkColumn UniqueName="BillNo" HeaderText="Bill Reference Number" DataTextField="BillNo" DataNavigateUrlFields="BillUrl" DataNavigateUrlFormatString="http://{0}" Target="_blank">
                        </telerik:GridHyperLinkColumn>
                        <telerik:GridBoundColumn DataField="BillURL" FilterControlAltText="Filter BillURL column" ReadOnly="True" SortExpression="BillURL" UniqueName="BillURL" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="BillPeriod" FilterControlAltText="Filter BillPeriod column" HeaderText="Bill Period" ReadOnly="True" SortExpression="BillPeriod" UniqueName="BillPeriod" ItemStyle-Width="150px" HeaderStyle-Width="150px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="DueDt" DataType="System.DateTime" FilterControlAltText="Filter DueDt column" HeaderText="Due Date" SortExpression="DueDt" UniqueName="DueDt" DataFormatString="{0:d}" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="TotalAmt" DataType="System.Decimal" FilterControlAltText="Filter TotalAmt column" HeaderText="TotalAmt" SortExpression="Total Due" UniqueName="TotalAmt" DataFormatString="{0:F}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="RemainingAmt" DataType="System.Decimal" FilterControlAltText="Filter RemainingAmt column" HeaderText="Remaining Balance" ReadOnly="True" SortExpression="RemainingAmt" UniqueName="RemainingAmt" DataFormatString="{0:F}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" HeaderStyle-Width="75px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="FundingDtlID" DataType="System.Guid" FilterControlAltText="Filter FundingDtlID column" HeaderText="FundingDtlID" ReadOnly="True" SortExpression="FundingDtlID" UniqueName="FundingDtlID" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SourceBankAcctID" DataType="System.Guid" FilterControlAltText="Filter BankAcctID column" HeaderText="BankAcctID" ReadOnly="True" SortExpression="BankAcctID" UniqueName="BankAcctID" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn HeaderText="Amount Approved" UniqueName="AmtApproved" HeaderStyle-Width="55px"
                            ItemStyle-Width="55px" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">
                            <ItemTemplate>
                                <asp:TextBox ID="AmountApproved" runat="server" Width="55px" OnTextChanged="AmountApproved_TextChanged"
                                    AutoPostBack="true" CssClass="numericAlign"></asp:TextBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">
                        </telerik:GridClientSelectColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings AllowKeyboardNavigation="true" EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
                    <ClientEvents OnRowSelected="handleTextBoxValue" OnRowDeselected="handleTextBoxValue" OnActiveRowChanged="sumAmtApproved" />
                    <Selecting AllowRowSelect="true" />
                </ClientSettings>
            </telerik:RadGrid>
Thomas Derenthal
Top achievements
Rank 1
 answered on 03 Nov 2014
1 answer
273 views
I'm new to Telerik.  I'm jumping into an existing project and trying to figure stuff out.  The first problem I'm having is that the project is trying to run on port 80.  I can't even debug.  On a typical ".net Web Forms" project, I can right-click, go to properties, web, and change the port.  No such dialog to be found on this project.

Does anyone know how I can change the port?
Marin Bratanov
Telerik team
 answered on 03 Nov 2014
5 answers
217 views

Telerik,

I found a bug while using RadGrid client side binding.

I heva a scenario as below. Please note the attributes PageSize="10" and ItemStyle-CssClass= "fId" and "fName". When I run the page with no change of the PageSize, there is everything OK, but if the PageSize changes to the higher number, the rows following the row number 10, have no class "fId" and "fName".

There is any workaround to fix his problem? Well, one would be with jQuerry to set the classes according to the column position, but I think the better solution would be to properly set some RadGrid inner state that does not properly change when PageSize changes.

I am using “Telerik RadControls for ASP.NET Ajax” version “2011.2.712.35” with DNN 6.0.2.

Thanks,

Kristijan 

<telerik:RadGrid ID="rgvMain" runat="server" Height="850px" OnItemCreated="rgvMain_ItemCreated"
     CssClass="fMainGrid" AllowPaging="True" PageSize="10" EnableLinqExpressions="false">
     <MasterTableView DataKeyNames="Id" AutoGenerateColumns="false" AllowFilteringByColumn="True"
         AllowSorting="True" TableLayout="Auto" CssClass="fSelectable fMainTable" OverrideDataSourceControlSorting="true"
         CommandItemDisplay="Top">
         <CommandItemTemplate>
             <telerik:RadButton ID="btnAdd" runat="server" AutoPostBack="false" OnClientClicked="LoadNewElement"
                 CausesValidation="false">
                 <Icon PrimaryIconUrl="~/images/Add.gif" PrimaryIconLeft="5px" />
             </telerik:RadButton>
             <telerik:RadButton ID="btnImport" runat="server" AutoPostBack="false" OnClientClicked="ImportCompanies"
                 CausesValidation="false">
                 <Icon PrimaryIconUrl="~/DesktopModules/VipCrm/Images/import.png" PrimaryIconLeft="5px" />
             </telerik:RadButton>
             <telerik:RadButton ID="btnDelete" runat="server" AutoPostBack="false" CausesValidation="false"
                 Enabled="false" CssClass="fEnable" OnClientClicking="DeleteCompany">
                 <Icon PrimaryIconUrl="~/images/delete.gif" PrimaryIconLeft="5px" />
             </telerik:RadButton>
             <telerik:RadButton ID="btnNewPerson" runat="server" AutoPostBack="false" CssClass="fEnable"
                 Enabled="false" OnClientClicked="NewPerson" CausesValidation="false">
                 <Icon PrimaryIconUrl="~/DesktopModules/VipCrm/Images/add_person.png" PrimaryIconLeft="5px" />
             </telerik:RadButton>
             <telerik:RadButton ID="btnNewCall" runat="server" AutoPostBack="false" CssClass="fEnable"
                 Enabled="false" OnClientClicked="NewPhoneCallEmbedded" CausesValidation="false">
                 <Icon PrimaryIconUrl="~/DesktopModules/VipCrm/Images/Telephone.png" PrimaryIconLeft="5px" />
             </telerik:RadButton>
             <telerik:RadButton ID="btnNewOpportunity" runat="server" AutoPostBack="false" CssClass="fEnable"
                 Enabled="false" OnClientClicked="NewOpportunityEmbedded" CausesValidation="false">
                 <Icon PrimaryIconUrl="~/DesktopModules/VipCrm/Images/AddMoney.png" PrimaryIconLeft="5px" />
             </telerik:RadButton>
         </CommandItemTemplate>
         <Columns>
             <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" ItemStyle-CssClass="fId"
                 SortExpression="Id" UniqueName="Id" />
             <telerik:GridBoundColumn DataField="ShortName" HeaderText="ShortName" ItemStyle-CssClass="fName"
                 SortExpression="ShortName" DataType="System.String" UniqueName="ShortName" CurrentFilterFunction="StartsWith"
                 AutoPostBackOnFilter="true" FilterDelay="701" ShowFilterIcon="true" FilterListOptions="VaryByDataType" />
             <telerik:GridCheckBoxColumn DataField="IsCustomer" UniqueName="IsCustomer" SortExpression="IsCustomer"
                 AutoPostBackOnFilter="true" FilterDelay="701" ShowFilterIcon="false" DataType="System.String">
                 <FilterTemplate>
                     <telerik:RadComboBox ID="rcbIsCustomer" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("IsCustomer").CurrentFilterValue %>'
                         runat="server" OnClientSelectedIndexChanged="IsCustomerChanged" Width="70px">
                     </telerik:RadComboBox>
                     <telerik:RadScriptBlock ID="rsbIsCustomer" runat="server">
                         <script type="text/javascript">
                             function IsCustomerChanged(sender, args) {
                                 $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>").filter("IsCustomer", args.get_item().get_value(), "EqualTo");
                             }
                         </script>
                     </telerik:RadScriptBlock>
                 </FilterTemplate>
             </telerik:GridCheckBoxColumn>
             <telerik:GridBoundColumn DataField="Address" HeaderText="Address" SortExpression="Address"
                 UniqueName="Address" CurrentFilterFunction="StartsWith" ShowFilterIcon="true" FilterListOptions="VaryByDataType"
                 AutoPostBackOnFilter="true" FilterDelay="701" DataType="System.String" />
             <telerik:GridBoundColumn DataField="PostTown" HeaderText="PostTown" SortExpression="PostTown"
                 UniqueName="PostTown" CurrentFilterFunction="StartsWith" AutoPostBackOnFilter="true"
                 FilterDelay="701" ShowFilterIcon="false" DataType="System.String" />
         </Columns>
     </MasterTableView>
     <FilterMenu EnableImageSprites="False" />
     <ClientSettings>
         <DataBinding Location="~/DesktopModules/MyModule/WsiEntriesTbl.asmx" SelectMethod="GetCompaniesData"
             SelectCountMethod="GetCompaniesCount" />
         <ClientEvents OnDataBinding="rgvMainDataBinding" OnDataBound="rgvMainDataBound" OnDataBindingFailed="DataBindingFailed" />
         <Resizing AllowColumnResize="true" />
         <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
         <Scrolling AllowScroll="true" UseStaticHeaders="true" />
     </ClientSettings>
     <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
 </telerik:RadGrid>


Milena
Telerik team
 answered on 03 Nov 2014
2 answers
115 views
I have a mix of Rad controls and asp controls inside a RadPanelBar with template in an item. My problem is that the skinned Rad Controls have more space around them than the asp controls causing a misalignment when side by side. I have tried a bunch of things to correct this but no joy. Here is the markup:

<tr>
<td>
<table cellpadding="0" cellspacing="0">
<tr>
<td style="padding-right:12px">
<label id="lblDriversLicenseNumber" runat="server" meta:resourcekey="lblDriversLicenseNumberResource1" class="LabelText" >Drivers License/ID Number:</label>
<label id="lblDriversLicenseNumberReq" runat="server" class="ReqIndicator">*</label>
<asp:RequiredFieldValidator ID="rfvDriversLicenseNumber" runat="server" Display="Dynamic" CssClass="ValidationText" ValidationGroup="A"
ControlToValidate="txtDriversLicenseNumber" ErrorMessage="Required"
meta:resourcekey="rfvResource1"></asp:RequiredFieldValidator><br />
<asp:TextBox ID="txtDriversLicenseNumber" runat="server" Width="210px" MaxLength="25"></asp:TextBox>
</td>
<td style="padding-right:12px">
<label id="lblDriversLicenseState" runat="server" meta:resourcekey="lblDriversLicenseStateResource1" class="LabelText" >State:</label>
<label id="lblDriversLicenseStateReq" runat="server" class="ReqIndicator">*</label>
<asp:RequiredFieldValidator ID="rfvDriversLicenseState" runat="server" Display="Dynamic" CssClass="ValidationText" ValidationGroup="A"
ControlToValidate="ddlDriversLicenseState" ErrorMessage="Reqd" InitialValue="--"
meta:resourcekey="rfvResource2"></asp:RequiredFieldValidator><br />
<telerik:RadComboBox ID="ddlDriversLicenseState" runat="server" Width="60px" RenderMode="Lightweight" style="margin-top:0px; padding-top:0px" >
<Items>
<telerik:RadComboBoxItem Text="--" Value="" />
<telerik:RadComboBoxItem Value="AL" Text="AL" />
<telerik:RadComboBoxItem Value="AZ" Text="AZ" />
<telerik:RadComboBoxItem Value="AR" Text="AR" />
<telerik:RadComboBoxItem Value="CA" Text="CA" />
<telerik:RadComboBoxItem Value="CO" Text="CO" />
<telerik:RadComboBoxItem Value="CT" Text="CT" />
<telerik:RadComboBoxItem Value="DE" Text="DE" />
<telerik:RadComboBoxItem Value="DC" Text="DC" />
<telerik:RadComboBoxItem Value="FL" Text="FL" />
<telerik:RadComboBoxItem Value="GA" Text="GA" />
<telerik:RadComboBoxItem Value="ID" Text="ID" />
<telerik:RadComboBoxItem Value="IL" Text="IL" />
<telerik:RadComboBoxItem Value="IN" Text="IN" />
<telerik:RadComboBoxItem Value="IA" Text="IA" />
<telerik:RadComboBoxItem Value="KS" Text="KS" />
<telerik:RadComboBoxItem Value="KY" Text="KY" />
<telerik:RadComboBoxItem Value="LA" Text="LA" />
<telerik:RadComboBoxItem Value="ME" Text="ME" />
<telerik:RadComboBoxItem Value="MD" Text="MD" />
<telerik:RadComboBoxItem Value="MA" Text="MA" />
<telerik:RadComboBoxItem Value="MI" Text="MI" />
<telerik:RadComboBoxItem Value="MN" Text="MN" />
<telerik:RadComboBoxItem Value="MS" Text="MS" />
<telerik:RadComboBoxItem Value="MO" Text="MO" />
<telerik:RadComboBoxItem Value="MT" Text="MT" />
<telerik:RadComboBoxItem Value="NE" Text="NE" />
<telerik:RadComboBoxItem Value="NV" Text="NV" />
<telerik:RadComboBoxItem Value="NH" Text="NH" />
<telerik:RadComboBoxItem Value="NJ" Text="NJ" />
<telerik:RadComboBoxItem Value="NM" Text="MN"/>
<telerik:RadComboBoxItem Value="NY" Text="NY" />
<telerik:RadComboBoxItem Value="NC" Text="NC" />
<telerik:RadComboBoxItem Value="ND" Text="ND" />
<telerik:RadComboBoxItem Value="OH" Text="OH" />
<telerik:RadComboBoxItem Value="OK" Text="OK" />
<telerik:RadComboBoxItem Value="OR" Text="OR" />
<telerik:RadComboBoxItem Value="PA" Text="PA" />
<telerik:RadComboBoxItem Value="PR" Text="PR" />
<telerik:RadComboBoxItem Value="RI" Text="RI" />
<telerik:RadComboBoxItem Value="SC" Text="SC" />
<telerik:RadComboBoxItem Value="SD" Text="SD" />
<telerik:RadComboBoxItem Value="TN" Text="TN" />
<telerik:RadComboBoxItem Value="TX" Text="TX" />
<telerik:RadComboBoxItem Value="UT" Text="UT" />
<telerik:RadComboBoxItem Value="VI" Text="VI" />
<telerik:RadComboBoxItem Value="VT" Text="VT" />
<telerik:RadComboBoxItem Value="VA" Text="VA" />
<telerik:RadComboBoxItem Value="WA" Text="WA" />
<telerik:RadComboBoxItem Value="WV" Text="WV" />
<telerik:RadComboBoxItem Value="WI" Text="WI" />
<telerik:RadComboBoxItem Value="WY" Text="WY" />
</Items>
</telerik:RadComboBox>
</td>
<td style="padding-right:12px">
<label id="lblDriversLicenseExpDate" runat="server" meta:resourcekey="lblDriversLicenseExpDateResource1" class="LabelText" >Expires:</label>
<label id="lblDriversLicenseExpDateReq" runat="server" class="ReqIndicator">*</label>
<asp:RequiredFieldValidator ID="rfvDriversLicenseExpDate" Display="Dynamic" CssClass="ValidationText" ValidationGroup="A"
runat="server" ErrorMessage="Required" ControlToValidate="rdiDriversLicenseExpDate"
meta:resourcekey="rfvResource1" ></asp:RequiredFieldValidator><br />
<telerik:RadDateInput ID="rdiDriversLicenseExpDate" runat="server" Width="100px" DateFormat="d" >
</telerik:RadDateInput>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</ContentTemplate>
</telerik:RadPanelItem>
<telerik:RadPanelItem Text="Residence" Expanded="true" meta:resourcekey="rtResidenceResource1">
<ContentTemplate>
<div runat="server" id="divPageView2InnerDiv" class="OnePageInnerDiv" visible="true">

<table class="FieldSetTable" cellpadding="0" cellspacing="0">
<tr>
<td style="vertical-align:top">
<table runat="server" id="tablePresAddressHead" cellpadding="0" cellspacing="0" style="margin-top:5px">
<tr>
<td style="padding-bottom:0px; padding-top:0">
<h4 runat="server" id="h4PresentAddress" style="width:760px; margin:0px" meta:resourcekey="h4PresentAddressResource1" >Present Address</h4>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" style="margin-top:5px">
<tr>
<td style="padding-right:12px">
<label id="lblStreetNumber" runat="server" meta:resourcekey="lblStreetNumberResource1" class="LabelText">Street #:</label>
<label id="lblStreetNumberReq" runat="server" class="ReqIndicator">*</label>
<asp:RequiredFieldValidator ID="rfvStreetNumber" runat="server" Display="Dynamic" CssClass="ValidationText" ValidationGroup="A"
ControlToValidate="txtStreetNumber" ErrorMessage="Reqd"
meta:resourcekey="rfvResource2"></asp:RequiredFieldValidator><br />
<asp:TextBox ID="txtStreetNumber" runat="server" Width="80px" MaxLength="10"></asp:TextBox>
</td>
<td style="padding-right:12px">
<label id="lblStreetName" runat="server" meta:resourcekey="lblStreetNameResource1" class="LabelText">Street Name:</label>
<label id="lblStreetNameReq" runat="server" class="ReqIndicator">*</label>
<asp:RequiredFieldValidator ID="rfvStreetName" runat="server" Display="Dynamic" CssClass="ValidationText" ValidationGroup="A"
ControlToValidate="txtStreetName" ErrorMessage="Required"
meta:resourcekey="rfvResource1"></asp:RequiredFieldValidator><br />
<asp:TextBox ID="txtStreetName" runat="server" Width="220px" MaxLength="50" onblur="ForceProper(this);" ></asp:TextBox>
</td>
<td style="padding-right:12px">
<label id="lblApt" runat="server" meta:resourcekey="lblAptResource1" class="LabelText">Apt/Unit:</label>
<label id="lblAptReq" runat="server" class="ReqIndicator">*</label>
<asp:RequiredFieldValidator ID="rfvApt" runat="server" Display="Dynamic" CssClass="ValidationText" ValidationGroup="A"
ControlToValidate="txtApt" ErrorMessage="Reqd"
meta:resourcekey="rfvResource2"></asp:RequiredFieldValidator><br />
<asp:TextBox ID="txtApt" runat="server" Width="80px" MaxLength="10"></asp:TextBox>
</td>
<td style="padding-left:52px">
<table cellpadding="0" cellspacing="0">
<tr>
<td style="padding-right:12px">
<label id="lblPresLived" runat="server" meta:resourcekey="lblPresLivedResource1" class="LabelText">Time at this Address:</label>
<label id="lblPresLivedReq" runat="server" class="ReqIndicator">*</label>
<asp:CustomValidator id="cvPresLived" runat="server" Display="Dynamic" CssClass="ValidationText" ValidationGroup="A"
ErrorMessage = "Reqd" ClientValidationFunction="ValidatePresLived" ></asp:CustomValidator><br />
<telerik:RadNumericTextBox ID="rniPresLived" runat="server" Width="70px"
Type="Number" NumberFormat-DecimalDigits="0" EmptyMessage="Years" MaxValue="100" MinValue="0" ></telerik:RadNumericTextBox>&nbsp;&nbsp;
<telerik:RadNumericTextBox ID="rniPresLivedMonths" runat="server" Width="70px"
Type="Number" NumberFormat-DecimalDigits="0" EmptyMessage="Months" MaxValue="11" MinValue="0" ></telerik:RadNumericTextBox>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
Danail Vasilev
Telerik team
 answered on 03 Nov 2014
4 answers
179 views
Hi:

I have to to be persistent, but I can get the validation to be ignored. First the code (view):
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <div>
            <telerik:RadComboBox ID="haulerDropDown" runat="server"
                DataSourceID = "haulerDataSource" DataTextField="Text"  DataValueField="Value"
                AllowCustomText="true" Width="200" >
            </telerik:RadComboBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
                    ControlToValidate="haulerDropDown" ValidationGroup="HeaderValidationGroup"
                    ErrorMessage="'Hauler' is required" Text="*" ForeColor="Red"
                    />
        </div>
        <asp:Button ID="Button1" runat="server" Text="Button" ValidationGroup="HeaderValidationGroup" />
        <asp:ObjectDataSource ID="haulerDataSource" runat="server"
            SelectMethod="Hauler" TypeName="App.DropDowns">
        </asp:ObjectDataSource>
    </form>
    </body>
</html>
Code behind:
Option Strict On
Option Explicit On
Partial Class _Default
    Inherits System.Web.UI.Page
    Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim _value As String = haulerDropDown.SelectedValue
        Dim _i As Integer = 1
    End Sub
End Class
and data for the data source (in App_Code):
Option Strict On
Option Explicit On
Imports Microsoft.VisualBasic
Namespace App
    Public Class DropDown
        Public Property Value() As String
        Public Property Text() As String
        Public Property Selected() As Boolean
        Public Sub New()
            Me.Value = ""
            Me.Text = ""
            Me.Selected = False
        End Sub
        Public Sub New(ByVal value As String, ByVal text As String)
            Me.Value = value
            Me.Text = text
            Me.Selected = False
        End Sub
        Public Sub New(ByVal value As String, ByVal text As String, ByVal selected As Boolean)
            Me.Value = value
            Me.Text = text
            Me.Selected = selected
        End Sub
    End Class
    '
    Public Class DropDowns
        Public Function Hauler() As List(Of DropDown)
            Dim _dropDown As List(Of DropDown) = _
                New List(Of DropDown) From { _
                    New DropDown With {.Value = "9 Point", .Text = "9 Point"}, _
                    New DropDown With {.Value = "R. A.", .Text = "R. A."}, _
                    New DropDown With {.Value = "A. B.", .Text = "A. B."}, _
                    New DropDown With {.Value = "B. C.", .Text = "B. C."}, _
                    New DropDown With {.Value = "Beck", .Text = "Beck"}}
            Return _dropDown
        End Function
    End Class
End Namespace
Now place a break point in the code behind on the _i int.  Now launch the page.  Click the button and all works as expected (does not submit and the * indicates a validation error).  Now delete the text, and tab out and delete the text again and tab out (the combo-box should be empty now).  Now click the button and the validation control does NOT stop the submit, and if you check the SelectedValue the combo-box is empty.

Phil
Phil H.
Top achievements
Rank 2
 answered on 03 Nov 2014
3 answers
251 views
Hello forum,
we are using RadHtmlCharts for showing monitoring data.
We experience one Problem:
When the numbers are too big they overlap into the legend and other diagrams (as seen in the attachments).
While the data in the screenshot is mock data it is realistic, that we have numbers that big.
Is there any way to prevent the numbers from overlapping?

Torben Lochow
Danail Vasilev
Telerik team
 answered on 03 Nov 2014
6 answers
396 views
Hello,

I am using the radgrid in Batch mode editing, I want to be able to move to next cell while adding new record or editing by pressing the Tab key, is that possible?

I have set AllowKeyboardNavigation="true".

Is there any sample for that.

Thanks in advance

Bary
Konstantin Dikov
Telerik team
 answered on 03 Nov 2014
1 answer
110 views
Hello Guys...
I have Question About Radwindow.
I created a Radwindow and I create few Control like textbox and button box .
I want,when i clicked The button COntent of textbox or what ever there Send to the asp.net server 
For Example :
On Radwindow:
       <asp:TextBox ID="txt1" runat="server" />  
                        <asp:TextBox ID="txt2" runat="server" />  
                        <asp:TextBox runat="server" ID="txtresult" />
                        <asp:Button Text="click" ID="BtnClick" runat="server" />
------------------------------------------------------------
JAvaSCript:

     <telerik:RadCodeBlock runat="server" ID="rdbScripts">
         <script type="text/javascript">

             
                  function togglePopupModality() {
                  var wnd = $find("<%=modalPopup.ClientID %>");
                
                  wnd.set_modal(!wnd.get_modal());
                  if (!wnd.get_modal()) document.documentElement.focus();
              }
              function showDialogInitially() {
                  var wnd = $find("<%=modalPopup.ClientID %>");
                   wnd.show();
                   Sys.Application.remove_load(showDialogInitially);
               }
             Sys.Application.add_load(showDialogInitially);
            
         
          </script>
     </telerik:RadCodeBlock>
-----------------------------------------------------------

on Server Side(code behind)
    protected void BtnClick_Click(object sender, EventArgs e)
    {
        LblResult.Text = txt1.Text + txt2.Text;
}

When I clicked the Button There is nothing To show.

How can i Do that >?
please help
Marin Bratanov
Telerik team
 answered on 03 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?