Radgrid 및 RadformDecorator
-
16-09-2019 - |
문제
Telerik Q1 2009 컨트롤을 사용하여 ASP.NET 응용 프로그램이 있습니다. 마스터 페이지에 FormDecorator 컨트롤이있는 MasterPage가 있습니다. 내 ASPX 페이지에는 다음과 같은 정의가있는 radgrid가 있습니다.
<telerik:RadGrid ID="gridExclusions" runat="server" AllowPaging="True" AllowSorting="True"
GridLines="None" AutoGenerateColumns="False" PageSize="5">
<MasterTableView>
<Columns>
<telerik:GridTemplateColumn>
<ItemTemplate> <asp:Button runat="server" ID="btnEdit" Text="Delete"
CommandName="SelectSelect" CommandArgument='<%#GetEmployeeExID(DataBinder.Eval(Container,"DataItem")) %>'
/>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Date" AllowFiltering="true">
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
<ItemTemplate>
<%#GetExDate(DataBinder.Eval(Container, "DataItem"))%>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Exclusion?" AllowFiltering="true">
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
<ItemTemplate>
<%#GetExclusionFlag(DataBinder.Eval(Container, "DataItem"))%>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Reason" AllowFiltering="true">
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
<ItemTemplate>
<%#GetReason(DataBinder.Eval(Container, "DataItem"))%>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Paid?" AllowFiltering="true">
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
<ItemTemplate>
<%#GetPaidStatus(DataBinder.Eval(Container, "DataItem"))%>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<HeaderContextMenu>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</HeaderContextMenu>
<PagerStyle Mode="NextPrevAndNumeric" />
<FilterMenu>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</FilterMenu>
</telerik:RadGrid>
이 radgrid를 새로 고치는 버튼도 있습니다.
Me.txtExcludeDate.Clear()
Me.gridExclusions.Rebind()
Me.txtExcludeDate.Focus()
문제는 버튼을 누르기 위해 버튼을 눌렀을 때 Radgrid 내부의 버튼이 Web20 스킨 모양과 느낌을 잃는 것처럼 보이는 것을 제외하고는 잘 작동합니다. 일반적인 버튼처럼 보입니다. 어떤 아이디어?
해결책
Radgrid는 어떻게 업데이트됩니까? Ajax 또는 전체 페이지 새로 고침을 사용하고 있습니까?
Ajax (또는 부분 페이지 업데이트)를 사용하는 경우 RadformDecorator가 양식 요소를 자동으로 재킨 할 수 있지만 Decorationzones를 올바르게 구성해야합니다. 이 데모를보고 도움이되는지 확인하십시오.
http://demos.telerik.com/aspnet-ajax/formdecorator/examples/partialpageupdates/defaultcs.aspx
그것을 시도하고 그것이 도움이되는지 확인하십시오. 버튼을 클릭 할 때 일어나는 일에 대한 자세한 정보를 제공 할 수 있다면 도움이됩니다.
다른 팁
ASP.NET AJAX 용 RadControls의 2009 년 릴리스로 이동할 때 이러한 불일치가 남아 있습니까? 그렇다면 Telerik 포럼이나 지원 시스템에서 문제를보고하여 패치를 얻는 것이 가장 좋습니다.
형사