Originally Posted by
vladimir
Hi,
The 'Sort Ascending' and 'Sort Descending' labels can be changed with SortAscText and SortDescText of GridView Class.
For example you can add next code to your GridPanel
<View>
<ext:GridView runat="server" SortAscText="My Asc Text" SortDescText="My Desc Text" />
</View>
hi i am added this code after my gridpanel code
<ext:GridPanel ID="gridAntiVrsRcrd" runat="server" Title="Kayıtlar" Frame="True"
AutoExpandColumn="TargetHostName" Height="300px" Width=500
meta:resourcekey="gridAntiVrsRcrdResource1">
<Store>
<ext:Store ID="storeAntiVirusRecord" runat="server" RemoteSort="true"
meta:resourcekey="storeAntiVirusRecordResource1">
<Proxy>
<ext:HttpProxy Method="GET" Url="GenericHandler/AntivirusRecordHandler.ashx" />
</Proxy>
<AutoLoadParams>
<ext:Parameter Name="start" Value="={0}" />
<ext:Parameter Name="limit" Value="={10}" />
</AutoLoadParams>
<Reader>
<ext:JsonReader Root="Data" TotalProperty="TotalRecords">
<Fields>
<ext:RecordField Name="ID" Type=Int />
<ext:RecordField Name="TargetHostName" Type="String" />
<ext:RecordField Name="TargetFileName" Type="String" />
<ext:RecordField Name="Received_UTC" Type=Date />
</Fields>
</ext:JsonReader>
</Reader>
<SortInfo Field="TargetHostName" Direction="ASC" />
</ext:Store>
</Store>
<ColumnModel DefaultSortable="True"></ColumnModel>
<BottomBar>
<ext:PagingToolbar ID="pgngTlbrAntVrsRcr"
runat="server"
PageSize="10"
DisplayInfo="true"
DisplayMsg="Displaying plants {0} - {1} of {2}"
EmptyMsg="No plants to display" meta:resourcekey="pgngTlbrAntVrsRcrResource1"
/>
</BottomBar>
<LoadMask ShowMask="true" />
</ext:GridPanel>
<View>
<ext:GridView runat="server" <SPAN class=highlight>SortAscText</SPAN>="My Asc Text" SortDescText="My Desc Text" />
</View>
if i started show this message Error The server tag is not well formed.
i didnt understand the use of span.