aspPanel.Visible =
true;
grid2.Visible =
false;
The button command in grid2 makes a call to function that does this:
aspPanel.Visible = true;
grid1.Visible =
false;
The button command in the asp:panel makes a call to a function that does this:
// hide the panel
aspPanel.Visible =
false;
// show all the grids
grid1.Visible = true;
grid2.Visible =
true;
I'm thinking it has something to do with how I configure the AjaxManager so here is how I have it set up right now:
ajaxManager.AjaxSettings.AddAjaxSetting(grid1, grid1);
ajaxManager.AjaxSettings.AddAjaxSetting(grid2, grid2);
ajaxManager.AjaxSettings.AddAjaxSetting(grid1, aspPanel);
ajaxManager.AjaxSettings.AddAjaxSetting(grid2, aspPanel);
|

<!-- code using telerik rad grid for displaying default view of competencies -->
<telerik:RadGrid ID="lstCompetencies" runat="server" AllowPaging="True"
AllowSorting="True" GridLines="both" Skin="WebBlue"
PagerStyle-Mode="Slider" Width="610px" PageSize="25">
<ExportSettings ExportOnlyData="False" FileName="Competencies" Excel-Format="Html"
OpenInNewWindow="True">
</ExportSettings>
<PagerStyle Mode="Slider" />
<MasterTableView autogeneratecolumns="False">
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridTemplateColumn>
<ItemTemplate>
<asp:Label ID="lblComp" Text='<% #Eval("CompetencyName") %>' runat="server"></asp:Label>
<!-- POP Up control for displaying competency info -->
<telerik:RadToolTip runat="server" ID="RadToolTip1"
TargetControlID="lblComp" IsClientID="False" OffsetY="4" Sticky="true" Animation="Slide"
Position="BottomRight" RelativeTo="Element" Skin="Web20">
<b><asp:Label Font-Underline="True" id="lbl0" Width="100%" text="Competency Description" runat="Server"/></b><br /><br />
<asp:Label Width="100%" text='<%# "<b>Competency Name</b> : " & Eval("CompetencyName")%>' runat="Server"/><br />
<asp:Label Width="100%" text='<%# "<b>Category Name</b> : " & Eval("CatogeryName") %>' runat="Server"/><br />
<asp:Label Width="100%" text='<%# "<b>Description</b> : " & Eval("CompetencyDesc") %>' runat="Server"/><br />
<asp:Label Width="100%" text='<%# "<b>Skill Type</b> : " & Eval("SkillTypeName") %>' runat="Server"/><br />
<asp:Label Width="100%" text='<%# "<b>Skill Level Type</b> : " & Eval("SkillLevelType") %>' runat="Server"/><br />
</telerik:RadToolTip>
<!-- end of pop up control for displaying info -->
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="CatogeryName" HeaderText="CategoryName"
SortExpression="CatogeryName" UniqueName="CatogeryName">
</telerik:GridBoundColumn>
etc....<
GroupHeaderItemStyle Height="10px" />
and none of it works. my code is pasted below, would you please help me to shrink the header? my code is pasted following| <telerik:RadGrid ID="AppointmentList" runat="server" Width="600px" |
| Skin="Hay" GridLines="None" AutoGenerateColumns="False" AllowPaging="True" |
| PageSize="15" |
| OnItemDataBound="Appointment_ItemDataBound" CellPadding="0" > |
| <MasterTableView Width="100%" GroupLoadMode="Client"> |
| <GroupByExpressions> |
| <telerik:GridGroupByExpression> |
| <SelectFields> |
| <telerik:GridGroupByField FieldAlias="RequestDate" FieldName="RequestDate" HeaderText="Date" FormatString="{0:d}" HeaderValueSeparator=" " /> |
| </SelectFields> |
| <GroupByFields> |
| <telerik:GridGroupByField FieldAlias="RequestDate" FieldName="RequestDate" HeaderText=" " HeaderValueSeparator=" " /> |
| </GroupByFields> |
| </telerik:GridGroupByExpression> |
| </GroupByExpressions> |
| <Columns> |
| <telerik:GridTemplateColumn HeaderText="Name" Groupable="false" UniqueName="Title"> |
| <ItemTemplate> |
| <div> |
| <asp:HyperLink ID="HlinkSubject" runat="server"><%# Eval("Name") %></asp:HyperLink> |
| <span style="font-style:italic; display:block">Symptom: <%# Eval("SymptomList") %></span> |
| </div> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn HeaderText="Reason" DataField="Reason"></telerik:GridBoundColumn> |
| </Columns> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| </MasterTableView> |
| </telerik:RadGrid> |
