Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
69 views
Hello,

Is it possible to change the position of the columns in the RadGrid.
Suppose there are 3 columns in the RadGrid and and I want to make the 3rd column to display in the next row so that there will be totally 2 columns and each entry has 2 rows associated. Is this possible.

Thank you.
Princy
Top achievements
Rank 2
 answered on 15 Jun 2009
1 answer
52 views
the hierarchy examples show embedded radgrids but I want to be simpler and have them separated on the page. so when you click on one the other updates etc.    someone point me to an example. thanks.
Princy
Top achievements
Rank 2
 answered on 15 Jun 2009
1 answer
107 views
Hi

I am using RadGrid (Ajax) Q1 2009 , and want to use the automatic Edit and Insert mode as far as possible to avoid
having to add FormView or Details view, making the most of the RadGrid's smart features.  (Productivity)

What is the most efficient way to ensure that required fields are not empty in this scenario?

I have set ValidationSettings to EnableValidation but I guess this only checks that the data type matches the
database column type.

Thanks

Clive
Princy
Top achievements
Rank 2
 answered on 15 Jun 2009
1 answer
77 views
Hi! I need add a column for select the row, I'm tried add the column with this code:

<Columns> 
     <telerik:GridButtonColumn CommandName="Select" Text="Select"  
         UniqueName="column" > 
     </telerik:GridButtonColumn> 
 </Columns> 

In code behind I have this:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
     foreach (GridDataItem dataItem in RadGrid1.MasterTableView.Items) 
     {     
         dataItem.Selected = true
     } 
My problem is, always select the first row on the page in the grid.

I hope for your help.


Princy
Top achievements
Rank 2
 answered on 15 Jun 2009
1 answer
94 views
Quick question...
I just downloaded the latest internal build. Do I copy and replace the files and directories in my:
"C:\Program Files (x86)\Telerik\RadControls for ASPNET AJAX Q1 2009" directory, or can I only use the internal build files in my bin directory in my application.
Thanks!
Daniel
Telerik team
 answered on 14 Jun 2009
1 answer
86 views

I have a radContextMenu inside an ajax manager (i have also tried an updatePanel too) and when  I try to fire the $find after an ajax postback I get a script error that the menu is null. Here is my code (i am not including hte declarations):

<asp:Content ID="Content2" ContentPlaceHolderID="pageContent" Runat="Server">  
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="btnSearch">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="tbCityStateZip" /> 
                    <telerik:AjaxUpdatedControl ControlID="rdMenuNarrowSearch" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
<script type="text/javascript">  
        function showMenu() {  
            var contextMenu = $find("<%#rdMenuNarrowSearch.ClientID %>");  
 
            var xy = findPos(document.getElementById('<%#Me.tbCityStateZip.ClientID %>'));  
 
            contextMenu.showAt(xy[0], xy[1]);  
 
        }  
 
 
        function findPos(obj) {  
            var curleft = curtop = 0;  
            if (obj.offsetParent) {  
                do {  
                    curleft += obj.offsetLeft;  
                    curtop += obj.offsetTop;  
 
                } while (objobj = obj.offsetParent);  
 
 
                return [curleft, curtop];  
            }  
        }  
         
         
    </script> 
      
    <div style="width: 410px; height: 300px; background: #f3f7fe; margin-top: 10px; float: left;">  
    <div style="padding-top: 10px; padding-left: 10px;  width: 375px; "<span style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size: 24px; font-weight: bold; color: #6684b3; padding-left: 3px;">Property Search</span> 
      <hr style="height: 0; border: 0; border-top: 1px solid #069; margin-top: 2px; "/>  
    </div> 
    <div style="padding-left: 10px;">  
      <table width="375" border="0" cellspacing="0" cellpadding="0" > 
        <tr> 
          <td colspan="2"><span class="propertySearchHeadings"> City &amp; State or Zip  
              </span> 
              <br /> 
              <asp:TextBox   
                  ID="tbCityStateZip" runat="server" Width="362px" CssClass="textBoxes"></asp:TextBox> 
              </td> 
        </tr> 
        <tr> 
          <td width="50%"><span class="propertySearchHeadings">Price</span> 
          <br /> 
              <asp:DropDownList ID="DropDownList1" runat="server" Width="175px" CssClass="dropDowns">  
              <asp:ListItem Text=" -- Any Price --" Value="0">            
              </asp:ListItem> 
              <asp:ListItem Text="< $50,000" Value="< 50000">            
              </asp:ListItem> 
              <asp:ListItem Text="$50,000 - $100,000" Value="50000 - 100000">            
              </asp:ListItem> 
              <asp:ListItem Text="$100,000 - $150,000" Value="100000 - 150000">            
              </asp:ListItem> 
              <asp:ListItem Text="$150,000 - $200,000" Value="150000 - 200000">            
              </asp:ListItem> 
              <asp:ListItem Text="$200,000 - $250,000" Value="200000 - 250000">            
              </asp:ListItem> 
              <asp:ListItem Text="$250,000 - $300,000" Value="250000 - 300000">            
              </asp:ListItem> 
              <asp:ListItem Text="$300,000 - $350,000" Value="300000 - 350000">            
              </asp:ListItem> 
              <asp:ListItem Text="$350,000 - $400,000" Value="350000 - 400000">   
              </asp:ListItem> 
              <asp:ListItem Text="$400,000 - $450,000" Value="400000 - 450000">            
              </asp:ListItem> 
              <asp:ListItem Text="$450,000 - $500,000" Value="450000 - 500000">            
              </asp:ListItem> 
              <asp:ListItem Text="$500,000 - $550,000" Value="500000 - 550000">            
              </asp:ListItem> 
              <asp:ListItem Text="> $550,000" Value="> 550000">            
              </asp:ListItem> 
              </asp:DropDownList> 
          </td> 
          <td width="50%"><span class="propertySearchHeadings">Beds</span> 
          <br /> 
          <asp:DropDownList ID="DropDownList2" runat="server" Width="175px" CssClass="dropDowns">  
              <asp:ListItem Text=" -- Any Beds --" Value="0">            
              </asp:ListItem> 
              <asp:ListItem Text="1" Value="1">            
              </asp:ListItem> 
              <asp:ListItem Text="2" Value="2">            
              </asp:ListItem> 
              <asp:ListItem Text="3" Value="3">            
              </asp:ListItem> 
              <asp:ListItem Text="4" Value="4">            
              </asp:ListItem> 
              <asp:ListItem Text="5" Value="5">            
              </asp:ListItem> 
              <asp:ListItem Text="6" Value="6">            
              </asp:ListItem> 
              <asp:ListItem Text="7" Value="7">            
              </asp:ListItem> 
              <asp:ListItem Text="8" Value="8">            
              </asp:ListItem> 
              <asp:ListItem Text="9" Value="9">            
              </asp:ListItem> 
              <asp:ListItem Text="10" Value="10">            
              </asp:ListItem> 
              <asp:ListItem Text="> 10" Value="> 10">            
              </asp:ListItem> 
                
              </asp:DropDownList> 
          </td> 
        </tr> 
        <tr> 
          <td><span class="propertySearchHeadings">Baths</span> 
          <br /> 
          <asp:DropDownList ID="DropDownList3" runat="server" Width="175px" CssClass="dropDowns">  
              <asp:ListItem Text=" -- Any Baths --" Value="0">            
              </asp:ListItem> 
              <asp:ListItem Text="1" Value="1">            
              </asp:ListItem> 
              <asp:ListItem Text="1.5" Value="1.5">            
              </asp:ListItem> 
              <asp:ListItem Text="2" Value="2">            
              </asp:ListItem> 
              <asp:ListItem Text="2.5" Value="2.5">            
              </asp:ListItem> 
              <asp:ListItem Text="3" Value="3">            
              </asp:ListItem> 
              <asp:ListItem Text="3.5" Value="3.5">            
              </asp:ListItem> 
              <asp:ListItem Text="4" Value="4">            
              </asp:ListItem> 
              <asp:ListItem Text="4.5" Value="4.5">            
              </asp:ListItem> 
              <asp:ListItem Text="5" Value="5">            
              </asp:ListItem> 
              <asp:ListItem Text="5.5" Value="5.5">            
              </asp:ListItem> 
              <asp:ListItem Text="6" Value="6">            
              </asp:ListItem> 
              <asp:ListItem Text="6.5" Value="6.5">            
              </asp:ListItem> 
                
              </asp:DropDownList> 
          </td> 
          <td>&nbsp;</td> 
        </tr> 
        <tr> 
          <td colspan="2" align="center">  
              <br /> 
          <asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/images/UserAccount/buttons/btn_Search.png" /> 
              </td> 
        </tr> 
      </table> 
    </div> 
  </div> 
  <div style="width: 410px; height: 300px; background: #f3f7fe; margin-top: 10px; float: right;">  
    <div style="padding-top: 10px; padding-left: 10px;  width: 375px; "<span style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size: 24px; font-weight: bold; color: #6684b3; padding-left: 3px;">Find SpinStitch On:</span> 
      <hr style="height: 0; border: 0; border-top: 1px solid #069; margin-top: 2px; "/>  
    </div> 
  </div> 
  <telerik:RadContextMenu ID="rdMenuNarrowSearch" runat="server" Skin="Office2007">  
    <Items> 
        <telerik:RadMenuItem Text="Narrow Search" Enabled="false"></telerik:RadMenuItem> 
    </Items> 
    </telerik:RadContextMenu> 
    
  <%--<div style="padding-top: 25px; clear: both"/>  
  <div style="clear: both; width: 900px; height: 29px; background:url(images/SSToursHeading/backgroundMenuBar.jpg);  "<span style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size: 24px; font-weight: bold; color: #036; padding-left: 12px;">Recent Tours</span> </div>--%> 
<asp:RequiredFieldValidator ID="valCityStateZip" runat="server" ErrorMessage="Please Enter A City & State or Zip Code." 
            SetFocusOnError="true" ControlToValidate="tbCityStateZip" Display="None"></asp:RequiredFieldValidator> 
        <cc1:ValidatorCalloutExtender ID="valEXCityStateZip" runat="server" TargetControlID="valCityStateZip">  
        </cc1:ValidatorCalloutExtender> 
          
      
</asp:Content> 

Code behind:
Partial Class PropertySearch  
        Inherits System.Web.UI.Page  
        Private _city As String = String.Empty  
        Private _state As String = String.Empty  
        Private _zipCode As String = String.Empty  
        Private _stateSet As DataSet = Nothing 
        Protected Sub btnSearch_Click(ByVal sender As ObjectByVal e As System.Web.UI.ImageClickEventArgs) Handles btnSearch.Click  
            If Not _stateSet Is Nothing AndAlso Not _stateSet.Tables Is Nothing AndAlso _stateSet.Tables(0).Rows.Count > 1 Then 
                For Each zipRow As DataRow In _stateSet.Tables(0).Rows  
                    Dim contextMenuItem As New Telerik.Web.UI.RadMenuItem  
                    contextMenuItem.Text = zipRow("CITY") & ", " & zipRow("ABBR")  
                    contextMenuItem.ToolTip = zipRow("CITY") & ", " & zipRow("ABBR")  
                    Me.rdMenuNarrowSearch.Items.Add(contextMenuItem)  
                Next 
 
 
                ScriptManager.RegisterClientScriptBlock(Me.Page, Me.Page.GetType"showContextMenu""showMenu();"True)  
            End If 
        End Sub 
 
          
         
    End Class 

If I take the menu out of an updatePanel or ajax manager, the menu will show, but does not get updated. Any thoughts?

Daniel
Daniel
Top achievements
Rank 1
 answered on 14 Jun 2009
3 answers
455 views
Is this needed when using the loading panels as it doesn't seem to find it when I try to import telerik.quickstart or telerik.quickstart.xhtmlpage
Qaja Mohiddin
Top achievements
Rank 1
 answered on 14 Jun 2009
3 answers
173 views
I am using the latest Telerik controls Q1 2009 (not SP1) and no matter what I do the base stylesheet is always embedded on the page.

I implement a custom skin for a RadMenu. In the skin file I have the following:
<telerik:RadMenu runat="server" Skin="Default" EnableEmbeddedBaseStylesheet="false" /> 
<telerik:RadMenu runat="server" Skin="Subnav" SkinID="Subnav" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" /> 

I only have ONE RadMenu throughout the entire solution, and it is on a Masterpage.  The declaration for the menu on the page is the following:
<telerik:RadMenu runat="server" ID="navigationMenu" SkinID="Subnav" EnableEmbeddedBaseStylesheet="false">......

Somehow the base stylesheet is still being embedded on the page.  I am also using some other Telerik controls on the page such as: TreeView, Grid, Tabstrip...

The main thing I need to fix is the way menus float left by default:
.RadMenu { 
float:left
position:relative
whitewhite-space:nowrap

I really just want it to appear as a block-level element.  Any suggestions or ideas on how to overcome this?  Thanks.
----

Edit: I've actually just removed every RadMenu from this project and the base stylesheet for RadMenu is still included on the page.  Is this being referenced by another Telerik control somehow?
manoj
Top achievements
Rank 1
 answered on 13 Jun 2009
2 answers
124 views
I have a hierarchical tab with 3 levels, I want to have a custom layout for my tab structure.

I want my tab structure this way, the first and second levels in horizontal direction,and the third level in vertical direction.

Tab1 Tab2 Tab3 Tab4
Tab1.1 Tab1.2 Tab1.3 Tab1.4 Tab1.5
Tab1.1.1
Tab1.1.2
Tab1.1.3
Tab1.1.4

Could anyone please help me on this.

Thanks,
Sharon Johnson
Sharon
Top achievements
Rank 1
 answered on 13 Jun 2009
2 answers
128 views
Hello,

I am building a customization of  FIleBrowserContentProvider.

From within HttpHandler's ProcessRequest, is there a way to access the instance of FileBrowserContentProvider that "initiated" the http request, so that I can access some data that I need to get the file contents to serve?

Thanks.
Jon
Top achievements
Rank 1
 answered on 12 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?