Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
149 views
I have a grid and in the grid I have a template column which is an asp checkbox called "Purchase". I have a client side event handler for the onclick of the checkbox. I need to find the row of the check box just checked. I do not want to use a gridclientselectcolumn because I don't want the user to be able to click anywhere in the row to select the row - I only want them to be able to select the row by clicking in the checkbox. What is the code needed on the javascript side to find what row was just clicked?

Thanks,
Laura
Laura
Top achievements
Rank 1
 answered on 12 Dec 2008
1 answer
118 views
Hi,

I'm not sure if this is the right place to ask but maybe some of you might have any hints for me. I have an ajax enabled web page with a telerik RadComboBox and a VE map control on it. When I use the combo box to update the map an ajax request is performed. This request is quite slow (about 3s). First, I thought it might be a slow database connection but I found out (using System.Diagnostics.StopWatch) that the execution of the codebehind event handlers takes only 100ms while the whole ajax request takes 3s.
What could be the reason for that difference? Are there any means of improving the performance of an ajax request?

Best regards,
Robert
Maria Ilieva
Telerik team
 answered on 12 Dec 2008
7 answers
812 views
is it possible to set default values within the web.config file for specific controls?
Perhaps the direction I am headed is incorrect, but I don't see another way to deal with this other than stepping very very deep into the skin files themselves, which I don't really want to do.
for eg. It is possible to set the skin using
<appSettings> 
        <add key="Telerik.Skin" value="Vista" /> 
     </appSettings> 

but is is also possible the to default settings like AllowRowSelect for the R.A.D. grid?
ie
 <add key="Telerik.Radgrid.ClientSettings.Selecting.AllowRowSelect" value="True"/>

Wondering if I am perhaps going about this wrong. I tried using a standard .skin file in my theme folder, but kept getting Unknown server Tag 'telerik:RadGrid'.

This was the skin I was attempting to use.
 
 <telerik:RadGrid Width="100%" SkinId="Postings"   runat="server"   
    GridLines="None"  BackColor="gold" AllowPaging="True">  
        <MasterTableView  AutoGenerateColumns="False">  
              <PagerStyle Mode="NextPrevAndNumeric" /> 
            <RowIndicatorColumn Visible="False">  
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn Resizable="False" Visible="False">  
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
            <EditFormSettings> 
                <PopUpSettings ScrollBars="None" /> 
            </EditFormSettings> 
            
        </MasterTableView> 
        <ClientSettings Selecting-AllowRowSelect="true">  
        </ClientSettings> 
        
    </telerik:RadGrid> 
thanks for your time and effort. the controls are really quite fantastic.
mac
Marty
Top achievements
Rank 1
 answered on 12 Dec 2008
3 answers
53 views
Hi, I have found a small (but annoying) problem with the latest version of RadGrid (2008/Q3/1125) in VS2008:

I manually added a grid to my page (in the source/markup view):
<telerik:RadGrid ID="grid" runat="server" OnNeedDataSource="grid_NeedDataSource"
    <MasterTableView AutoGenerateColumns="true"
        <ItemStyle CssClass="tr0" /> 
        <AlternatingItemStyle CssClass="tr1" /> 
    </MasterTableView> 
</telerik:RadGrid> 

As soon as I switch to the design view use the smart tag (e.g. to set the AutoGenerateColums option), my markup code is changed and looks totally cluttered:
        <telerik:RadGrid ID="grid" runat="server" OnNeedDataSource="grid_NeedDataSource" AutoGenerateColumns="False"  
                GridLines="None">  
<HeaderContextMenu EnableTheming="True"
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</HeaderContextMenu> 
 
            <MasterTableView AutoGenerateColumns="True" ShowHeader="false"
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
 
                <ItemStyle CssClass="tr0" /> 
                <AlternatingItemStyle CssClass="tr1" /> 
            </MasterTableView> 
 
<FilterMenu EnableTheming="True"
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
        </telerik:RadGrid> 
 

Can this be prevented?

Regards,
Martin
Martin
Top achievements
Rank 1
 answered on 12 Dec 2008
1 answer
163 views
Hi,

Can anyone tell me if there is a simple solution to this problem?
When I click a menu item (horizontal menu) or one of it's children, I must have the current menu item highlighted like when I hover over the item, but then fixed. If I click another item this item must get highlighted.

How can this be done?

Thanks in advance,
Frank 
Princy
Top achievements
Rank 2
 answered on 12 Dec 2008
1 answer
125 views
Hi,

Seems like the get_popupElement is missing in the api documentation.
The get_element function returnes an input element which is not so obvious.
Since the get_element function doesn't return what I was expected the get_popupElement comes handy.
Hope this can help other developers too.
Georgi Tunev
Telerik team
 answered on 12 Dec 2008
0 answers
57 views
Edit: Solved
staron
Top achievements
Rank 1
 asked on 12 Dec 2008
6 answers
370 views
Hi

I have code :
<telerik:RadGrid ID="GridAdvert" runat="server" > 
         <MasterTableView DataKeyNames="id" >                        
           <EditFormSettings EditFormType="Template"  > 
            <EditColumn UniqueName="EditCommandColumn1">   
            </EditColumn>        
             <FormTemplate> 
                 
                  <telerik:RadComboBox ID="findCompanyBox" runat="server" Skin="Inox"               
                    AllowCustomText="True" ShowToggleImage="True" ShowMoreResultsBox="true" 
                    EnableLoadOnDemand="True" EnableVirtualScrolling="true"   
                    Width="200px" Height="200px"   
                    ZIndex="10000" OnItemsRequested="findCompanyBox_ItemsRequested" > 
                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                  </telerik:RadComboBox>                    
 
             <asp:Button ID="UpdateButton" OnClientClick="Save(this, event);" Text="Save"   
                    runat="server" /> 
            </FormTemplate>                                                  
           </EditFormSettings>                    
          </MasterTableView> 
         </telerik:RadGrid> 

in code behind I have :

protected void findCompanyBox_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)  
{  
   RadComboBox findCompanyBox = new RadComboBox();  
   findCompanyBox = (RadComboBox)GridAdvert.FindControl("findCompanyBox");  


After I call :
findCompanyBox = (RadComboBox)GridAdvert.FindControl("findCompanyBox");
... I get > findCompanyBox = null

My question is . How can I find RadComboBox control in Girid FormTemplate ???

Regards
Krzysztof






Krzysztof
Top achievements
Rank 1
 answered on 12 Dec 2008
5 answers
134 views

Hello All,

I am working on a RadGrid to pull data from the database, then added a select button to popup a RadWindow to show more details of that file, it works OK. But when I filter the grid, then click on the select button it will display the wrong data for a different row like it wasn't filtered here is the aspx:

<rad:radwindowmanager id="RadWindowManager1" runat="server" MinimizeZoneId="HorizontalMinimize" DestroyOnClose="True" Behavior="Maximize, Close, resize" Left="" NavigateUrl="" SkinsPath="~/RadControls/Window/Skins" Title="" Top="" Modal="True" Width="600px" Height="400px">  
        <Windows> 
            <rad:RadWindow ID="RadWindow1" runat="server" Left="" NavigateUrl="RadPhys.aspx" SkinsPath="~/RadControls/Window/Skins" 
            Title="Physician Information" Top="" /> 
        </Windows> 
    </rad:radwindowmanager> 
<radg:radgrid id="rgPhysician" runat="server" AutoGenerateColumns="False" GridLines="None" 
AllowFilteringByColumn="true" Skin="WebBlue" > 
    <MasterTableView DataKeyNames="PhysID">  
            <Columns> 
              <radG:GridTemplateColumn UniqueName="TemplateColumn">  
                <ItemTemplate> 
                    <asp:LinkButton ID="btnViewPhysician" runat="server" CommandName="Select" Text="Select">Select</asp:LinkButton> 
                </ItemTemplate> 
              </radG:GridTemplateColumn> 
              <radG:GridBoundColumn DataField="PhysID" Display="False" HeaderText="PhysID" 
                    ReadOnly="True" UniqueName="PhysID">  
              </radG:GridBoundColumn> 
              <radG:GridBoundColumn DataField="ContactType" Display="False" HeaderText="ContactType" 
                    ReadOnly="True" UniqueName="ContactType">  
              </radG:GridBoundColumn>              
              <radG:GridBoundColumn DataField="PhysFullName" HeaderText="Name" UniqueName="PhysFullName">  
              </radG:GridBoundColumn> 
              <radG:GridBoundColumn DataField="PhysSpeciality" HeaderText="Speciality" UniqueName="PhysSpeciality">  
              </radG:GridBoundColumn> 
              <radG:GridBoundColumn DataField="Office" HeaderText="Office" UniqueName="Office">  
              </radG:GridBoundColumn> 
            </Columns> 
        <RowIndicatorColumn Visible="False">  
            <HeaderStyle Width="20px" /> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn Visible="False">  
            <HeaderStyle Width="19px" /> 
        </ExpandCollapseColumn> 
    </MasterTableView> 
</radg:radgrid><br /> 
    <radA:RadAjaxManager ID="RadAjaxManager1" runat="server" EnablePageHeadUpdate="False">  
                <AjaxSettings> 
                    <radA:AjaxSetting AjaxControlID="RadWindowManager1">  
                        <UpdatedControls> 
                            <radA:AjaxUpdatedControl ControlID="RadWindowManager1" /> 
                        </UpdatedControls> 
                    </radA:AjaxSetting> 
                </AjaxSettings> 
</radA:RadAjaxManager> 

Here is the VB.NET

Imports Telerik.Web.UI  
Imports System.Collections  
Imports System.Data.SqlClient  
Imports System.Web.UI  
Imports System.Web.UI.WebControls  
Imports System.Web.UI.WebControls.WebParts  
Imports System.Web.UI.HtmlControls  
Imports System.Security.Principal  
Imports AjaxControlToolkit  
 
Partial Class PhysList  
    Inherits System.Web.UI.UserControl  
    Public dataConn As New PhoneBookDLL.dl  
 
    Protected Sub rgPhysician_Init(ByVal sender As ObjectByVal e As System.EventArgs) Handles rgPhysician.Init  
        Dim menu As GridFilterMenu = rgPhysician.FilterMenu  
        Dim i As Integer = 0  
        While i < menu.Items.Count  
            If menu.Items(i).Text = "NoFilter" Or menu.Items(i).Text = "Contains" Or menu.Items(i).Text = "EqualTo" Or menu.Items(i).Text = "StartsWith" Or _  
         menu.Items(i).Text = "EndsWith" Then 
                i = i + 1  
            Else 
                menu.Items.RemoveAt(i)  
            End If 
        End While 
    End Sub 
 
    Protected Sub rgPhysician_NeedDataSource(ByVal source As ObjectByVal e As Telerik.WebControls.GridNeedDataSourceEventArgs) Handles rgPhysician.NeedDataSource  
        Dim getDS As New DataSet  
        getDS = dataConn.PhoneActivePhys()  
        rgPhysician.DataSource = getDS.Tables(0).DefaultView  
    End Sub 
 
    Public Sub ViewPhysicianInfo(ByVal sender As ObjectByVal e As System.EventArgs) Handles rgPhysician.SelectedIndexChanged  
        Dim x As String = rgPhysician.MasterTableView.Items(rgPhysician.SelectedIndexes(0)).Item("PhysID").Text  
        Dim PhysID As String = rgPhysician.SelectedValue.ToString  
        'Dim PhysID As String = rgPhysician.SelectedIndexes.Item(0).ToString  
        'Dim PhysID As String = rgPhysician.SelectedItems.Item("PhysID").ToString  
        RadWindowManager1.VisibleOnPageLoad = True 
        RadWindow1.NavigateUrl = "RadPhys.aspx?ID=" & PhysID  
    End Sub 
 
    'Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
    '    If Not IsPostBack Then  
    '        Dim getDS As New DataSet  
    '        getDS = dataConn.PhoneActivePhys()  
    '        rgPhysician.DataSource = getDS.Tables(0).DefaultView  
    '        rgPhysician.DataBind()  
    '    End If  
    'End Sub  
End Class 

Thanks for all your help,
Sheheb

Iana Tsolova
Telerik team
 answered on 12 Dec 2008
2 answers
709 views
I need to step thru the code for Telerik.web.ui.dll to debug a databind issue and would like to know how to get the symbol file for the dll. Where can I download Telerik.Web.UI.pdb from?

TIA
Ramesh
Top achievements
Rank 1
 answered on 12 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?