Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
104 views
Hi,

I am using RadControls "Prometheus", version 2007.3.1425.35. With the RadEditor control, I am trying to control the styles that appear in the dropdown list for the "ApplyStyles" tool  button.  I point to an external CSS file using the <CssFiles> node in the RadEditor control, and all of the styles appear in the dropdown list.  However, when I try to restrict the ones that appear, and alias them with different names, using the <CssClasses> node, all of the classes in the CSS file still appear, and their names are not aliased.

Here is my CSS file:
.class1 {text-decoration:underline;color:Red} 
.class2 {font-weight:bold;font-size:20px} 
.class3 {font-size:10px;color:Gray} 

And here is my RadEditor:
        <telerik:RadEditor ID="RadEditor1" Runat="server"
            <Tools> 
                <telerik:EditorToolGroup> 
                    <telerik:EditorTool Name="ApplyClass" /> 
                </telerik:EditorToolGroup> 
            </Tools> 
            <CssFiles> 
                <telerik:EditorCssFile Value="StyleSheet.css" /> 
            </CssFiles> 
            <CssClasses> 
                <telerik:EditorCssClass Name="" Value="" /> 
                <telerik:EditorCssClass Name="Class one" Value=".class1" /> 
                <telerik:EditorCssClass Name="Class two" Value=".class2" /> 
            </CssClasses> 
        </telerik:RadEditor> 


As I understand things, the <CssClasses> node should restrict the control to only showing ".class1" and ".class2", and they should be aliased with the names "Class one" and "Class two" in the dropdown.  However, then I look at the dropdown that appears for the "ApplyClass" tool when I run the page, I still see all three styles, with their original names (class1, class2, and class3).

I have also tried this putting the <CssClasses> information in the ToolsFile.xml, as shown below, with the same results.  Here is the tools files I used:

<root> 
  <tools> 
    <tool name="FormatCodeBlock"/> 
    <tool name="ApplyClass"/> 
  </tools> 
  <classes> 
    <class name="Class one" value=".class1" /> 
    <class name="Class two" value=".class2" /> 
  </classes> 
 
</root> 

I noticed a similar post was made to the forum previously:

I downloaded the sample project and ran it  The referenced style sheet "EditorTestStylesheet.css" was missing from the download, so I just put the following classes in the Default.aspx page:

    <style> 
        .FeatureTitle {text-align:center;} 
        .StandardText {text-align:center;} 
        .NewText {text-align:center;} 
    </style> 

Once again,  the ones listed in the <CssClasses> node of the RadEditor were not aliases, and the one that was in the CSS but not in the <CssClasses> node still appeared.  The screen shot from that forum post also shows that the css classes were not aliased.  

My question is: how do I restrict which classes in the CSS file appear in the ApplyClasses dropdown, and how do I alias them with user-friendly names?

I would appreciate any assistance you could give me in the matter.  Thank you so much for your help.

Joe

Joseph Alfano
Top achievements
Rank 1
 answered on 31 Jul 2009
1 answer
140 views
Hi,

in my project i used masterpage and content page, in masterpage i have treeview ,when i click treeview the masterpage treeview also geeting postback, how to avoid master page postback?

Masterpage:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Main_Master.master.cs"
 Inherits="Web_Master_Pages_Main_Page" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >
<html>
<head id="Head1" runat="server">
 <title>Focalpoint - Manager's Compensation Tool</title>
 <link id="Link1" runat="server" />
 </head>
<body style="margin: 0px; margin-left: 2px; background-color: Gainsboro;">
 <form id="form1" runat="server">
  
  <div>
   <telerik:RadScriptManager ID="rsm" runat="server">
   </telerik:RadScriptManager>   
   
    <table cellpadding="0" cellspacing="0">
     <tr runat="server" id="WelcomeHeader" visible="false">
     </tr>
     <tr runat="server" id="MainHeader" visible="True">
      <td style="width: 990px">
       <table id="Table4" cellpadding="0" cellspacing="0" style="background-color: #96b2ca;
        width: 990px;" border="0">
        <tr>
              <td style="height: 17px;" align="right">
                   <asp:Label ID="lblMainWelcome" runat="server" Font-Bold="true" Font-Size="12px" ForeColor="White"
           Font-Names="Arial" Font-Italic="true"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;|
              </td>
        </tr>
       </table>
      </td>
     </tr>
     <%--<tr runat="server" id="WelcomeSection" visible="False">
     <td style="width: 990px">
      <asp:ContentPlaceHolder ID="WelcomeContent" runat="server">
      </asp:ContentPlaceHolder>
     </td>
    </tr>--%>
     <tr runat="server" id="MainSection" visible="True">
      <td style="width: 990px">
       <table cellpadding="0" cellspacing="0" style="background-color: #F0F0F0;">
        <tr>
         <td>
          <telerik:RadSplitter ID="RadSplitter1" Skin="WebBlue" runat="server" Width="990px"
           Height="538px">
           <telerik:RadPane ID="RadPane1" runat="server" Width="145px" BackColor="#F0F0F0">
           <asp:UpdatePanel id="UpdatePanel1" runat ="server">
           <ContentTemplate >
           <table cellpadding="0" cellspacing="0" style="background-color: #F0F0F0;">
             <tr>
              <td style="width: 200px; background-color: #f0f0f0;">
               <telerik:RadTreeView ID="MenuRadTreeView" SSL="true" runat="server" AutoPostBack="True"
                OnNodeClick="MenuRadTreeView_NodeClick">
               </telerik:RadTreeView>
              </td>
             </tr>
            </table>
            </ContentTemplate>
           </asp:UpdatePanel>
            
           </telerik:RadPane>
           <telerik:RadSplitBar ID="RadSplitBar1" Width="450px" runat="server" CollapseMode="None" />
           <telerik:RadPane ID="RadPane2" runat="server">
            <asp:ContentPlaceHolder ID="MainContentPlaceHolder" runat="server">
            </asp:ContentPlaceHolder>
           </telerik:RadPane>
          </telerik:RadSplitter>
         </td>
        </tr>
       </table>
      </td>
     </tr>
     <tr>
      <td style="width: 990px">
       <table id="Table3" style="height: 8px; background-color: #F0F0F0;" cellspacing="0"
        cellpadding="0" width="990" border="0">
        <tr>
         <td style="background-color: white;">
          <table id="Table1" style="height: 8px; background-color: #F0F0F0;" cellspacing="0"
           cellpadding="0" width="990" border="0">
           <tr align="left">
            <td align="left" style="height: 20px;">
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             <asp:Image ID="LoadingImage" runat="server" ImageUrl="~/App_Images/images/saveTrpt.gif"
              ImageAlign="texttop" Width="65" Height="13" />
             <telerik:RadAjaxLoadingPanel ID="FooterAjaxLoadingPanel" runat="server">
              <asp:Image ID="Image1" runat="server" AlternateText="Saving..." ImageUrl="~/App_Images/images/LoadingProgressBar.gif"
               ImageAlign="Middle" />
             </telerik:RadAjaxLoadingPanel>
            </td>
            <td align="left" style="height: 20px; padding-left: 10px;">
             &nbsp;<asp:Label ID="SaveMessagelbl" runat="server" SkinID="GreenviewSkinLabel" Font-Bold="True"
              Font-Size="11px" Style="font-family: Arial;" Width="660px" /></td>
            <td align="right" bgcolor="whitesmoke" colspan="2" valign="top">
             <asp:Image ID="Image2" runat="server" ImageUrl="~/App_Images/images/LaserBeam.gif" /></td>
           </tr>
          </table>
         </td>
        </tr>
       </table>
      </td>
     </tr>
    </table>
  
  </div>
  
 </form>
</body>
</html>

Content page:

<%@ Page Language="C#" MasterPageFile="~/Web_Master_Pages/Main_Master.master"  AutoEventWireup="true" CodeFile="xmlservices.aspx.cs" Inherits="Web_Pages_Dev_xml_xmlservices" Title="" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" Runat="Server">
<script type="text/javascript" src="../../Web_Javascript/Common.js">
</script>
 
<telerik:RadAjaxManager ID="RadAjaxManager1" ClientEvents-OnRequestStart="xmlservicesconditionalPostback" runat="server" >        
     <AjaxSettings>    
          <telerik:AjaxSetting AjaxControlID="PanelXmlservices">
              <UpdatedControls >                         
                <telerik:AjaxUpdatedControl ControlID="PanelXmlservices" />
                    <telerik:AjaxUpdatedControl ControlID="MenuRadTreeView" />     
             <telerik:AjaxUpdatedControl ControlID="SaveMessagelbl"  />
             <telerik:AjaxUpdatedControl ControlID="LoadingImage" LoadingPanelID="FooterAjaxLoadingPanel" />    
             </UpdatedControls >        
         </telerik:AjaxSetting>                            
            </AjaxSettings>
     </telerik:RadAjaxManager>
       
    <div align="left" style="background-color:White; height:535px;">
      <asp:Panel ID="PanelXmlservices" runat="server"  BackColor="white">

     <table cellpadding="0" align="left"  cellspacing="0" border="0" width="100%"  style="background-color:white;">
                  <tr>
                 <td style="width: 800px;padding-left:20px;padding-top:20px;">
      
       
         <div align="center" >
         <asp:Panel ID="excelPanel" runat="server" Width="100%"   >
        
           <fieldset id ="fldexcel" runat ="server" style=" border-right: dodgerblue 1px solid; border-top: dodgerblue 1px solid; border-left: dodgerblue 1px solid; border-bottom: dodgerblue 1px solid; background-color: #ffffff; text-align: center;padding-Left:10px;">
    <legend style="font-family:Arial; font-weight:bold; font-size:small; color: #000000;">
        Load Spread Sheet</legend>
               <table style="width: 781px">
              
               <tr><td align="left">
   <asp:Label ID="ccc" runat="server" Text="Template" Font-Names="Arial" Font-Size="Small"></asp:Label></td>
    <td align="left" >
        <asp:DropDownList ID="drpTemplate" runat="server" Width="150px" SkinID="DropDownSkin" AutoPostBack="True" OnSelectedIndexChanged="drpTemplate_SelectedIndexChanged">
        </asp:DropDownList></td>
    </tr>
       <tr>
<td style="height: 28px" align="left">
  <asp:Label ID="lblselectfile" runat="server" Font-Names="Arial" Text="Excel File"
  Font-Size="Small"></asp:Label>
  </td>
     
                                            
</tr>
<tr>
<td style="height: 28px" align="left">
 <asp:Label ID="lblSheet" runat="server" Font-Names="Arial" Text="Sheet Name" Visible="true"
  Font-Size="Small"></asp:Label></td>
 
<td style="height: 28px;" align="left">
    <asp:TextBox ID="TxtSheetName" runat="server" Width="145px" Visible="true" ></asp:TextBox>
</td>
</tr>
 </table>
 <br />
 <table>
<tr>
 </tr>

     
        <tr>
       <td colspan="3">
           <asp:Label ID="lblLocationpath" runat="server" Visible="false"  Text="Label"></asp:Label>
           <asp:Label ID="lblemsg" runat="server" Font-Bold="True" Font-Size="Smaller" ForeColor="Red" Font-Names="Arial"></asp:Label></td>
       </tr>
       </table>
        </fieldset>
        <br />
        <br />
         <table cellpadding="0" cellspacing="0"  >
     <tr >
      <td>
  
         
           <fieldset id ="fldexcelxml" runat ="server" style=" border-right: dodgerblue 1px solid; border-top: dodgerblue 1px solid; border-left: dodgerblue 1px solid; border-bottom: dodgerblue 1px solid; background-color: #ffffff; text-align: center;">
    <legend style="font-family:Arial; font-weight:bold; font-size:small; color: #000000;">
        Validate Spread Sheet</legend>
          <br />
           <telerik:RadGrid ID="Grdxmlvalidate" ShowFooter="True"    EnableEmbeddedSkins ="false"   runat="server" AllowPaging="true" PageSize= "5"
                                GridLines="None"    AutoGenerateColumns="False" HeaderStyle-HorizontalAlign="Center"
                                FooterStyle-Font-Bold="true" FooterStyle-HorizontalAlign="left" HeaderStyle-Height="15px" EditItemStyle-Width="98%" OnPreRender="Grdxmlvalidate_PreRender" OnItemCommand="Grdxmlvalidate_ItemCommand" OnNeedDataSource="Grdxmlvalidate_NeedDataSource">
                                <MasterTableView EditMode="InPlace" DataKeyNames="xmlnum"  Width="100%">
                                    <Columns>
                                                                                                                                                                                   
                                           <telerik:GridTemplateColumn HeaderText="Sheet Name" UniqueName="TemplateColumn7" >
                                            <ItemTemplate>
                                                <asp:Label ID="lblsheetname" runat="server" Text='<%# Eval("sheetname") %>' Width="150px">
                                                </asp:Label>
                                                </ItemTemplate>
                                            <HeaderStyle Width="150px" />
                                            <ItemStyle HorizontalAlign ="left" />
                                        </telerik:GridTemplateColumn>
                                       
                                         <telerik:GridTemplateColumn HeaderText="Schema" UniqueName="TemplateColumn7" Visible="false">
                                            <ItemTemplate>
                                                <asp:Label ID="lblschemaname" runat="server" Text='<%# Eval("xmlschema") %>'>
                                                </asp:Label>
                                                </ItemTemplate>
                                            <HeaderStyle Width="120px" />
                                        </telerik:GridTemplateColumn>                                                                                                       
                                       
                                                                         </Columns>
                                    <EditFormSettings>
                                        <EditColumn UniqueName="EditCommandColumn1">
                                        </EditColumn>
                                    </EditFormSettings>
                                    <ExpandCollapseColumn Visible="False">
                                        <HeaderStyle Width="19px" />
                                    </ExpandCollapseColumn>
                                    <RowIndicatorColumn Visible="False">
                                        <HeaderStyle Width="20px" />
                                    </RowIndicatorColumn>
                                   <PagerStyle Mode="NextPrev" />
        <ItemStyle  Font-Bold ="true" Font-Names ="Arial" Font-Size ="11px" />
                                </MasterTableView>
                                <ClientSettings>
                                    <Selecting AllowRowSelect="True" />
                                </ClientSettings>
                                <HeaderStyle BackColor="#92B4E1" Height="15px" HorizontalAlign="Center" />
                                <FooterStyle Font-Bold="True" HorizontalAlign="Left" />
                                <EditItemStyle Width="98%" />
                            </telerik:RadGrid><br />
                    <asp:Button ID="btnvalidate" runat="server" Text="Validate" Enabled="false"  OnClick="btnvalidate_Click" Font-Size="Smaller" />

                            </fieldset>
                            </td>
                            </tr></table>
                           
                            <table>
                           <tr>
                           <td style="width: 443px">
                          <asp:GridView ID="GridViewerr" AutoGenerateColumns="false" runat="server" BackColor="White"  Width="433px"  >
                         <Columns>
                         <asp:TemplateField HeaderText="xmlnum" Visible="False">
                          <ItemTemplate>
                          <asp:Label ID="lblxmlnum" runat="server" Text='<%# Eval("xmlnum") %>'>
                          </asp:Label>
                         </ItemTemplate>
  
   
                       </asp:TemplateField>
                        <asp:TemplateField HeaderText="Possible errorneous columns">
                          <ItemTemplate>
                             <asp:Label ID="lblxmlerr" runat="server" Text='<%# Eval("valerr") %>'>
                          </asp:Label>
                         </ItemTemplate>
                            <HeaderStyle Font-Bold="True" Font-Names="arial" Font-Size="Smaller" ForeColor="White" />
  
   
                       </asp:TemplateField>
                       </Columns>
                              <HeaderStyle BackColor="#2C8FC8" />
                       </asp:GridView>
                            </td>
                            </tr>
                            </table>
             <asp:Label ID="lblerrdatatype" runat="server" SkinID="RedviewSkinLabel"></asp:Label><br />
           </asp:Panel>
        </div>
      
        
 
        </td>
        </tr>
        </table>
                           </asp:Panel>
      
    </div>
   
    </asp:Content>

 

 

Pavlina
Telerik team
 answered on 31 Jul 2009
1 answer
121 views
Hi,

By default sort icons are placed to the right of column header text. Is it possible to place some of the sort icons to the left of text and other to the right? That would look better when some column headers are left aligned and other right aligned.
Pavlina
Telerik team
 answered on 31 Jul 2009
3 answers
182 views
Hi I have a web service I am trying to get working to bind data to grid:
 [OperationContract] 
        public ResultData GetDataAndCount(int startRowIndex, int maximumRows, string sortExpression, string filterExpression) 
        { 
            GridBindingData data = RadGrid.GetBindingData("Waivenet.DataClassesDataContext""productAttrib", startRowIndex, maximumRows, sortExpression, filterExpression); 
            ResultData result = new ResultData(); 
            //var products = DataClassesDataContext.uspGetProductsByCategory(SessionWrapper.userID); 
            //data.Data = DataClassesDataContext.uspGetProductsByCategory(SessionWrapper.userID); 
            result.Data = data.Data.OfType<DataClassesDataContext.uspGetProductsByCategory(SessionWrapper.userID)>().Select(p => new Product() 
            { 
                productID = p.productID, 
                productCode = p.productCode, 
                name = p.name, 
                description = p.description, 
                quantType = p.quantType, 
                sellPrice = p.sellPrice, 
                uom = p.uom, 
                imageThumb = p.imageThumb, 
                categoryID = p.categoryID 
            }).ToList(); 
            result.Count = data.Count; 
             
            Debug.WriteLine("row index: " + startRowIndex + ", max rows:" + maximumRows + ", sort expression: " + sortExpression + ", filter expression: " + filterExpression); 
            return result; 
        } 
the above doesnt work, anyone have an example of a working WCF webservice that is bound from a stored procedure?
Nikolay Rusev
Telerik team
 answered on 31 Jul 2009
0 answers
106 views
Hi,

We are experiencing a weird issue when we use both menu and context menu in a same page. We have a page, with menu and tree view controls. The menu does not contains any images and the text in that are left aligned with no 1px space.  In the tree view control we have a context menu with image before the menu text. Since the telerik menu and the context menu shares/uses the common stylesheets we could either have only the menu with text or with image and not both.  Whenever we try to open the context menu, the space in the top menu is also getting increased.

Our requirement is to have a menu with the left aligned text (both toplevel and sublevel) and the context menu with image and text in that. Is it possible to use different stylesheets for various menus?

Thanks & Regards,
Kamal
Kamalakannan D
Top achievements
Rank 2
 asked on 31 Jul 2009
4 answers
237 views
Hi,
         Please could you provide me with a way of expanding the rad dock with a double click. It is an urgent need in my project.

Thank you

Regards,
Ajit
ajit
Top achievements
Rank 1
 answered on 31 Jul 2009
3 answers
126 views
We have a user control that allows us to enable/disable the filtering display on a grid via Javascript. The control looks like this:

<table cellpadding="2" cellspacing="2" border="0"
    <tr> 
        <td width="1"><asp:Image runat="server" ImageUrl="~/_assets/images/Filter.gif" /></td
        <td>Show Filtering Options: </td> 
        <td> 
            <input type="radio" name="<%=this.Grid.ClientID%>ButtonGroup" onclick="showFilterItem('<%=this.Grid.ClientID%>')" /> 
            <label for="<%=this.Grid.ClientID%>ButtonGroup">Yes</label> 
            <input type="radio" name="<%=this.Grid.ClientID%>ButtonGroup" checked="true" onclick="hideFilterItem('<%=this.Grid.ClientID%>')"/> 
            <label for="<%=this.Grid.ClientID%>ButtonGroup">No</label> 
        </td> 
    </tr> 
</table> 

The code-behind looks like this:

        protected void Page_Load(object sender, EventArgs e) 
        { 
            InitControl(); 
        } 
 
        protected void InitControl() 
        { 
            if (!Page.ClientScript.IsClientScriptBlockRegistered("CodeScript")) 
            { 
                string java = @"function showFilterItem(GridName) {
                        var c = document.getElementsByName(GridName + 'ButtonGroup');
                        c.item(0).checked = true;
                        $find(GridName).get_masterTableView().showFilterItem();}
        
                    function hideFilterItem(GridName) {
                        var c = document.getElementsByName(GridName + 'ButtonGroup');
                        c.item(1).checked = true;
                        $find(GridName).get_masterTableView().hideFilterItem();}
                    function GridCreated(sender, eventArgs) { 
                        hideFilterItem(sender.get_id());}"
 
                Page.ClientScript.RegisterClientScriptBlock(GetType(), "CodeScript", java, true); 
                Grid.ClientSettings.ClientEvents.OnGridCreated = "GridCreated"
            } 
 
            //Grid.ClientSettings.ClientEvents.OnDataBound = "hideFilterItem('" + RadGridClientId + "')"; 
        } 
 
        public string RadGridId { getset; } 
 
        RadGrid _Grid; 
        protected RadGrid Grid 
        { 
            get 
            { 
                if (_Grid == null
                { 
                    //_Grid = (RadGrid)((Novelis.MetalProcurement.Web.site)Page.Master).FindControl(this.Parent, RadGridId); 
                    _Grid = this.Parent.FindControlRecursive(this.RadGridId) as RadGrid; 
                    _Grid.ItemCreated += new GridItemEventHandler(_Grid_ItemCreated); 
                } 
                return _Grid; 
            } 
        } 
 
        void _Grid_ItemCreated(object sender, GridItemEventArgs e) 
        { 
            if (!IsPostBack && e.Item is GridFilteringItem) 
            { 
                //Grid.ClientSettings.ClientEvents.OnGridCreated = "hideFilterItem('" + RadGridClientId + "')"; 
                //e.Item.Style["display"] = "none"; 
            } 
        } 
 
        public string RadGridClientId 
        { 
            get { return Grid.ClientID; } 
        } 
 
        public string RadioGroupName 
        { 
            get { return RadGridClientId + "ButtonGroup"; } 
        } 
 

Everything works great on a "normal" grid on a page and it even works great when you have X grids inside X tabs that are all using this control. The issue I'm running into is when I have a grid inside a RadPanelBarItem like so:

                <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="575px" ExpandMode="SingleExpandedItem"
                    <Items>                         
                        <telerik:RadPanelItem runat="server" Text="Step 1: Select Product" Value="ProductSelector" Expanded="true" Selected="true"
                            <Items> 
                                <telerik:RadPanelItem runat="server"
                                    <ItemTemplate> 
                                        <uc:rgfilman ID="ucFilMan" runat="server" RadGridId="rgProducts" /> 
                                        <telerik:RadGrid ID="rgProducts" SkinID="Selector" Width="575px" runat="server" OnNeedDataSource="rgProducts_NeedDataSource" OnSortCommand="rgProducts_SortCommand" AllowSorting="true" SortingSettings-SortedBackColor="Transparent" AllowFilteringByColumn="true" OnDataBound="rgProducts_DataBound"
                                            <MasterTableView AutoGenerateColumns="false" DataKeyNames="Id" AllowMultiColumnSorting="true" AllowNaturalSort="true" ItemStyle-Wrap="false"
                                                <Columns> 
                                                    <telerik:GridBoundColumn DataField="Id" UniqueName="Id" Visible="false"/> 
                                                    <telerik:GridBoundColumn HeaderText="Description" DataField="Name" UniqueName="Product" />                                                     
                                                </Columns>                                                   
                                            </MasterTableView> 
                                            <ClientSettings EnableRowHoverStyle="true" Selecting-AllowRowSelect="true"
                                                <ClientEvents OnRowDblClick="__rowSelected" /> 
                                            </ClientSettings> 
                                        </telerik:RadGrid> 
                                    </ItemTemplate> 
                                </telerik:RadPanelItem> 
                            </Items> 
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelBar> 
 

The control is in there (it's the one called "uc:rgfilman") but it won't enable/disable the filtering on the client when the individual radio buttons are selected. The really frustrating part is there are zero javascript errors when I select the yes/no options. Since there aren't any errors I'm not really certain where I can start to look as to why this isn't functioning.
Scott Salyer
Top achievements
Rank 1
 answered on 31 Jul 2009
1 answer
95 views
hello

i use radgid for organizing my dvd collection. i order them according genre with some infos bout total dvds of this section.
i can break down the parentitem and will see all the dvds belonging to this genre.
through some circumstances i have to bind the datasource from my c# code. i also have to run it every time i change the page. think that is cuz it's all on one page... anyway... for the first page of the grid it's working properly but as soon as i change to page 2 or even further the childgrid shows an empty entry although there should be several entrys.

my code:  (OnPageIndexChanged & OnPageSizeChanged)
  void bindDataSource(object sender, EventArgs e)
  {
      radgridDVD.DataSource = from genres in GenreCollection
                                                select genre;
      radgridDVD.MasterTableView.DetailTables[0].DataSource = DVDCollection;
      rgResultDepositSearch.DataBind();
  }

i ran the application in debug mode and it seams like it goes back to 'select genre' after the childDataSource was bound and the childDataSource gets lost.

and also the pagecount for the detailtable somehow shows the count of the mastertable.

thanks for your help!
beat
Sebastian
Telerik team
 answered on 31 Jul 2009
5 answers
823 views
I created a page and added some user controls using RAD ajax panel. When i click on a button in the user control, the control sends an AJAX request and reloads the control as per the logic. 
But the problem is that every time I do an ajax postback page load event for all the controls gets fired. 
Is there a way to avoid it?
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 31 Jul 2009
4 answers
194 views
Hi,

I have dragged a search control on my web pages. I have a label inside the search text box, same as on this website (Search Site). I want to know, how I can get the text/label disappear, when someone clicks on the text box to enter value, and get it back when clicked outside the search box?
Can you please explain me in detail?

Thank you very much,
Jay Mehta.
Jay Mehta
Top achievements
Rank 1
 answered on 31 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?