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

I am not able to filter Rad Upload selections after giving the required file extensions.
I want to see only those files and folders that contains specific extensions.
Example:- .exe,.jpeg etc
Rumen
Telerik team
 answered on 16 Nov 2011
3 answers
176 views
Hi,
We have a rad grid for which , EnableHeaderContextMenu= true is set.
We are able to get the menu , but a few item gets repeated ( without checkbox). Please find the screen shot and the code attached.
Kindly help us resolving this issue as early as possible , as we have the deployment very soon.


Thanks,
Sudha.
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
  
<script type="text/javascript">
  
function OnClientItemOpening(menu, args) {
  
var item = args.get_item();
  
item.get_items().getItem(0).get_element().style.display = "none";
  
item.get_items().getItem(1).get_element().style.display = "none";
  
item.get_items().getItem(7).get_element().style.display = "none";
  
item.get_items().getItem(8).get_element().style.display = "none";
  
item.get_items().getItem(12).get_element().style.display = "none";
  
item.get_items().getItem(13).get_element().style.display = "none";
  
} 
  
</script>
  
</telerik:RadCodeBlock>
  
  
<telerik:RadGrid ID="dgFileList" OnItemDataBound="dgFileList_ItemDataBound" OnSortCommand="dgFileList_SortCommand"
                                            runat="server" Skin="SLB" CellSpacing="1" CellPadding="0" BorderStyle="Solid"
                                            BorderWidth="0px" Width="100%" Height="359px" AutoGenerateColumns="False" GridLines="None"
                                            AllowSorting="True" HeaderStyle-Height="30px" EnableEmbeddedSkins="False" ImagesPath="~/Skins/SLB/Grid"
                                            EnableHeaderContextMenu="true"> 
                                            <HeaderContextMenu OnClientItemOpening="OnClientItemOpening"> 
                                            </HeaderContextMenu> 
                                            <ClientSettings> 
                                                <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
                                                <Selecting AllowRowSelect="true" /> 
                                                <ClientEvents OnGridCreated="GridCreated_FileList" /> 
                                                <Resizing AllowResizeToFit="true" AllowColumnResize="True" AllowRowResize="false"
                                                    ResizeGridOnColumnResize="true" ClipCellContentOnResize="false" EnableRealTimeResize="true" /> 
                                            </ClientSettings> 
                                            <HeaderStyle Font-Underline="False" Height="30px" Width="100%" /> 
                                            <ItemStyle Height="100%" /> 
                                            <AlternatingItemStyle Height="100%" /> 
                                            <MasterTableView AllowNaturalSort="true" AllowCustomSorting="true" ShowHeadersWhenNoRecords="true"
                                                NoMasterRecordsText="No files found for the selected product."> 
                                                <Columns> 
                                                    <telerik:GridBoundColumn UniqueName="FileID" DataField="FileID" HeaderText="FileID"
                                                        Display="false"> 
                                                        <HeaderStyle Wrap="False" HorizontalAlign="Center" /> 
                                                        <ItemStyle Wrap="true" HorizontalAlign="Left" CssClass="RadGridRow" /> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn UniqueName="ProductDetails" DataField="ProductDetails" HeaderText="Description"
                                                        SortExpression="ProductDetails" Visible="true" Display="true"> 
                                                        <HeaderStyle Width="200" Wrap="false" HorizontalAlign="Center" /> 
                                                        <ItemStyle Wrap="true" HorizontalAlign="Left" CssClass="RadGridRow" /> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn UniqueName="Version" DataField="Version" HeaderText="Version"
                                                        SortExpression="Version" Visible="true"> 
                                                        <HeaderStyle Width="70" Wrap="False" HorizontalAlign="Center" /> 
                                                        <ItemStyle Wrap="true" HorizontalAlign="Left" CssClass="RadGridRow" /> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn UniqueName="Release" DataField="Release" HeaderText="Released"
                                                        SortExpression="ReleaseDate" HeaderStyle-Width="65"> 
                                                        <HeaderStyle Width="75" Wrap="False" HorizontalAlign="Center" /> 
                                                        <ItemStyle Wrap="true" HorizontalAlign="Left" CssClass="RadGridRow" /> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn UniqueName="ContentType" DataField="ContentType" HeaderText="ContentType"
                                                        SortExpression="ContentType" Visible="true"> 
                                                        <HeaderStyle Width="93" Wrap="False" HorizontalAlign="Center" /> 
                                                        <ItemStyle Wrap="true" HorizontalAlign="Left" CssClass="RadGridRow" /> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn UniqueName="Published" DataField="Published" HeaderText="Published"
                                                        SortExpression="PublishedDate" Visible="False"> 
                                                        <HeaderStyle Width="80" Wrap="False" HorizontalAlign="Center" /> 
                                                        <ItemStyle Wrap="true" HorizontalAlign="Left" CssClass="RadGridRow" /> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn UniqueName="Platform" DataField="Platform" HeaderText="Platform"
                                                        SortExpression="Platform" Visible="true"> 
                                                        <HeaderStyle Width="105" Wrap="true" HorizontalAlign="Center" /> 
                                                        <ItemStyle Wrap="true" HorizontalAlign="Left" CssClass="RadGridRow" /> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn UniqueName="Description" DataField="Description" HeaderText="Description"
                                                        SortExpression="Description" Visible="false"> 
                                                        <HeaderStyle Wrap="False" HorizontalAlign="Center" /> 
                                                        <ItemStyle Wrap="true" HorizontalAlign="Left" CssClass="RadGridRow" /> 
                                                    </telerik:GridBoundColumn> 
<telerik:GridButtonColumn UniqueName="btnDetails" ButtonType="ImageButton" Text="Details"
                                                        HeaderText="Details" ImageUrl="Images/Info.png"> 
                                                        <HeaderStyle Width="50" Wrap="False" HorizontalAlign="Left" /> 
                                                        <ItemStyle HorizontalAlign="Center" CssClass="RadGridRow" Font-Bold="true" /> 
                                                    </telerik:GridButtonColumn> 
                                                    <telerik:GridButtonColumn UniqueName="btnDownload" ButtonType="ImageButton" HeaderText="Download"
                                                        Text="Available for download" ImageUrl="Images/Download.png"> 
                                                        <HeaderStyle Width="65" Wrap="False" HorizontalAlign="Left" /> 
                                                        <ItemStyle HorizontalAlign="Center" CssClass="RadGridRow" /> 
                                                    </telerik:GridButtonColumn> 
                                                    <telerik:GridBoundColumn UniqueName="FileSize" DataField="formatedsize" HeaderText="Size[KB]"
                                                        SortExpression="size" Visible="true"> 
                                                        <HeaderStyle Width="70" Wrap="False" HorizontalAlign="Left" /> 
                                                        <ItemStyle Wrap="true" HorizontalAlign="Left" CssClass="RadGridRow" /> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn UniqueName="ThirdPartyEnabled" DataField="ThirdPartyEnabled"
                                                        HeaderText="ThirdPartyEnabled" Visible="false"> 
                                                        <HeaderStyle Wrap="False" HorizontalAlign="Center" /> 
                                                        <ItemStyle Wrap="true" HorizontalAlign="Left" CssClass="RadGridRow" /> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn UniqueName="FileName" DataField="FileName" HeaderText="FileName"
                                                        SortExpression="FileName"> 
                                                        <HeaderStyle Width="135" Wrap="False" HorizontalAlign="Center" /> 
                                                        <ItemStyle Wrap="false" HorizontalAlign="Left" CssClass="RadGridRow" /> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn UniqueName="RelatedLinks" DataField="RelatedLinks" HeaderText="RelatedLinks"
                                                        SortExpression="RelatedLinks"> 
                                                        <HeaderStyle Wrap="false" HorizontalAlign="Center" /> 
                                                        <ItemStyle Wrap="true" HorizontalAlign="Left" /> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn UniqueName="fileSizeValue" DataField="size" HeaderText="filesize"
                                                        Display="false"> 
                                                        <HeaderStyle Width="0px" /> 
                                                        <ItemStyle Width="0px" /> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn UniqueName="MD5CheckSum" DataField="MD5CheckSum" HeaderText="MD5CheckSum"
                                                        Display="false"> 
                                                        <HeaderStyle Width="0px" /> 
                                                        <ItemStyle Width="0px" /> 
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn UniqueName="CollectionName" DataField="CollectionName" HeaderText="CollectionName"
                                                        SortExpression="CollectionName" Visible="false"> 
                                                        <HeaderStyle Width="0" Wrap="false" HorizontalAlign="Center" /> 
                                                        <ItemStyle Wrap="true" HorizontalAlign="Left" /> 
                                                    </telerik:GridBoundColumn> 
                                                </Columns> 
                                                <EditFormSettings> 
                                                    <EditColumn CancelImageUrl="~/Skins/SLB/Grid\Cancel.gif" EditImageUrl="~/Skins/SLB/Grid\Edit.gif"
                                                        FilterControlAltText="Filter EditCommandColumn column" FilterImageUrl="~/Skins/SLB/Grid\Filter.gif"
                                                        InsertImageUrl="~/Skins/SLB/Grid\Update.gif" SortAscImageUrl="~/Skins/SLB/Grid\SortAsc.gif"
                                                        SortDescImageUrl="~/Skins/SLB/Grid\SortDesc.gif" UpdateImageUrl="~/Skins/SLB/Grid\Update.gif"> 
                                                    </EditColumn> 
                                                </EditFormSettings> 
                                            </MasterTableView> 
                                        </telerik:RadGrid>
Maria Ilieva
Telerik team
 answered on 16 Nov 2011
1 answer
121 views
Hi

I need to handle the Navigation Commands using Web Service binding:

Step 1: filter commands on the client-side using OnClientNavigationCommand
Step 2: customize the RadSheduler within OnNavigationCommand

The client-side event works as expected. However the server-side event is not fired.

How can I handle this scenario?

Cheers,
Jani
Ivana
Telerik team
 answered on 16 Nov 2011
3 answers
141 views
Is there a way to keep the grid filtered if you leave a page, and click the back button or go back to the page with the grid to keep the filter you had on the grid?
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Nov 2011
1 answer
90 views
Hello,

    I have a RadPanelBar with three RadPanelItem.Whenever there is an autopostback
event entire form will expirience autopostBack.

   I want individual RadPanelItem, whomever the control associated, which is  responsible
 for Autopost back should autopostback. Please help me on this regards.

(We are evaluating your asp.net ajax control)
Regards,
Gautham
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Nov 2011
3 answers
140 views
user tries to add an appointment as follows:
based on where the user clicked on the scheduler it should deduce a default beginDateTime & room resource.
User inputs text in one or two text boxes, clicks a search button, then is shown a single-select list of procedures that meet the description in the text boxes.  User then inputs patient name/ssn to get a list of patients to select one.

when he selects a procedure from one grid/list/display and a patient from another grid/list/display each return a procedure & patient id that will be used on insert...

The endDateTime should also be deduced by the procedureTime

Are there any examples out there that are similar to the functionality that I'm attempting to implement in general?  I'm not sure even what to ask.
Plamen
Telerik team
 answered on 16 Nov 2011
5 answers
191 views

Most features work fine but I have some problems with RadGrid for Ajax. 

1. When the page displays intially, the slider does not display. (Even if I set AlwaysVisible="true") However if the user clicks on a row in the grid thenthe slider displays. ASPX is below.
How can we display the slider when the page displays?

2. Do you have an example of a paging "Slider" that has the text horizontally aligned (side by side) with the slider graphic?
e.g. the words "Page: 1 out of 6667 pages" would appear to the right of the slider graphic.

3. Is there a special way to set font-size for data in the grid?  I set it to "smaller" but it stays big.

4. Is there an example or guidance on how to do the following.  Suppose we need a grid to edit employee records.
Each employee is in one company and each employee can be in zero or more departments inside the company.
So if we edit or add a new employee the user must select a company (e.g. from a dropdown list of all companies) and AFTER selecting a company the user may select zero or more departments (e.g. from a listbox).
So a normal edit feature is not sufficient.  The contents of the list of departments depends on the company selected.
I can think of two general ideas. 4.1) If the inline edit form could have an event associated with user selection of a company from ddlistCompany. This event would cause data to be loaded into the listbox for Department that is on the edit form.

4.2) Another idea is not as nice for the user but could work.  We could have a second edit button on the grid for "Edit Department". When the user clicks this button some kind of popup window is displayed that contains a listbox of Departments that are associated with the company in the row containing the edit button the user clicked on.

I found one way to do this.  Have 2 edit form user controls, one for company data and one for department.  You can use CommandArgument in these controls so you can identify them on the page or user control that uses them. For example the following. If CommandArgument == "S") I know which edit form user control should be the "active" one.  The grid will have one edit button associated with each of thes 2 edit form user controls,

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)

{

if (e.CommandName == "RebindGrid")

{

PopulateOnPrerender =

false;

SetLabels();

RadGrid1.DataBind();

}

if (e.CommandName == "InitInsert")

{

if (((LinkButton)e.CommandSource).CommandArgument == "S")

{

RadGrid1.MasterTableView.EditFormSettings.UserControlName =

"~/Controls/UsersControlEditSCS.ascx";

}

else

{

RadGrid1.MasterTableView.EditFormSettings.UserControlName =

"~/Controls/UsersControlEdit.ascx";

}

}

}


John (Steve) 

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UsersControl.ascx.cs"
 Inherits="BalancedFlow.WebSite3._5.Controls.UsersControl" %>
<%@ Register TagPrefix="rad" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css">
 #Table5
 {
  width: 1016px;
 }
 .style9
 {
  width: 91%;
  margin-right: 24px;
  height: 25px;
 }
 .style13
 {
  width: 260px;
 }
</style>
<table cellspacing="0" cellpadding="0" width="133" border="0">
 <tr valign="top">
  <td width="133" height="988">
   <table cellspacing="0" cellpadding="0" width="976" border="0">
    <tr valign="top">
     <td colspan="2" height="50">
      <table id="Table5" cellspacing="1" cellpadding="1" border="0">
       <tr>
        <td height="45">
         <asp:Panel ID="pnlTop" runat="server" Height="36px" Width="833px">
          <table class="style9">
           <tr>
            <td>
             <asp:Panel ID="pnlSC" runat="server" BorderColor="#0033CC" BorderWidth="0"
              Width="461px">
              <table class="style9">
               <tr>
                <td>
                 <asp:RadioButton ID="rdoSNet" runat="server" Checked="True" Font-Size="Small"
                  GroupName="View" Text="SC" Visible="False" />
                </td>
                <td class="style13">
                 <asp:DropDownList ID="ddlistSNet" runat="server" DataTextField="SNet_Name"
                  DataValueField="SNet_ID" Font-Size="Small" Visible="False" Width="222px">
                 </asp:DropDownList>
                </td>
                <td>
                 <asp:RadioButton ID="rdoAdmin" runat="server" Font-Size="Small"
                  GroupName="View" Text="Sys Admin" Visible="False" />
                </td>
               </tr>
              </table>
             </asp:Panel>
            </td>
            <td valign="baseline">
             <asp:Label ID="lblError" runat="server" Font-Bold="True" ForeColor="Red"
              Height="8px" Width="452px"></asp:Label>
            </td>
           </tr>
          </table>
         </asp:Panel>
        </td>
       </tr>
       <tr>
        <td width="400">
         <rad:RadGrid ID="RadGrid1" AllowScroll="true" Font-Size="Smaller" AllowMultiRowSelection="true"
          Skin="WebBlue" runat="server" AllowAutomaticDeletes="True" Width="242%" PageSize="40"
          AllowPaging="True" AutoGenerateColumns="False" DataSourceID="ObjDataSource1" ShowStatusBar="true"
          EnableAJAX="true" EnableAJAXLoadingTemplate="true" LoadingTemplateTransparency="50"
          OnItemCreated="RadGrid1_ItemCreated" OnDeleteCommand="RadGrid1_DeleteCommand" OnUpdateCommand="RadGrid1_UpdateCommand"
          OnInsertCommand="RadGrid1_InsertCommand" OnItemCommand="RadGrid1_ItemCommand" OnItemDataBound="RadGrid1_ItemDataBound">
          <PagerStyle Mode="Slider" />
          <ClientSettings>
           <Selecting AllowRowSelect="true" />
          </ClientSettings>
          <MasterTableView CommandItemDisplay="Top" DataKeyNames="PersonID" DataSourceID="ObjDataSource1"
           EditMode="EditForms" AutoGenerateColumns="False" Width="100%">
           <CommandItemTemplate>
            <div style="padding: 10px 0px;">
             &nbsp;&nbsp;
             <asp:LinkButton ID="LinkButtonAddNew" Font-Size="X-Small" runat="server" CommandName="InitInsert"><img style="border:0px;vertical-align:middle;" alt="" src="Images/AddRecord.gif" />
          Add new</asp:LinkButton>
             &nbsp;
             <asp:LinkButton ID="LinkButtonDeleteSelected" Font-Size="X-Small" OnClientClick="javascript:return confirm('Delete selected items?')"
              runat="server" CommandName="DeleteSelected" CausesValidation="false"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Delete.gif" />
          Delete Selected</asp:LinkButton>
             &nbsp;&nbsp;&nbsp;
             <asp:LinkButton ID="LinkButtonRefresh" Font-Size="X-Small" runat="server" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Refresh.gif" />
          Refresh</asp:LinkButton>
            </div>
           </CommandItemTemplate>
           <RowIndicatorColumn Visible="False">
            <HeaderStyle Width="20px"></HeaderStyle>
           </RowIndicatorColumn>
           <ExpandCollapseColumn Visible="False" Resizable="False">
            <HeaderStyle Width="20px"></HeaderStyle>
           </ExpandCollapseColumn>
           <Columns>
            <rad:GridClientSelectColumn HeaderStyle-Width="40px" />
            <rad:GridBoundColumn DataField="PersonID" HeaderText="PersonID" UniqueName="ID" ReadOnly="true"
             Visible="false">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn DataField="FirstName" HeaderText="FirstName" UniqueName="FirstName">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn DataField="LastName" HeaderText="LastName" UniqueName="LastName">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn DataField="UserID" HeaderText="UserID" UniqueName="UserID">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn DataField="Password" HeaderText="Password" UniqueName="Password">
            </rad:GridBoundColumn>
            <rad:GridTemplateColumn UniqueName="PermisCol" HeaderText="Permission">
             <ItemTemplate>
              <asp:Label ID="LblPermis" runat="server" Width="180"> <%# DataBinder.Eval(Container.DataItem, "PermissionName")%>
              </asp:Label>
             </ItemTemplate>
             <EditItemTemplate>
              <asp:DropDownList ID="ListPermis" runat="server" DataTextField="Permission_Name"
               DataValueField="Permission_ID" />
             </EditItemTemplate>
            </rad:GridTemplateColumn>
            <rad:GridTemplateColumn UniqueName="tSNET" HeaderText="SNET">
             <ItemTemplate>
              <asp:Label ID="LblSNET" runat="server"> <%# DataBinder.Eval(Container.DataItem, "SNetname")%></asp:Label>
             </ItemTemplate>
             <EditItemTemplate>
              <asp:DropDownList ID="ListSNET" runat="server" DataTextField="SNET_Name" DataValueField="SNET_ID" />
             </EditItemTemplate>
            </rad:GridTemplateColumn>
            <rad:GridBoundColumn DataField="SCSname" HeaderText="SCSname" UniqueName="SCSname">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn Visible="false" DataField="Address1" HeaderText="Address1" UniqueName="Address1">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn Visible="false" DataField="Address2" HeaderText="Address2" UniqueName="Address2">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn Visible="false" DataField="City" HeaderText="City" UniqueName="City">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn Visible="false" DataField="State" HeaderText="State" UniqueName="State">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn Visible="false" DataField="Zip1" HeaderText="Zip1" UniqueName="Zip1">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn Visible="false" DataField="Zip2" HeaderText="Zip2" UniqueName="Zip2">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn Visible="false" DataField="CellPhone" HeaderText="Cell" UniqueName="CellPhone">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn Visible="false" DataField="Email" HeaderText="Email" UniqueName="Email">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn Visible="false" DataField="Fax" HeaderText="Fax" UniqueName="Fax">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn Visible="false" DataField="LandPhone" HeaderText="Phone" UniqueName="LandPhone">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn Visible="false" DataField="PhoneExtension" HeaderText="PhoneEx" UniqueName="PhoneEx">
            </rad:GridBoundColumn>
            <rad:GridBoundColumn Visible="false" DataField="Title" HeaderText="Title" UniqueName="Title">
            </rad:GridBoundColumn>
            <rad:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/Images/Edit.gif" CommandName="Edit"
             Text="Edit" UniqueName="EditColumn">
            </rad:GridButtonColumn>
           </Columns>
           <DetailTables>
        <rad:GridTableView DataKeyNames="PersonID" DataSourceID="ObjDataSource2" Name="PerDetail">
       <ParentTableRelation>
          <rad:GridRelationFields DetailKeyField="PersonID" MasterKeyField="PersonID" />
       </ParentTableRelation>
         <Columns>
          <rad:GridBoundColumn Visible="false" DataField="Address2" HeaderText="Address2" UniqueName="Address2">
          </rad:GridBoundColumn>
          </Columns>
      </rad:GridTableView>
           </DetailTables>
          </MasterTableView>
         </rad:RadGrid>
         <asp:ObjectDataSource ID="ObjDataSource1" runat="server" TypeName="BalancedFlow.Library.Manager.UserManager"
          SelectMethod="GetPersons" EnablePaging="false">
          <SelectParameters>
           <asp:ControlParameter Name="iPermis_IDtoDisplay" ControlID="lblPermissionIDForDisplay"
            PropertyName="Text" />
           <asp:ControlParameter Name="iSNet_ID" ControlID="lblSNet_IDForDisplay" PropertyName="Text" />
           <asp:ControlParameter Name="iSCS_ID" ControlID="lblSCS_IDForDisplay" PropertyName="Text" />
           <asp:ControlParameter Name="iPerson_ID" ControlID="lblPerson_ID" PropertyName="Text" />
          </SelectParameters>
         </asp:ObjectDataSource>
        
         <asp:ObjectDataSource ID="ObjDataSource2" runat="server" TypeName="BalancedFlow.Library.Manager.UserManager"
          SelectMethod="GetOnePerson" EnablePaging="false">
          <SelectParameters>
           <asp:ControlParameter Name="PersonID" ControlID="Radgrid1" PropertyName="SelectedValue" Type="Int32" />
          </SelectParameters>
         </asp:ObjectDataSource>
        
        </td>
       </tr>
       <tr>
        <td>
         <table id="Table4" cellspacing="1" cellpadding="1" width="300" border="0">
          <tr>
           <td height="21">
            <asp:Label ID="lblPermissionIDForDisplay" runat="server" Visible="False"></asp:Label>
            <asp:Label ID="lblPerson_ID" runat="server" Visible="False"></asp:Label>
           </td>
          </tr>
          <tr>
           <td>
            <asp:Label ID="lblSNet_IDForDisplay" runat="server" Width="176px" Visible="False"></asp:Label>
           </td>
          </tr>
          <tr>
           <td style="height: 41px">
            <asp:Label ID="lblSCS_IDForDisplay" runat="server" Visible="False"></asp:Label>
           </td>
          </tr>
          <tr>
           <td style="height: 41px">
            <asp:Label ID="lblV" runat="server" Visible="False" Width="184px"></asp:Label>
           </td>
          </tr>
         </table>
        </td>
       </tr>
      </table>
     </td>
    </tr>
   </table>
  </td>
 </tr>
</table>

Tsvetina
Telerik team
 answered on 16 Nov 2011
4 answers
257 views
Hi,

I have a RadTabStrip and RadMultiPage set up with 4 RadPageViews.

Here is what I want to do:

When a user is on PageView1 and checks a checkbox I want to disable 2 PageViews(tabs) and disable a combobox and button on PageView4.

I'm trying to do this all client-side. I figured out how to disable the 2 PageViews but I am having a hard time getting the combobox and button to disable.

I appreciate your help. Thank you,
Ruth
Ruth
Top achievements
Rank 1
 answered on 16 Nov 2011
8 answers
211 views
Hello,

We found a <br> tag while we switched from Design mode to HTML mode and it happens while the content is cleared ( or emtpy in the beginning) in Design mode. it started giving this issue after we set contentFilter="none" as you suggested for style issue.

even it doesn't seem to be an issue, our client may see the <br> tag and get confused. Please let us know how it needs to be handled.

Thanks
Venkat
koteswararao
Top achievements
Rank 1
 answered on 16 Nov 2011
1 answer
136 views
I followed the documentation on using the radtooltip with a standard asp validation summary and standard asp button as per on page:

http://demos.telerik.com/aspnet-ajax/tooltip/examples/clientsideapi/defaultcs.aspx

And successfully got this working, but when I tried to use a radbutton instead of a standard asp button I get a microsoft JScript runtime error: Object Expected

Below is my code:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="nomastervaltest.aspx.vb"
    Inherits="nomastervaltest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <script type="text/javascript">
     //<![CDATA[
            function HideTooltip() {
                var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();
                if (tooltip) tooltip.hide();
            }

            function ShowTooltip() {
                window.setTimeout(function () {
                    var tooltip = $find("RadToolTip1");
                    //API: show the tooltip
                    tooltip.show();
                }, 10);
            }

            function CheckIfShow(sender, args) {
                var summaryElem = document.getElementById("ValidationSummary1");

                //check if summary is visible
                if (summaryElem.style.display == "none") {
                    //API: if there are no errors, do not show the tooltip
                    args.set_cancel(true);
                }
            }

        
     //]]>
        </script>
       
        <asp:TextBox ID="txtCompany" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvCompany" runat="server" ControlToValidate="txtCompany"
            Text="!" ErrorMessage="The company name is obligatory!">
        </asp:RequiredFieldValidator>
        <telerik:RadButton ID="btnSubmit" Text="Submit" runat="server" OnClientClicking="ShowTooltip()">
        </telerik:RadButton>
        <telerik:RadToolTip runat="server" ID="RadToolTip1" Position="TopRight" HideEvent="ManualClose"
            ShowEvent="FromCode" Width="300px" RelativeTo="Element" EnableShadow="true" OnClientBeforeShow="CheckIfShow"
            TargetControlID="btnSubmit">
           <asp:ValidationSummary ID="ValidationSummary1" runat="server"/>
        </telerik:RadToolTip>
         
    </div>
    </form>
</body>
</html>


Many thanks for your help...
Fraser
Marin Bratanov
Telerik team
 answered on 16 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?