Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
109 views
I'd like to use a radToolTip to show a warning message in my radGrid edit form, when the entered value in a text box is less than the value in another text box.

Scenario: if the stock quantity is less than the minimum, show a tooltop saying something like "The stock you entered (500) is less than the minimum (1000). Please order some more.".

This isn't a validation, in other words the form can still be submitted.

Can anyone show me an example of this?
Steve Newbery
Top achievements
Rank 1
 answered on 11 Dec 2008
1 answer
67 views
Hi,
I am having a bit of trouble with the RadCombo that uses a treeview. Everything works perfectly except for the first time I try to select something from the tree. On the first attempt to click on a node in a tree I get the text of the first node and all it's childrens' nodes text concatted together as the text in the combo. If I drop down the combo a 2nd or subsequent time and select something it works as advertised. It's only on the first attempt. Below is all my client code.
Any help would be great!

function comboLoad(sender, eventArgs)  
{  
    sender.set_text(sender.get_items().getItem(0).get_value());  
}  
 
function tvCostCenter_NodeClicking(sender, args)  
{  
    var ddl = $find("Master_cntPageBody_ddlCostCenter");  
    var node = args.get_node()  
    ddl.trackChanges();  
    ddl.get_items().getItem(0).set_value(node.get_value());  
    ddl.set_text(node.get_text());  
    ddl.set_value(node.get_value());  
    ddl.commitChanges();  
    ddl.hideDropDown();  
}  
function StopPropagation(e)  
{  
    if(!e)  
        e = window.event;  
    e.cancelBubble = true;  
}  
function OnClientDropDownOpenedHandler(sender, eventArgs)  
{  
    var tree = sender.get_items().getItem(0).findControl("Master_cntPageBody_ddlCostCenter_i0_tvCostCenter");  
    var selectedNode = tree.get_selectedNode();  
    if (selectedNode)  
    {  
        selectedNode.scrollIntoView();  
    }  
}  
 
Yana
Telerik team
 answered on 11 Dec 2008
0 answers
184 views
Hi,

I´m using a page with radsplitter, 2 radpanes, one with Gmaps, and below with Radgrid.

To create markers on google maps, i'm thinking about calling a javascript function client-side, with OnRowDataBound.

We have tested, and with RowSelected, the marker is created sucessfully.

But OnRowDataBound appears to be not called.




<script type="text/javascript">

    function PlotaPontos(sender, eventArgs) {
 
        var dataItem = $get(eventArgs.get_id());
        var grid = sender;
        var MasterTable = grid.get_masterTableView();
        var row = MasterTable.get_dataItems()[dataItem.rowIndex];
        var ignition = MasterTable.getCellByColumnUniqueName(row, "Ignition")
        var lat = MasterTable.getCellByColumnUniqueName(row, "Lat");
        var lng = MasterTable.getCellByColumnUniqueName(row, "Lng");

        var point = new GLatLng(parseFloat(lat.innerText.replace(",", ".")), parseFloat(lng.innerText.replace(",", ".")));
        
        
        if (ignition.firstChild.nameProp == "ico_ignition_on.gif") {
            markerOptions = { icon: Icon_on };
        } else {
            markerOptions = { icon: Icon_off };
        }

        var marker = new GMarker(point, markerOptions);

        map.addOverlay(marker);
    }
 
</script>



        <telerik:RadPane ID="GridPane" runat="server" Width="980px" Height="300px"  
            Scrolling="None" >
                      <telerik:RadGrid ID="rgVehiclesGrid" runat="server" AllowSorting="True"
                                   AutoGenerateColumns="False" DataSourceID="dsVehiclesGrid" EnableAjax="true"
                                   EnableTheming="True" GridLines="None" Height="100%" skin="WebBlue"
                                   style="margin-right: 0px" Width="980px"
                          onitemdatabound="rgVehiclesGrid_ItemDataBound">
                                   <HeaderContextMenu EnableTheming="True" Skin="WebBlue">
                                       <CollapseAnimation Duration="200" Type="OutQuint" />
                                   </HeaderContextMenu>
                                   <MasterTableView AllowCustomSorting="True" DataSourceID="dsVehiclesGrid"
                                       EnableColumnsViewState="False" GroupLoadMode="Server"
                                       NoMasterRecordsText="Nenhum Veiculo Encontrado!">
                                       <RowIndicatorColumn>
                                           <HeaderStyle Width="20px" />
                                       </RowIndicatorColumn>
                                       <ExpandCollapseColumn Resizable="False" Visible="False">
                                           <HeaderStyle Width="20px" />
                                       </ExpandCollapseColumn>
                                       <Columns>
                                           <telerik:GridBoundColumn DataField="VehiclePlate" HeaderText="Placa"
                                               SortExpression="VehiclePlate" UniqueName="VehiclePlate">
                                               <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                               <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Width="60px" Wrap="True" />
                                               <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn DataField="TrailerPlate" HeaderText="Carreta"
                                               SortExpression="TrailerPlate" UniqueName="TrailerPlate">
                                               <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                               <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Width="60px" Wrap="True" />
                                               <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn DataField="VehicleName" HeaderText="Veículo"
                                               SortExpression="VehicleName" UniqueName="VehicleName">
                                               <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                               <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Width="70px" Wrap="True" />
                                               <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                           </telerik:GridBoundColumn>
                                           <telerik:GridTemplateColumn DataType="System.Boolean" HeaderText="LD"
                                               SortExpression="Ignition" UniqueName="Ignition">
                                               <ItemTemplate>
                                                   <asp:Image ID="Image" runat="server" AlternateText='<%# Eval("Ignition") %>' />
                                               </ItemTemplate>
                                               <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                               <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Width="40px" Wrap="True" />
                                               <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                           </telerik:GridTemplateColumn>
                                           <telerik:GridTemplateColumn HeaderText="Posição" SortExpression="LandMark"
                                               UniqueName="TemplateColumn1">
                                               <ItemTemplate>
                                                   <asp:LinkButton ID="LinkButton4" runat="server"
                                                       OnClientClick='<%# String.Format("return LandMarkClick({0})", new GLatLng(Convert.ToDouble(Eval("Lat")),Convert.ToDouble(Eval("Lng")))) %>'
                                                       Text='<%# Eval("LandMark") %>'></asp:LinkButton>
                                               </ItemTemplate>
                                               <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                               <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Width="250px" Wrap="True" />
                                               <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                           </telerik:GridTemplateColumn>
                                           <telerik:GridBoundColumn DataField="EventDateTime" DataType="System.DateTime"
                                               HeaderText="Data/Hora" SortExpression="EventDateTime"
                                               UniqueName="EventDateTime">
                                               <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                               <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Width="110px" Wrap="True" />
                                               <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn DataField="Speed" DataType="System.Decimal"
                                               HeaderText="Km/h" ReadOnly="True" SortExpression="Speed" UniqueName="Speed">
                                               <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Right"
                                                   Wrap="True" />
                                               <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Width="45px" Wrap="True" />
                                               <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Right"
                                                   Wrap="True" />
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn DataField="Rpm" HeaderText="RPM/°C" ReadOnly="True"
                                               SortExpression="Rpm" UniqueName="Rpm">
                                               <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Right"
                                                   Wrap="True" />
                                               <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Width="48px" Wrap="True" />
                                               <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Right"
                                                   Wrap="True" />
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn DataField="DriverName" HeaderText="Motorista"
                                               SortExpression="DriverName" UniqueName="DriverName">
                                               <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                               <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Width="70px" Wrap="True" />
                                               <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn DataField="Odometer" DataType="System.Decimal"
                                               HeaderText="Hodômetro" SortExpression="Odometer" UniqueName="Odometer">
                                               <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Right"
                                                   Wrap="True" />
                                               <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Width="70px" Wrap="True" />
                                               <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Right"
                                                   Wrap="True" />
                                           </telerik:GridBoundColumn>
                                           <telerik:GridTemplateColumn DataField="LD" HeaderText="Opções"
                                               UniqueName="TemplateColumn2">
                                               <ItemTemplate>
                                                   <asp:ImageButton ID="ImageButton13" runat="server"
                                                       ImageUrl="~/Images Button/ico_btn_history.gif" />
                                                   <asp:ImageButton ID="ImageButton14" runat="server"
                                                       ImageUrl="~/Images Button/ico_btn_print.gif" />
                                                   <asp:ImageButton ID="ImageButton15" runat="server"
                                                       ImageUrl="~/Images Button/ico_btn_options.gif" />
                                                   <asp:ImageButton ID="ImageButton16" runat="server"
                                                       ImageUrl="~/Images Button/ico_msg_on.gif" />
                                               </ItemTemplate>
                                               <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                               <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Width="80px" Wrap="True" />
                                               <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                   Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                                                   Wrap="True" />
                                           </telerik:GridTemplateColumn>
                                           <telerik:GridBoundColumn DataField="Lat" ReadOnly="True" SortExpression="Lat"
                                               UniqueName="Lat" Visible="True">
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn DataField="Lng" SortExpression="Lng" UniqueName="Lng"
                                               Visible="True">
                                           </telerik:GridBoundColumn>
                                       </Columns>
                                   </MasterTableView>
                                   <SelectedItemStyle Wrap="True" />
                                   <ClientSettings>
                                       <Selecting AllowRowSelect="True" />
                                       <ClientEvents OnRowDataBound="PlotaPontos" />
                                       <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                                       <Resizing AllowColumnResize="True" ResizeGridOnColumnResize="True" />
                                   </ClientSettings>
                                   <FilterMenu EnableTheming="True" Skin="WebBlue">
                                       <CollapseAnimation Duration="200" Type="OutQuint" />
                                   </FilterMenu>
                                   <SortingSettings SortedAscToolTip="" SortedDescToolTip=""
                                       SortToolTip="Ordenar" />
                               </telerik:RadGrid>
                       
                               <asp:SqlDataSource ID="dsVehiclesGrid" runat="server"
                                   ConnectionString="<%$ ConnectionStrings:CronosConnectionString %>"
                                   SelectCommand="USP_Web_Vehicle_Grid_V1" SelectCommandType="StoredProcedure">
                                   <SelectParameters>
                                       <asp:SessionParameter Name="UserLogin" SessionField="UserId" Type="String" />
                                       <asp:Parameter DefaultValue="EventDateTime" Name="SortColumn" Type="String" />
                                       <asp:Parameter DefaultValue="DESC" Name="SortOrder" Type="String" />
                                   </SelectParameters>
                               </asp:SqlDataSource>
                                    
        </telerik:RadPane>




chhass
Top achievements
Rank 1
 asked on 11 Dec 2008
2 answers
264 views

I'm banging my head off the wall here trying to understand why these events aren't being called like I would expect them to.

If you look at my grid definition below you'll see its very basic.

My question is why does ColumnCreated get called over 30 times even though I have 2 columns?  When debugging I can see they're "GridExpandColumn's".  But here's the kicker:  It's never called for EITHER of my 2 columns I've defined below.

I also tried hooking up OnColumnCreating and it doesn't even get called at all.  So you have Created getting called over 30 times, and Creating getting called 0 times.  This doesn't make sense to me.  Normally the Creating event preludes the Created event.

What I am actually trying to do is localize the HeaderText value on the columns.  Not from a .NET resource file but from a database driven implementation. Now normally I would just insert some script blocks and change the HeaderText property to something like HeaderText='<%# ResourceHelper.GetString("keyName") %>' but its not a databound control and doesn't let me.

So I wanted to use ColumnCreated to just feed in whatever I set in the HeaderText value into my ResourceHelper class and return a string.

What do you suggest?

<Telerik:RadGrid ID="grdLanguage" runat="server" SkinID="Default" AllowPaging="True" AllowSorting="True" Width="500px" OnColumnCreated="grdLanguage_ColumnCreated" OnItemCommand="grdLanguage_ItemCommand" OnNeedDataSource="grdLanguage_NeedDataSource">  
    <PagerStyle AlwaysVisible="True" Position="Bottom" /> 
    <ClientSettings EnableRowHoverStyle="True" Selecting-AllowRowSelect="True" Resizing-AllowColumnResize="True" /> 
    <MasterTableView DataKeyNames="LanguageId" EditMode="InPlace" AllowFilteringByColumn="False" AutoGenerateColumns="False" CommandItemDisplay="Top" AllowSorting="True" AllowNaturalSort="False" EnableHeaderContextMenu="True">  
        <ItemStyle Height="22px" /> 
        <AlternatingItemStyle Height="22px" /> 
        <CommandItemTemplate> 
            [Insert controls here...removed for simplicity]  
        </CommandItemTemplate> 
        <PagerTemplate> 
            <UserControl:RadGridPager ID="pgLanguage" runat="server" /> 
        </PagerTemplate> 
        <SortExpressions> 
            <Telerik:GridSortExpression FieldName="LanguageName" /> 
        </SortExpressions> 
        <Columns> 
            <Telerik:GridBoundColumn Groupable="False" DataField="LanguageName" SortExpression="LanguageName" UniqueName="LanguageName" HeaderText="Language" /> 
            <Telerik:GridBoundColumn Groupable="False" DataField="CultureName" SortExpression="CultureName" UniqueName="CultureId" HeaderText="Culture" ItemStyle-Width="150px" /> 
        </Columns> 
    </MasterTableView> 
</Telerik:RadGrid> 
Kevin Schneider
Top achievements
Rank 1
 answered on 11 Dec 2008
1 answer
111 views
Hello all,

Here is my HTML for a user control that is inside a radAjaxPanel in the default page...
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="PhysList.ascx.vb" Inherits="PhysList" %> 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:Button ID="btnPrint" runat="server" Text="Create PDF for printing" /><telerik:radgrid id="rgPhysician" runat="server" AutoGenerateColumns="False" GridLines="None" Skin="WebBlue" OnSelectedIndexChanged="ViewPhysicianInfo" > 
    <MasterTableView DataKeyNames="PhysID">  
            <Columns> 
              <telerik:GridTemplateColumn UniqueName="TemplateColumn">  
                <ItemTemplate> 
                    <asp:LinkButton ID="btnViewPhysician" runat="server" CommandName="Select" Text="Select">Select</asp:LinkButton> 
                </ItemTemplate> 
              </telerik:GridTemplateColumn> 
              <telerik:GridBoundColumn DataField="PhysID" Display="False" HeaderText="PhysID" ReadOnly="True" UniqueName="PhysID">  
              </telerik:GridBoundColumn> 
              <telerik:GridBoundColumn DataField="ContactType" Display="False" HeaderText="ContactType" 
                    ReadOnly="True" UniqueName="ContactType">  
              </telerik:GridBoundColumn>              
              <telerik:GridBoundColumn DataField="PhysFullName" HeaderText="Name" UniqueName="PhysFullName">  
              </telerik:GridBoundColumn> 
              <telerik:GridBoundColumn DataField="PhysSpeciality" HeaderText="Speciality" UniqueName="PhysSpeciality">  
              </telerik:GridBoundColumn> 
              <telerik:GridBoundColumn DataField="Office" HeaderText="Office" UniqueName="Office">  
              </telerik:GridBoundColumn> 
            </Columns> 
        <RowIndicatorColumn Visible="False">  
            <HeaderStyle Width="20px" /> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn Visible="False">  
            <HeaderStyle Width="19px" /> 
        </ExpandCollapseColumn> 
    </MasterTableView> 
</telerik:radgrid> 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnablePageHeadUpdate="False">  
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="rgPhysician">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="rgPhysician" /> 
                            <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:radwindowmanager id="RadWindowManager1" runat="server" MinimizeZoneId="HorizontalMinimize" DestroyOnClose="True" Behavior="Maximize, Close, resize" Left="" Title="" Top="" Modal="True" Width="600px" Height="400px">  
        <Windows> 
            <telerik:RadWindow ID="RadWindow1" runat="server" Left="" NavigateUrl="RadPhys.aspx" Title="Physician Information" Top="" /> 
        </Windows> 
</telerik:radwindowmanager> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
    Width="75px">  
    <img alt="Loading..." src="RadControls/Ajax/Skins/Default/loading.gif" style="border-right: 0px;  
        border-top: 0px; border-left: 0px; border-bottom: 0px" /> 
</telerik:RadAjaxLoadingPanel> 
And her is the VB for it:
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 Object, ByVal 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 Object, ByVal e As Telerik.Web.UI.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 Object, ByVal 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  
        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  
        RadWindowManager1.VisibleOnPageLoad = False 
        Page.Title = "Phonebook Physician Directory" 
        Dim url As String = "RptPhysician.aspx" 
        btnPrint.Attributes.Add("OnClick", "window.open('" & url & "', title, 'top=0,left=0,height=570,width=787,scrollbars=yes,resizable=yes')")  
    End Sub 
 
End Class 
When I click on the Select in the RadGrid, I should be poped up with another page to show more details of the physician. That is how it used to work before and after I upgraded the dll files, it is giving me this error popup message whenever I click on the select button in the grid:
A control with ID 'PhysList$rgPhysician' could not be found for the trigger in UpdatPanel 'PhysList$rgPhysicianPanel'.

I searched for this error... but I couldn't find a solution for it.
Maria Ilieva
Telerik team
 answered on 11 Dec 2008
1 answer
111 views

Hi,

In my RadGrid control I need to hide GridExpandColumn  I have used following tag in my DesignSource

  <radG:RadGrid ID="RadGrid1" runat="server" Skin="Glassy" OnItemDataBound="RadGrid1_ItemDataBound"
          GridLines="None" AutoGenerateColumns="False" EnableAJAX="false"
              oncolumncreated="RadGrid1_ColumnCreated"      >

      <ClientSettings   AllowColumnHide="true"  AllowExpandCollapse="false" AllowGroupExpandCollapse="false"  >  
      </ClientSettings>

      <MasterTableView>
         <ExpandCollapseColumn Display="false" Visible="false" />  
                                

 

as well as in code behind I have following code...

 protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
    {
        if (e.Column is GridExpandColumn)
        {
            e.Column.HeaderStyle.Width = Unit.Pixel(0);
            e.Column.Visible = false;
            e.Column.Display = false;
          
        }

    }

But it is not hiding  the "GRIDEXPANDCOLUMN"

how can I solve my issue ???

Thanks & Regards

SHAJI P.D.

Princy
Top achievements
Rank 2
 answered on 11 Dec 2008
1 answer
162 views
The gantt chart seems to render slower when a shadow is displayed, is there a way to stop this?  I need to display the shadow as otherwise the bars look as if they are different widths.  Also, the chart takes about 3 secs to render, what's the best approach to take to speed it up?
thanks
Ves
Telerik team
 answered on 11 Dec 2008
1 answer
78 views
Hi Telerik,
after upgrading to release 1125, RadEditor changes the following code:

<td style="vertical-align: top; height: 70px; text-align: left;background-color: #E9EAF2; border: solid 1px #E9EAF2;"></td>

to:
<td style="border-right: #e9eaf2 1px solid; border-top: #e9eaf2 1px solid; vertical-align: top; border-left: #e9eaf2 1px solid; border-bottom: #e9eaf2 1px solid; height: 70px; background-color: #e9eaf2; text-align: left; undefined: "></td>

Why?

Best regards,
Andreas
Rumen
Telerik team
 answered on 11 Dec 2008
3 answers
87 views
Hi! I have a hiarerchial rad grid. I have some drop downs on the page where a user can select from month and year and to month and year and pulls a dataset from the database based on the date range. When the page refreshes the headers and data for the master table are refreshed but the detail tables do not. I have tried to call the datagrid.rebind() but that does not refresh the detail tables. If i set the veiwstate to false then it works but I have to click on the + to expand the detail table twice which I do not want to do. PLEASE HELP!!!
Yavor
Telerik team
 answered on 11 Dec 2008
1 answer
150 views
Hello
When i use response.redirect in codebehind the RadAjaxLoadingPanel showing in new window that call redirect
How can i hidden RadAjaxLoadingPanel when call response.redirect
Maria Ilieva
Telerik team
 answered on 11 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?