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

Have RadTabStrip any settings that I can use to awoid line-breaks so I get all tabs in one line (like in scrolling mode but without the scrolling arrows) and a scroller in the window i put the tab in? I use RadTabStrip in a RadPane for a RadSplitter if that will help.

// Patric
Yana
Telerik team
 answered on 08 Jan 2010
4 answers
117 views
Hi, Im having problem with my gridBoundColumn. It duplicates whenever there some server command thats been executed. The only column thats not duplicating is my gridTemplateColumn. Im populating my columns purely in code behind. Radgrid was defined on aspx with several properties but without any column. The funny thing about it is that I use to count my columns before it adds columns to the grid. Before adding any columns value is 0 and after adding all the columns value is just 8. But if Im gonna count all of the columns (1 template column which theres no duplication) and there are 5 sets of same 7 columns  if I it executes some server codes or post back 5x.. Its like at first load it shows correct 8 columns, and when I do change my dropdown it will have some postback and then my grid count becomes (1 templatecolumn)  and 2 sets of 7 so total columns is 15. and when I do change again my dropdown it will have (1 template column) and 3 sets of 7 columns Its like this:
Chkbox Tempcol|Fname|Lname|TelNo|Add|City|State|Zip|Fname|Lname|TelNo|Add|City|State|Zip|Fname|Lname|TelNo|Add|City|State|Zip

Heres my code
<rad:radgrid id="RadGrid1" runat="server" Height="200px" AllowMultiRowSelection="True" ForeColor="White" AllowMultiRowEdit="True" Skin="outlook" width="985px" ItemStyle-BackColor="WhiteSmoke" AlternatingItemStyle-BackColor="White" BorderStyle="None" GridLines="Both">     
    
<AlternatingItemStyle Font-Size="Small" Font-Names="Arial Narrow" HorizontalAlign="Left" VerticalAlign="Middle" BorderStyle="None" CssClass="AlternatingItemRow" BackColor="White"></AlternatingItemStyle>    
                             
<MasterTableView DataKeyNames="ID" AllowAutomaticInserts="True" EditMode="InPlace" CommandItemDisplay="Top" AutoGenerateColumns="False">     
    
<CommandItemStyle BackColor="#FFE39A"></CommandItemStyle>    
<ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>    
   
    
   
   
                                 
<CommandItemTemplate>    
    <table class="MyCommandItemClass" width="100%">     
    <tr>    
                                        <td align="left" style="width: 75%; padding-top:4px">     
                                            <asp:Label ID="lblPN" runat="server" Text="PlanName" CssClass="basicfontbold" ForeColor="black" Font-Size="12px" Visible="true"></asp:Label>    
                                                 
                                                 
                                        </td>    
                                              
                                        <td align="right">     
                                        <asp:Button id="btnAdd" Runat="server" CommandName="InitInsert"  ToolTip="Add New Record" Text="Add" CssClass="ButtonGray" Visible='<%# Not RadGrid1.MasterTableView.IsItemInserted and showInsert %>' />    
                                                 
                                            <asp:Button ID="PerformInsert" runat="server" CommandName="PerformInsert"  ToolTip="Save" CssClass="ButtonRed" Text="Save" Visible='<%# RadGrid1.MasterTableView.IsItemInserted and showInsert %>'/>     
                                            <asp:Button ID="CancelInsert" runat="server" CommandName="CancelInsert" ToolTip="Cancel" CssClass="ButtonGray" Text="Cancel" Visible='<%# RadGrid1.MasterTableView.IsItemInserted and showInsert %>'/>     
                                                 
                                           <asp:Button id="Linkbutton1" Runat="server" CommandName="DeleteChecked" Text="Delete" CssClass="ButtonGray" Visible='<%# Not RadGrid1.MasterTableView.IsItemInserted and showDelete %>' Enabled='<%# showDelete %>'/>     
                                             
                                             
                                                 
                                        </td>    
                                                                            </tr>    
                                </table>    
                            </CommandItemTemplate>    
                            <ExpandCollapseColumn>    
                                <HeaderStyle Width="20px"></HeaderStyle>    
                            </ExpandCollapseColumn>    
                            <FooterStyle BorderStyle="None" BackColor="#FFE39A"></FooterStyle>    
                        </MasterTableView>    
                             
                        <HeaderStyle Font-Size="Small" Font-Names="Arial Narrow" Font-Bold="True" ForeColor="White" ></HeaderStyle>     
                        <SelectedItemStyle CssClass="RadGridSelectedItem"></SelectedItemStyle>    
                        <ItemStyle Font-Size="Small" Font-Names="Arial Narrow" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>    
                        <ClientSettings>    
                            <Selecting AllowRowSelect="True" EnableDragToSelectRows="False"></Selecting>    
                            <Resizing ResizeGridOnColumnResize="True" AllowColumnResize="True"></Resizing>    
                            <ClientEvents OnRowDeselected="RowDeselected" OnRowSelected="RowSelected" OnRowCreated="RowCreated"></ClientEvents>    
                            <Scrolling ScrollHeight="202px" AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="5"></Scrolling>    
                        </ClientSettings>    
                    </rad:radgrid>    
 
Code behind

 Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init  
 
Dim boundColumn As GridBoundColumn    
 Dim colcount as int16 = RadGrid1.MasterTableView.Columns.Count   
Try     
                  
                boundColumn = New GridBoundColumn()     
                RadGrid1.MasterTableView.Columns.Add(boundColumn)     
                boundColumn.HeaderText = "ID"    
                boundColumn.DataField = "ID"    
                boundColumn.UniqueName = "ID"    
                boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left     
                boundColumn.ItemStyle.VerticalAlign = VerticalAlign.Middle     
                boundColumn.ReadOnly = True    
                boundColumn.Visible = False    
            Catch ex As Exception     
    
            End Try     
    
            Try     
                Dim templateColumnName As String = "Delete"    
                Dim templateColumn As New GridTemplateColumn()     
                templateColumn.ItemTemplate = New GridCheckboxTemplate(templateColumnName)     
                templateColumn.HeaderImageUrl = "images/delete.gif"    
                templateColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center     
                templateColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Left     
                templateColumn.ItemStyle.VerticalAlign = VerticalAlign.Middle     
                templateColumn.HeaderStyle.Width = Unit.Pixel(23)     
                templateColumn.ItemStyle.Width = Unit.Pixel(35)     
                RadGrid1.MasterTableView.Columns.Add(templateColumn)     
            Catch ex As Exception     
    
            End Try    
 
 Try  
                                    boundColumn = New GridBoundColumn()  
                                     
                                    boundColumn.HeaderText = "Fname" 
                                    boundColumn.DataField = "Fname" 
                                    boundColumn.UniqueName = "Fname" 
                                    boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left  
                                    boundColumn.ItemStyle.VerticalAlign = VerticalAlign.Middle  
                                    boundColumn.HeaderStyle.Width = Unit.Pixel(100)  
                                    boundColumn.ItemStyle.Width = Unit.Pixel(100)  
 RadGrid1.MasterTableView.Columns.Add(boundColumn)  
                                Catch ex As Exception  
                                End Try  
 
            Several more columns defined here.....  
 
 
 colcount = RadGrid1.MasterTableView.Columns.Count  
            RadGrid1 Code Binding here.......  
end Sub
 

Any feedback would be appreciated.

Thanks in advance,
RJ
RJ
Top achievements
Rank 1
 answered on 08 Jan 2010
2 answers
111 views
Hi..

I was using telerik '2008, 3, 1314' version in my project. When I am trying to upgrad the old version by 2009.3.1208.20 I am geting compiletime error in whole project.

How can I upgrad telerik control version.?
Amit Vaidya
Top achievements
Rank 1
 answered on 08 Jan 2010
6 answers
263 views
Hi,
I am trying to set the background colour of the raddock.

I am using BackColor="LightYellow" within the aspx file.
But this does not seem to change the color ?!

I am doing something stupi here?

Thanks
Mark
Petio Petkov
Telerik team
 answered on 08 Jan 2010
1 answer
137 views
It seems that no matter what i do, the RadGrid1.SelectedValue ends up as null.
If i switch out "RadGrid1.SelectedValue" and just manually put a value in.....the code works fine (but obviously, every line i select ends up becoming that same value.)
My best guess is that the "Ticket#" column isn't being correctly defined as being the DataKey.
Please Help.

Here's the vb code behind.
    Protected Sub RadGrid1_SelectedIndexChanged(ByVal sender As ObjectByVal e As System.EventArgs) Handles RadGrid1.SelectedIndexChanged  
 
        Dim xxx As String 
        xxx = RadGrid1.SelectedValue  
        GetTheData(xxx)  
        Panel1.Visible = True 
 
    End Sub 
 
Public Function GetTheData(ByVal vary As StringAs String 
 
        Dim conn As New SqlConnection  
        Dim var1 As Integer 
        var1 = RadGrid1.SelectedValue  
        Label_ID.Text = var1  
 
        conn = GetConn2()  
 
        Dim sql As String = "SELECT Ticket#, Notes, Respformissing, Analyzed, Priority, Week_Restored, Type, ClosureCodeName,Met,BusHourDur, Cost, EffortHrs FROM vwSLA WHERE ticket# = " & vary  
 
        Dim cmd As SqlCommand  
 
        cmd = New SqlCommand(sql, conn)  
 
        Dim rdr As SqlDataReader  
 
        conn.Open()  
 
        rdr = cmd.ExecuteReader  
 
        Dim tick As String 
        Dim n As String 
        Dim resp As Boolean 
        Dim ana As String 
        Dim pri As Integer 
        Dim wr As String 
        Dim type As String 
        Dim cc As String 
        Dim met As Boolean 
        Dim bush As Long 
        Dim co As Long 
        Dim eh As Long 
 
        While rdr.Read  
 
            ana = fixNull(rdr("Analyzed"))  
            n = fixNull(rdr("Notes"))  
            tick = fixNull(rdr("Ticket#"))  
            type = fixNull(rdr("type"))  
            cc = fixNull(rdr("ClosureCodeName"))  
            pri = rdr("priority")  
            wr = rdr("Week_Restored")  
            met = fixNullBool(rdr("met"))  
            bush = rdr("BusHourDur")  
            co = rdr("Cost")  
            eh = rdr("EffortHrs")  
            resp = fixNullBool(rdr("respformissing"))  
 
        End While 
 
        Label_Ana.Text = ana  
        Label_ID.Text = tick  
        Label_Type.Text = type  
        Label_CC.Text = cc  
        Label_Priority.Text = pri  
        Label_WRes.Text = wr  
        Label_Met.Text = met  
        Label_BHD.Text = bush  
        LabelEffort.Text = eh  
        Label_Cost.Text = co  
        CheckBox_resp.Checked = resp  
        TextBox_Notes.Text = n  
          
 
        conn.Close()  
 
    End Function 
here's the asp.net portion

<telerik:RadGrid ID="RadGrid1" runat="server"    
                            DataSourceID="SLA_DB" AllowSorting="True" CellPadding="2" ForeColor="#993333"   
                        GridLines="None" Height="300px" DataKeyNames="Ticket#" Width="925px"   
                        BorderStyle="Solid" Skin="Hay"   
                            GroupingEnabled="False">  
                            <ItemStyle BackColor="#3366FF" /> 
<MasterTableView DataSourceID="SLA_DB" GroupsDefaultExpanded="False" AutoGenerateColumns="False">  
    <DetailTables> 
        <telerik:GridTableView runat="server" AutoGenerateColumns="False">  
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px" height="30px" /> 
            </ExpandCollapseColumn> 
            <HeaderStyle BackColor="#1D33D1" Font-Bold="False" Font-Italic="False"   
                Font-Overline="False" Font-Strikeout="False" Font-Underline="False"   
                Wrap="True" /> 
        </telerik:GridTableView> 
    </DetailTables> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn Visible="True" display="False">  
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridButtonColumn CommandName="Select" Text="Select"   
            UniqueName="column">  
        </telerik:GridButtonColumn> 
        <telerik:GridBoundColumn DataField="Ticket#"   
            HeaderText="Ticket#" SortExpression="Ticket#" UniqueName="Ticket#"   
            ColumnEditorID="True">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Priority"   
            HeaderText="Priority" SortExpression="Priority"   
            UniqueName="Priority" DataType="System.Int32">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Week_Restored"   
            HeaderText="Week_Restored" SortExpression="Week_Restored"   
            UniqueName="Week_Restored" ReadOnly="True">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Type" HeaderText="Type"   
            SortExpression="Type" UniqueName="Type">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Analyzed" HeaderText="Analyzed"   
            SortExpression="Analyzed" UniqueName="Analyzed" ReadOnly="True">  
        </telerik:GridBoundColumn> 
        <telerik:GridCheckBoxColumn DataField="Met" DataType="System.Boolean"   
            HeaderText="Met" SortExpression="Met" UniqueName="Met">  
        </telerik:GridCheckBoxColumn> 
        <telerik:GridBoundColumn DataField="IssueName" HeaderText="IssueName"   
            SortExpression="IssueName" UniqueName="IssueName1">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ClosureCodeName"   
            HeaderText="ClosureCodeName" SortExpression="ClosureCodeName"   
            UniqueName="ClosureCodeName">  
        </telerik:GridBoundColumn> 
 
        <telerik:GridBoundColumn DataField="TeamName" HeaderText="TeamName"   
            SortExpression="TeamName" UniqueName="TeamName">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="IssueName" HeaderText="IssueName"   
            SortExpression="IssueName" UniqueName="IssueName">  
        </telerik:GridBoundColumn> 
 
    </Columns> 
    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
        Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"   
        VerticalAlign="Middle" Wrap="True" /> 
    <AlternatingItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> 
    <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Names="Calibri"   
        Font-Overline="False" Font-Size="14pt" Font-Strikeout="False"   
        Font-Underline="False" HorizontalAlign="Center" VerticalAlign="Middle"   
        Wrap="True" /> 
</MasterTableView> 
 
                            <HeaderStyle Font-Size="12pt" Height="30px" /> 
 
                            <ClientSettings> 
                                <Selecting AllowRowSelect="True" /> 
                                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                            </ClientSettings> 
 
<FilterMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
                        </telerik:RadGrid> 
Princy
Top achievements
Rank 2
 answered on 08 Jan 2010
2 answers
77 views
Hi.

I've got something odd going on with my project.

If my webpage consists of a tabstrip and an editor the tabstrip loses it's custom skin. The Editor is still fine though.

It only happens on pages with a tabstrip and an editor.

The controls are created in code-behind in the createchildcontrols method.

attached are some screenshots of the problem

any ideas would be appreciated.

thanks

Vinny
Dobromir
Telerik team
 answered on 08 Jan 2010
1 answer
121 views

Posted on Dec 28, 2009 (permalink)

Hi there,
1) Iam using a Radgrid which consists of '5' image columns on page load it is getting loaded fine but when I perform any Filter option which is provided with grid it is not loading  for getting  for image columns unless you perform any operation  remaining columns load quickly  same with page index also is not getting loaded.I want to get to be loaded when i perform any operation.

2) And Iam facing another problem with grouping it is grouping properly when i drag some times it is grouped but some times not in this also image columns are not getting loaded when iam ungrouping it is throwing an exception.

3) I want Tooltip for Radgrid for all columns It should display according to database.

 
 
Here's my code  
------------------------------------------------------------------------------------------  
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uclTaskGrid.ascx.cs" Inherits="uclTaskGrid"  %> 
  <%@ Register assembly="msgBox" namespace="BunnyBear" tagprefix="cc2" %> 
  <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
  <script language="javascript" type="text/javascript">   
  function FireMyIASGroupPrint(myURL){  
   if(myURL)  
     {  
      
    window.open("RejectTaskStatus.aspx?taskID=" + myURL ,'_blank','left = 300top=150width=600height=200,menubar=no , scrollbars=noresizable=no');  
      
     }  
}  
 
 
 
 
 
 
       
    </script> 
<asp:Timer ID="Timer1" runat="server" ontick="Timer1_Tick" Interval="12000">  
</asp:Timer> 
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">  
<tr> 
        <td valign="top" height="6"></td> 
        </tr> 
<tr> 
        <td height="30" align="left">&nbsp;&nbsp;&nbsp;<b>Project name</b>&nbsp;<asp:DropDownList ID="ddlProjects" CssClass="text" runat="server" AutoPostBack="True"   
        onselectedindexchanged="ddlProjects_SelectedIndexChanged">  
    </asp:DropDownList> 
              
        </td> 
    <td align="right">  
    <table width="160" border="0" cellspacing="0" cellpadding="0">  
          <tr> 
            <td> 
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">  
                    <ContentTemplate> 
                        <asp:Label ID="lblRecCount" CssClass="LabelText" runat="server"   
    Text="Total Record(s): 14"></asp:Label> 
                    </ContentTemplate> 
                </asp:UpdatePanel> 
            &nbsp;&nbsp;&nbsp;</td> 
          </tr> 
</table> 
</td> 
</tr> 
  <tr> 
        <td valign="top" colspan="2" height="5">  
            &nbsp;</td></tr>    
<tr> 
        <td valign="top" align="center" colspan="2">  
    <table cellpadding="0" cellspacing="0" border="0" width="98%">  
    <tr> 
    <td align="left" valign="top">      
             
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
                     <Triggers>    
                        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />    
                    </Triggers>   
                        <ContentTemplate> 
                            <telerik:RadGrid ID="gviewTasks" runat="server" AllowFilteringByColumn="True"   
        AllowPaging="True" AllowScroll="True" EnableVirtualScrollPaging="True"   
                                PageSize="10" AllowSorting="True" GridLines="None" ShowGroupPanel="True"   
            style="top: 300px; left: 10px;"   
        AutoGenerateColumns="False" Skin="Vista" onitemcommand="gviewTasks_ItemCommand"   
                                onitemdatabound="gviewTasks_ItemDataBound" AutoGenerateHierarchy="True" AllowCustomPaging="True"   
                                  
         > 
          
<MasterTableView> 
 
 
 
 
<columns> 
          <telerik:GridBoundColumn DataField="TaskID" HeaderText="ID" />             
                        
<telerik:GridBoundColumn DataField="Resource Name" HeaderText="Resource Name"   
              HeaderStyle-Width="80px"  > 
    <HeaderStyle Width="80px" /> 
          </telerik:GridBoundColumn> 
 <telerik:GridTemplateColumn HeaderText="Task Name" AllowFiltering="false" Groupable="false" HeaderStyle-Width="50px" > 
                       <ItemTemplate> 
                       <asp:LinkButton ID="lnkTask" runat="server" CommandName="select"></asp:LinkButton> 
                       </ItemTemplate> 
                       <HeaderStyle Width="50px" /> 
                       </telerik:GridTemplateColumn> 
<telerik:GridBoundColumn DataField="Task Name" HeaderText="TaskName"  /> 
<telerik:GridBoundColumn DataField="Description" HeaderText="TaskDescription"   
              HeaderStyle-Width="80px"  > 
    <HeaderStyle Width="80px" /> 
          </telerik:GridBoundColumn> 
<telerik:GridTemplateColumn HeaderText="Phase" HeaderStyle-Width="50px" AllowFiltering="false" Groupable="false"  >   
            <ItemTemplate> 
                <asp:Label ID="lblphase" runat="server"  Text='<%#DataBinder.Eval(Container.DataItem,"Phase") %>'></asp:Label> &nbsp;  
               </ItemTemplate> 
               <HeaderStyle Width="50px" /> 
               </telerik:GridTemplateColumn> 
<telerik:GridBoundColumn DataField="Project Name" HeaderText="Project"   
              HeaderStyle-Width="50px" AllowFiltering="false" > 
    <HeaderStyle Width="50px" /> 
          </telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="AssignedBy" HeaderText="Assigned By"   
              HeaderStyle-Width="75px"  > 
    <HeaderStyle Width="75px" /> 
          </telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Estimated Hours" HeaderText="ETA [Hrs]"   
              HeaderStyle-Width="50px"  > 
    <HeaderStyle Width="50px" /> 
          </telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Date" HeaderText="Date" HeaderStyle-Width="75px"  > 
    <HeaderStyle Width="75px" /> 
          </telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Status" HeaderText="Status" HeaderStyle-Width="75px" > 
    <HeaderStyle Width="75px" /> 
          </telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Approve Status" HeaderText="Approval Status"   
              HeaderStyle-Width="75px"  > 
 
 
    <HeaderStyle Width="75px" /> 
          </telerik:GridBoundColumn> 
 
 
<telerik:GridTemplateColumn HeaderText="Approve" AllowFiltering="false" Groupable="false" HeaderStyle-Width="40px" > 
                       <ItemTemplate> 
                                              
                       <asp:ImageButton ID="imgbtnactivate" runat="server" ImageUrl="~/images/activate.gif" CommandName="Approve" OnClientClick="return confirm('Are you sure you want to approve this task?');"></asp:ImageButton> 
                         
                       </ItemTemplate> 
                       <HeaderStyle Width="40px" /> 
                       </telerik:GridTemplateColumn> 
                       <telerik:GridTemplateColumn HeaderText="Reject" AllowFiltering="false" Groupable="false" HeaderStyle-Width="30px" > 
                       <ItemTemplate> 
                                              
                       <asp:ImageButton ID="imgbtndeactivate" runat="server" ImageUrl="~/images/de-activate.gif" CommandName="Reject" OnClientClick="return confirm('Are you sure you want to reject this task?');"></asp:ImageButton> 
                         
                       </ItemTemplate> 
                            <HeaderStyle Width="30px" /> 
                            </telerik:GridTemplateColumn> 
                       <telerik:GridTemplateColumn HeaderText="Forward" AllowFiltering="false" Groupable="false" HeaderStyle-Width="40px">  
                       <ItemTemplate> 
                                              
                       <asp:ImageButton ID="imgforward" runat="server" ImageUrl="~/images/forward.gif" CommandName="Select1"></asp:ImageButton> 
                         
                       </ItemTemplate> 
                           <HeaderStyle Width="40px" /> 
                       </telerik:GridTemplateColumn>    
                        <telerik:GridBoundColumn DataField="ResourceID"/>                                    
                       <telerik:GridTemplateColumn HeaderText="Delete" AllowFiltering="false" Groupable="false" HeaderStyle-Width="30px">  
                       <ItemTemplate> 
                                              
                       <asp:ImageButton ID="imgdelete" runat="server"    ImageUrl="~/images/delete-icon.gif" CommandName="deleteTask" OnClientClick="return confirm('Are you sure you want to delete the task?');"></asp:ImageButton> 
                         
                       </ItemTemplate> 
                           <HeaderStyle Width="30px" /> 
                       </telerik:GridTemplateColumn> 
                        
                         
</columns> 
 
 
</MasterTableView> 
<ClientSettings EnableRowHoverStyle="true">  
                <Selecting AllowRowSelect="true" /> 
                <Scrolling EnableVirtualScrollPaging="True" UseStaticHeaders="True" /> 
                <Resizing AllowColumnResize="True" /> 
            </ClientSettings> 
        <ClientSettings AllowDragToGroup="True" AllowExpandCollapse="true">  
            <Scrolling EnableVirtualScrollPaging="True" UseStaticHeaders="True" /> 
            <Resizing AllowColumnResize="True" /> 
        </ClientSettings> 
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="Blue" /> 
                                <PagerStyle Height="30px" HorizontalAlign="Center" Font-Bold="True"   
                                    Font-Names="Arial" Font-Size="Smaller" /> 
                                <HeaderStyle BorderStyle="None"  Font-Bold="True"   
        Height="30px" /> 
                            </telerik:RadGrid> 
                                
                        </ContentTemplate> 
                    </asp:UpdatePanel></td></tr> 
                    </table> 
                
</td> 
</tr></table>  
-------------------------------------------------------------------------------------  
here's the code for tooltip  
-------------------------------------  
 protected void gviewTasks_ItemDataBound(object sender, GridItemEventArgs e)  
    {  
        int index;  
        try  
        {  
            if (e.Item.ItemType == GridItemType.CommandItem )  
            {  
 
 
                index = e.Item.RowIndex + (gviewTasks.PageSize * gviewTasks.PageSize);  
                for (int i = 0; i < e.Item.Cells.Count; i++)  
                {  
                    if (dtTemp.Rows.Count > 0)  
                    {  
                        e.Item.Cells[0].ToolTip = dtTemp.Rows[index]["Resource Name_Org"].ToString();  
                        e.Item.Cells[2].ToolTip = dtTemp.Rows[index]["Task Name_Org"].ToString();  
                        e.Item.Cells[3].ToolTip = dtTemp.Rows[index]["Task Name_Org"].ToString();  
                        e.Item.Cells[4].ToolTip = dtTemp.Rows[index]["Description_Org"].ToString();  
                        e.Item.Cells[5].ToolTip = dtTemp.Rows[index]["Phase_Org"].ToString();  
                        e.Item.Cells[6].ToolTip = dtTemp.Rows[index]["Project Name_Org"].ToString();  
                        e.Item.Cells[7].ToolTip = dtTemp.Rows[index]["AssignedBy_org"].ToString();  
                        e.Item.Cells[8].ToolTip = dtTemp.Rows[index]["Estimated Hours_org"].ToString();  
                        e.Item.Cells[9].ToolTip = dtTemp.Rows[index]["Date_Org"].ToString();  
                        e.Item.Cells[10].ToolTip = dtTemp.Rows[index]["Status_Org"].ToString();  
                        e.Item.Cells[11].ToolTip = dtTemp.Rows[index]["Approve Status_Org"].ToString();  
                    }  
                }  
            }  
 
 
        }  
        catch (Exception ex)  
        {  
        }  
 
 
    }  
 
Veli
Telerik team
 answered on 08 Jan 2010
1 answer
72 views
I have code as below :

<telerik:RadGrid ID="RadGrid1" AllowFilteringByColumn="false" runat="server" GridLines="None"
                                                AllowPaging="true" AllowSorting="true" Width="100%" AutoGenerateColumns="false"
                                                EnableEmbeddedSkins="false">
                                                <ClientSettings EnableRowHoverStyle="true">
                                                    <Selecting AllowRowSelect="true" />
                                                    <Scrolling AllowScroll="true" UseStaticHeaders="True" SaveScrollPosition="True">
                                                    </Scrolling>
                                                    <ClientEvents OnRowSelected="rowSelected" />
                                                    <ClientEvents OnCommand="RadGrid1_Command" OnRowDeleted="RowDeleted"  OnRowDeleting="RowDeleting" />
                                                </ClientSettings>
                                                <MasterTableView CssClass="RadGrid_Web20" PagerStyle-Mode="NumericPages" ClientDataKeyNames="Customer_Contact_Id">
                                                    <Columns>
                                                        <telerik:GridBoundColumn SortExpression="Contact_Type" DataField="Contact_Type" HeaderText="Contact Type"
                                                            UniqueName="Contact_Type" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn SortExpression="Contact_Name" DataField="Contact_Name" HeaderText="Contact Name"
                                                            UniqueName="Contact_Name" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn SortExpression="Telephone" DataField="Telephone" HeaderText="Telephone"
                                                            UniqueName="Telephone" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridHyperLinkColumn ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"
                                                            DataNavigateUrlFormatString="mailto:{0}" DataNavigateUrlFields="Email" SortExpression="Email"
                                                            DataTextField="Email" HeaderText="Contact Email" ItemStyle-ForeColor="Blue">
                                                        </telerik:GridHyperLinkColumn>
                                                        <telerik:GridBoundColumn SortExpression="Email" DataField="Email" HeaderText="Contact Email"
                                                            UniqueName="MainEmail" Display="false" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn SortExpression="ContactId" DataField="ContactId" HeaderText="ContactId"
                                                            UniqueName="ContactId" Display="false" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn SortExpression="ContactTypeId" DataField="ContactTypeId"
                                                            HeaderText="ContactTypeId" UniqueName="ContactTypeId" Display="false" ItemStyle-HorizontalAlign="Left"
                                                            HeaderStyle-HorizontalAlign="Left">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn SortExpression="Customer_Code" DataField="Customer_Code"
                                                            HeaderText="Customer_Code" Visible="false" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridBoundColumn SortExpression="Customer_Contact_Id" DataField="Customer_Contact_Id"
                                                            UniqueName="Customer_Contact_Id" HeaderText="Customer_Contact_Id" Display="false"
                                                            ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridClientDeleteColumn ConfirmDialogType="RadWindow" ConfirmText="Are you sure you want to delete this row?"
                                                            HeaderStyle-Width="35px" ButtonType="ImageButton" ImageUrl="../Images/Delete.gif"
                                                            CommandName="Delete" />
                                                    </Columns>
                                                </MasterTableView>
                                            </telerik:RadGrid>


But previosly  OnRowDeleted="RowDeleted"  OnRowDeleting="RowDeleting" clinet events are getting fired but now 
in latest version of DDL its not working and i want delete button to diplay for each and every row.
Hus Damen
Top achievements
Rank 1
 answered on 08 Jan 2010
6 answers
1.6K+ views

Hi,

I have a couple of asp dropdowns, button named “View Results” and a RadGrid inside an Update Panel. Upon button click I fire a sql query and display the corresponding data in the RadGrid.

My problem is sometimes when I click “View Results” button I get a dialog box with error message “Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled Details: Error parsing near 'span> </div> |<html>     <head>”and RadGrid is not displayed.

When I click the button again the error doesn’t show up and RadGrid is displayed. This happens sometimes not every time.

Can anyone tell me how to figure this out?

Thanks

praveen thangaraja
Top achievements
Rank 1
 answered on 08 Jan 2010
1 answer
134 views
I know that Legend.Appearance.Position.AlignedPosition allows me to specify where the legend appears in the chart, but is there a way to change how the series are oriented with respect to one another?  I would like to have the legend below the plot area, but listed across the bottom (horizontal), rather than one on top of another (vertical).

Thanks,
Lance Marrano
Ves
Telerik team
 answered on 08 Jan 2010
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?