Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
159 views
In the RadTreeView, my partent node expands out to the appropriate child nodes. Problem is that the child nodes line up right with the Parent node.
I bound to an objectDataSource with ParentID, ID, Name. I can't get the children to line up over to the right.
Leland
Top achievements
Rank 1
 answered on 23 Oct 2014
1 answer
122 views
Hi There

I'm quite new to Telerik, and I'm stuck trying to launch multiple modal forms from various controls on a page.

Is there perhaps a clear demo of how to launch lets say 3 different modal windows (using Radwindow) from code when an event occurs (like 3 buttons being pressed, each one launching a different modal)?

Thanks in advance
Regards
JohannS
Johann
Top achievements
Rank 1
 answered on 23 Oct 2014
1 answer
160 views
I have a radiobuttonlist that contains a value that when selected, opens a hidden asp:panel and hides the current.


<asp:RadioButtonList ID="ShippingAddressRadioButtonList" runat="server" AutoPostBack="true" OnClick="CheckoutButtonDisable()">
</asp:RadioButtonList>

Selected value on server side sets visible = true for said panel

<asp:Panel ID="AddNewShippingPanel" runat="server" Visible="false" DefaultButton="AddNewSaveButton">
                 //Several textboxes and drop downs contained here.              
 </asp:Panel>

RadAjaxManagerProxy is set to update the wrapping panel that wraps all content on the page
<asp:Panel ID="CheckoutWrapperPanel" runat="server">
//All page content here
</asp:Panel>

RadAjaxManagerProxy outside of the wrapper is updating all other controls on page as desired except for the AddNewShippingPanel which is triggered by the RadioButtonList.

<telerik:AjaxSetting AjaxControlID="ShippingAddressRadioButtonList">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="CheckoutWrapperPanel" LoadingPanelID="LoadingPanel" />
    </UpdatedControls>
</telerik:AjaxSetting>

Viewing with Firefox's plugin Firebug, I am getting a script error coming from telerik which is a generic TypeError: a is undefined . If I remove the ajaxproxy update, my scenario works fine, just with no ajax or updatepanel.

What can I do to remedy this so that when I update the panel set to visible=false, that the ajax will fire with no error?
Geoff
Top achievements
Rank 1
 answered on 23 Oct 2014
16 answers
517 views
Just installed the 2009 Q3 controls.  They seem to have introduced an issue using shared calendars.  I have a RadGrid with a RadDatePicker in a GridTemplateColumn.  When I have more than 1 on the page, after I change a date, I cannot open another date picker.

It does the same thing in this example:
http://demos.telerik.com/aspnet-ajax/calendar/examples/design/sunny/defaultvb.aspx#

I click the date on Departure on either Static or Dynamic and then change the date.  Then you click on the Arrival an the calendar does not pop up.
Vasil
Telerik team
 answered on 23 Oct 2014
5 answers
128 views
I have some code that custom formats a row depending on a column value in a radgrid.  I notice that this formatting rule is working on the first page of the grid however it doesn't work on the other pages.  Note I'm using virtualization in the grid turned on and from what I read this will only work on the first page.  Has anyone else ran into this issue and know of a way to custom format all pages with virtualization turned on?

Thanks
Travis
Top achievements
Rank 1
 answered on 23 Oct 2014
20 answers
629 views
Hi Guys,
I have problems when I filter with enum datatype.
my code sample is:
1) enum Days {Sat, Sun, Mon, Tue, Wed, Thu, Fri};
public class Person
{
  public Person()
  {}
  public Days DayAbsent
  {
get;
set;
  }
Public FirstName
.............
}

2) In RadGrid I have a column:
<telerik:GridBoundColumn SortExpression="DayAbsent" HeaderText="Day Absent" HeaderButtonType="TextButton"
                        DataField="DayAbsent" AllowFiltering="true">
                    </telerik:GridBoundColumn>
3) when I run filter of this column, I see error message:
[Telerik.Web.UI.ParseException] = {"Neither of the types 'String' and 'Days' converts to the other"}

Could you tell me how to fix this issue.
Thanks,
Peter.
Vasil
Telerik team
 answered on 23 Oct 2014
5 answers
137 views
I am having trouble getting scrollbars to show up in IE 9,11 for RadWindows.  If I put the window in compatability mode ie 8, the scrollbars show in teh radwindows just fine, but as soon as I turn off compatability mode the scrollbars disappear and I have to tab to ge to the bottom of the screen and then shift tab to get back up the screen.  Where are the scroll bars?????

<telerik:RadWindow ID="radLease" runat="server" InitialBehaviors="Reload" ShowContentDuringLoad="false" CenterIfModal="true" Modal="true" VisibleStatusbar="false" Behaviors="close" OnClientClose="RefreshParentPage" />
 
function LoadWindow(LeaseId) {
               var radLease = $find("<%= radLease.ClientID%>");
               //get the value of the hidden field first to see if exists if not get the ddl value
               var armory2 = document.getElementById("<%=HFArmoryID.ClientID%>").value;
               var armorypass;
 
               if (armory2 == '') {
                   var ddl = document.getElementById("<%=ddlArmory.ClientID%>");
                   armorypass = ddl.options[ddl.selectedIndex].value;
               }
               else {
                   armorypass = armory2
               }
               
               radLease.setUrl("../TaccAdmin/Lease.aspx?Armory=" + armorypass + "&Lease=" + LeaseId);
               radLease.show();
               radLease.maximize();
           }
 
 
<form id="form1" runat="server">
       <telerik:RadScriptManager ID="rdScriptManager" runat="server"></telerik:RadScriptManager>
       <table class="usageCenterMargin">
           <tr>
               <td class="usageHeader">Organization Info</td>
           </tr>
       </table>
       <table class="usagebody">
           <tr>
               <td style="height:15px"></td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Organization Type:</td>
               <td>
                   <asp:DropDownList ID="ddlOrgType" runat="server"></asp:DropDownList>
                   <asp:RequiredFieldValidator ID="valOrgType" runat="server" ControlToValidate="ddlOrgType" ErrorMessage="**" ForeColor="Firebrick" InitialValue="0" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Event Type:</td>
               <td>
                   <asp:TextBox ID="txtEventType" runat="server" Width="220px" MaxLength="20"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="valEventType" runat="server" ControlToValidate="txtEventType" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Organization Name:</td>
               <td>
                   <asp:TextBox ID="txtOrgName" runat="server" Width="220px" MaxLength="30"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="valOrgName" runat="server" ControlToValidate="txtOrgName" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Organization Phone:</td>
               <td>
                   <asp:TextBox ID="txtOrgPhone" runat="server" Width="220px" MaxLength="12"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="valOrgPhone" runat="server" ControlToValidate="txtOrgPhone" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Organization Address:</td>
               <td>
                   <asp:TextBox ID="txtAddress" runat="server" Width="220px" MaxLength="25"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="valAddress" runat="server" ControlToValidate="txtAddress" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Organization City:</td>
               <td><asp:TextBox ID="txtCity" runat="server" Width="120px" MaxLength="25"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valCity" runat="server" ControlToValidate="txtCity" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
                     State:
                   <asp:TextBox ID="txtState" runat="server" Width="40px" MaxLength="2"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valState" runat="server" ControlToValidate="txtState" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
                     Zip:
                   <telerik:RadNumericTextBox ID="txtZip" runat="server" Width="80px" MaxLength="5" NumberFormat-AllowRounding="false" NumberFormat-GroupSizes="5" NumberFormat-DecimalDigits="0" />
                    <asp:RequiredFieldValidator ID="valZip" runat="server" ControlToValidate="txtZip" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Alcohol Served:</td>
               <td>
                   <asp:RadioButtonList ID="rblAlcohol" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                       <asp:ListItem Value="1" Text="YES   "></asp:ListItem>
                       <asp:ListItem Value="0" Text="NO"></asp:ListItem>
                   </asp:RadioButtonList>
                   <asp:RequiredFieldValidator ID="valAlcohol" runat="server" ControlToValidate="rblAlcohol" ErrorMessage="**" InitialValue="" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Gratis Lease:</td>
               <td>
                   <asp:RadioButtonList ID="rblGratis" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                       <asp:ListItem Value="1" Text="YES   "></asp:ListItem>
                       <asp:ListItem Value="0" Text="NO"></asp:ListItem>
                   </asp:RadioButtonList>
                   <asp:RequiredFieldValidator ID="valGratis" runat="server" ControlToValidate="rblGratis" InitialValue="" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right;vertical-align:top">Gratis Reason:</td>
               <td><asp:TextBox ID="txtGratis" runat="server" Width="400px"  Height="40px" TextMode="MultiLine"></asp:TextBox></td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Facility Fee:</td>
               <td>
                   <telerik:RadNumericTextBox ID="txtLeaseAmount" runat="server" Width="80px" MaxLength="8" NumberFormat-DecimalDigits="2"></telerik:RadNumericTextBox>
                   <asp:RequiredFieldValidator ID="valLeaseAmt" runat="server" ControlToValidate="txtLeaseAmount" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
                     Custodial Fees:
                  <telerik:RadNumericTextBox ID="txtWorkerAmount" runat="server" Width="80px" MaxLength="8" NumberFormat-DecimalDigits="2"></telerik:RadNumericTextBox>
                   <asp:RequiredFieldValidator ID="valWorkerAmt" runat="server" ControlToValidate="txtWorkerAmount" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="height:15px"></td>
           </tr>
       </table>
       <table class="usageCenter">
           <tr>
               <td class="usageHeader">Lease Specifics</td>
           </tr>
       </table>
       <table class="usagebody">
           <tr>
               <td style="height:15px"></td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Est. Attendance:</td>
               <td>
                   <telerik:RadNumericTextBox ID="txtAttendance" runat="server" Width="80px" MaxLength="4" NumberFormat-AllowRounding="false" NumberFormat-DecimalDigits="4"></telerik:RadNumericTextBox>
                    <asp:RequiredFieldValidator ID="valAttendance" runat="server" ControlToValidate="txtAttendance" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Vacate Within:</td>
               <td>
                   <telerik:RadNumericTextBox ID="txtVacate" runat="server" Width="80px" MaxLength="1" NumberFormat-AllowRounding="false" NumberFormat-DecimalDigits="1"></telerik:RadNumericTextBox>
                    <asp:RequiredFieldValidator ID="valvacate" runat="server" ControlToValidate="txtVacate" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Occurances:</td>
               <td>
                   <asp:DropDownList ID="ddlOccurances" runat="server"></asp:DropDownList>
                    <asp:RequiredFieldValidator ID="valOccur" runat="server" ControlToValidate="ddlOccurances" InitialValue="0" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Lease Begin:</td>
               <td>
                   <telerik:RadDatePicker ID="dtbegin" runat="server" Width="100px"></telerik:RadDatePicker>
                    <asp:RequiredFieldValidator ID="valdtBegin" runat="server" ControlToValidate="dtbegin" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
                      Lease End:
                    <telerik:RadDatePicker ID="dtEnd" runat="server" Width="100px"></telerik:RadDatePicker>
                    <asp:RequiredFieldValidator ID="valdtEnd" runat="server" ControlToValidate="dtEnd" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Time Begin:</td>
               <td>
                   <telerik:RadTimePicker ID="dtTimeBegin" runat="server" Width="100px" ></telerik:RadTimePicker>
                    <asp:RequiredFieldValidator ID="valTimeBegin" runat="server" ControlToValidate="dtTimeBegin" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
                      Time End:
                   <telerik:RadTimePicker ID="dtTimeEnd" runat="server" Width="100px" ></telerik:RadTimePicker>
                    <asp:RequiredFieldValidator ID="valTimeEnd" runat="server" ControlToValidate="dtTimeEnd" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="height:15px"></td>
           </tr>
       </table>
       <table class="usageCenter">
           <tr>
               <td class="usageHeader">Armory Specifics</td>
           </tr>
       </table>
       <table class="usagebody">
           <tr>
               <td style="height:15px"></td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Armory Portions:</td>
               <td>
                   <telerik:RadComboBox ID="ddlPortion" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" EmptyMessage="Pick Armory Portions"></telerik:RadComboBox>
                    <asp:RequiredFieldValidator ID="valPortion" runat="server" ControlToValidate="ddlPortion" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right">Armory Provided:</td>
               <td>
                   <telerik:RadComboBox ID="ddlProvided" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" EmptyMessage="Pick Armory Provisions"></telerik:RadComboBox>
                    <asp:RequiredFieldValidator ID="valProvided" runat="server" ControlToValidate="ddlProvided" ErrorMessage="**" ForeColor="Firebrick" SetFocusOnError="true" />
               </td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right;vertical-align:top">Changes to Leased Portion:</td>
               <td><asp:TextBox ID="txtLeasedPortion" runat="server" Width="400px"  Height="40px" TextMode="MultiLine"></asp:TextBox></td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right;vertical-align:top">Remarks:</td>
               <td><asp:TextBox ID="txtRemarks" runat="server" Width="400px"  Height="40px" TextMode="MultiLine"></asp:TextBox></td>
           </tr>
           <tr>
               <td style="width:25%;text-align:right"></td>
               <td>
                   <asp:LinkButton ID="lnkDraft" runat="server" Text="Draft" ToolTip="Use this to save Lease Until Leasee comes to sign agreement"></asp:LinkButton>
                        
                   <asp:LinkButton ID="lnkSubmit" runat="server" Text="Submit" ToolTip="Lease will not be able to be changed after submitted"></asp:LinkButton>
                        
                   <asp:LinkButton ID="lnkCancel" runat="server" Text="Cancel" ToolTip="Close page and save nothing"></asp:LinkButton>
               </td>
           </tr>
           <tr>
               <td style="height:15px"></td>
           </tr>
       </table>
       <asp:HiddenField ID="HFArmory" runat="server" /><asp:HiddenField ID="HFLeaseId" runat="server" />
   </form>
Marin Bratanov
Telerik team
 answered on 23 Oct 2014
5 answers
146 views
I have an issue related to how the filter boxes display.  Image attached of example.  Anyone have any thoughts on why this would happen. 
Venelin
Telerik team
 answered on 23 Oct 2014
1 answer
151 views
Hi, 

I have a telerik project with Entity Framework.

I want to show de value of the related tables in a GridBoundColumn, but ever come empty.

I Attach a picture showing the related tables, and the code in the aspx.

Please , someone can help me? Thanks

Code in ASPX

 

        <telerik:RadGrid ID="RadGrid1" runat="server" CssClass="RadGrid" GridLines="None"

        AllowPaging="True" PageSize="50" AllowSorting="True" AutoGenerateColumns="False"

        ShowStatusBar="true" AllowFilteringByColumn="True"

        DataSourceID="EntityDataSourceUsuarios" OnDeleteCommand="RadGrid1_RowDeleting" OnItemDeleted="RadGrid1_ItemDeleted"

        OnUpdateCommand="RadGrid1_UpdateCommand"  OnItemCommand="RadGrid1_ItemCommand" OnPreRender="RadGrid1_PreRender" AllowAutomaticUpdates="true"  >

       

        <MasterTableView DataSourceID="EntityDataSourceUsuarios" AutoGenerateColumns="False"

            DataKeyNames="ID" CommandItemDisplay="Top" PageSize="50">

 

Columns…..

<telerik:GridBoundColumn DataField="M_EMPRESAS.Descripcion" HeaderText="Empresa" SortExpression="M_EMPRESAS.Descripcion" UniqueName="M_EMPRESAS.Descripcion" >

                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn DataField="M_TARIFAS.ID" HeaderText="Tarifa" SortExpression="M_TARIFAS.ID" UniqueName="M_TARIFAS.ID">

                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn DataField="M_TIPO_ACCESO_TARJETA.ID" DataType="System.Int32" HeaderText="Acceso" SortExpression="M_TIPO_ACCESO_TARJETA.ID" UniqueName="M_TIPO_ACCESO_TARJETA.ID" >

                </telerik:GridBoundColumn>

Entitys…..

 

 
<asp:EntityDataSource ID="EntityDataSourceUsuarios" runat="server"

            DefaultContainerName="HARVESTEntities" EntitySetName="M_USUARIO" OrderBy="it.[CodEmpleado]"

            EntityTypeFilter="M_USUARIO" EnableUpdate="True" EnableDelete="True" EnableInsert="True" ConnectionString="name=HARVESTEntities">

        </asp:EntityDataSource>

        <asp:EntityDataSource ID="EntityDataSourceAccesoTarjeta" runat="server"

            DefaultContainerName="HARVESTEntities" EntitySetName="M_TIPO_ACCESO_TARJETA" OrderBy="it.[ID]"

            ConnectionString="name=HARVESTEntities">

        </asp:EntityDataSource>

        <asp:EntityDataSource ID="EntityDataSourceEmpresa" runat="server"

            DefaultContainerName="HARVESTEntities" EntitySetName="M_EMPRESAS" OrderBy="it.[ID]"

            ConnectionString="name=HARVESTEntities">

        </asp:EntityDataSource>

        <asp:EntityDataSource ID="EntityDataSourceTarifa" runat="server"

            DefaultContainerName="HARVESTEntities" EntitySetName="M_TARIFAS" OrderBy="it.[ID]"

            ConnectionString="name=HARVESTEntities">

        </asp:EntityDataSource>
Radoslav
Telerik team
 answered on 23 Oct 2014
1 answer
155 views
Hi,

I have added an attribute to a rad button on a rad toolbar.     
     rtbButton.Attributes.Add("ObjectId", dr("ObjectId").ToString)

I am trying to get the value of this client side on the OnClientButtonClicked event of the toolbar using the following code
var objectId = args.get_item().get_attributes().getAttribute('ObjectId');
alert(objectId);
but the objectId keeps returning undefined.

How can I get a reference to the attribute of the button client side.

Thank You
Tracy

​
Peter Filipov
Telerik team
 answered on 23 Oct 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?