update snippets shortcut and title
This commit is contained in:
Родитель
cda67d2cc4
Коммит
edefacf2d7
|
@ -14,6 +14,8 @@
|
|||
<Snippet>
|
||||
<Code Language="VB">
|
||||
<![CDATA[
|
||||
|
||||
$end$
|
||||
Private Function EmployeesTable() As DataTable
|
||||
Dim dt As New DataTable()
|
||||
|
||||
|
@ -33,7 +35,7 @@
|
|||
Dim row As DataRow = dt.NewRow()
|
||||
|
||||
row("EmployeeID") = index
|
||||
row("BirthDate") = DateTime.Now
|
||||
row("BirthDate") = New DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0).AddHours(index)
|
||||
row("LastName") = "Last Name " & index
|
||||
row("FirstName") = "First Name " & index
|
||||
row("Title") = "Title " & index
|
||||
|
@ -51,9 +53,6 @@
|
|||
<Import>
|
||||
<Namespace>System.Data</Namespace>
|
||||
</Import>
|
||||
<Import>
|
||||
<Namespace>Telerik.Web.UI</Namespace>
|
||||
</Import>
|
||||
</Imports>
|
||||
</Snippet>
|
||||
</CodeSnippet>
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
<Snippet>
|
||||
<Code Language="VB">
|
||||
<![CDATA[
|
||||
|
||||
$end$
|
||||
Private Function OrdersTable() As DataTable
|
||||
Dim dt As New DataTable()
|
||||
|
||||
|
@ -49,9 +51,6 @@
|
|||
<Import>
|
||||
<Namespace>System.Data</Namespace>
|
||||
</Import>
|
||||
<Import>
|
||||
<Namespace>Telerik.Web.UI</Namespace>
|
||||
</Import>
|
||||
</Imports>
|
||||
</Snippet>
|
||||
</CodeSnippet>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<Code Language="VB">
|
||||
<![CDATA[
|
||||
Protected Sub RadGrid1_NeedDataSource(sender As Object, e As GridNeedDataSourceEventArgs)
|
||||
RadGrid1.DataSource = OrdersTable()
|
||||
RadGrid1.DataSource = OrdersTable()$end$
|
||||
End Sub
|
||||
|
||||
Protected Sub RadGrid1_FilterCheckListItemsRequested(sender As Object, e As GridFilterCheckListItemsRequestedEventArgs)
|
||||
|
@ -63,8 +63,8 @@
|
|||
<Import>
|
||||
<Namespace>System.Data</Namespace>
|
||||
</Import>
|
||||
<Import>
|
||||
<Namespace>Telerik.Web.UI</Namespace>
|
||||
<Import>
|
||||
<Namespace>Telerik.Web.UI</Namespace>
|
||||
</Import>
|
||||
</Imports>
|
||||
</Snippet>
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
<Snippet>
|
||||
<Code Language="csharp">
|
||||
<![CDATA[
|
||||
$end$
|
||||
private DataTable EmployeesTable()
|
||||
{
|
||||
DataTable dt = new DataTable();
|
||||
|
@ -49,10 +50,10 @@
|
|||
</Code>
|
||||
<Imports>
|
||||
<Import>
|
||||
<Namespace>System.Data</Namespace>
|
||||
<Namespace>System</Namespace>
|
||||
</Import>
|
||||
<Import>
|
||||
<Namespace>Telerik.Web.UI</Namespace>
|
||||
<Import>
|
||||
<Namespace>System.Data</Namespace>
|
||||
</Import>
|
||||
</Imports>
|
||||
</Snippet>
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
<Snippet>
|
||||
<Code Language="csharp">
|
||||
<![CDATA[
|
||||
$end$
|
||||
private DataTable OrdersTable()
|
||||
{
|
||||
DataTable dt = new DataTable();
|
||||
|
@ -47,10 +48,10 @@
|
|||
</Code>
|
||||
<Imports>
|
||||
<Import>
|
||||
<Namespace>System.Data</Namespace>
|
||||
<Namespace>System</Namespace>
|
||||
</Import>
|
||||
<Import>
|
||||
<Namespace>Telerik.Web.UI</Namespace>
|
||||
<Import>
|
||||
<Namespace>System.Data</Namespace>
|
||||
</Import>
|
||||
</Imports>
|
||||
</Snippet>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<![CDATA[
|
||||
protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
|
||||
{
|
||||
RadGrid1.DataSource = OrdersTable();
|
||||
RadGrid1.DataSource = OrdersTable();$end$
|
||||
}
|
||||
|
||||
private DataTable OrdersTable()
|
||||
|
@ -64,10 +64,13 @@
|
|||
</Code>
|
||||
<Imports>
|
||||
<Import>
|
||||
<Namespace>System.Data</Namespace>
|
||||
<Namespace>System</Namespace>
|
||||
</Import>
|
||||
<Import>
|
||||
<Namespace>Telerik.Web.UI</Namespace>
|
||||
<Import>
|
||||
<Namespace>System.Data</Namespace>
|
||||
</Import>
|
||||
<Import>
|
||||
<Namespace>Telerik.Web.UI</Namespace>
|
||||
</Import>
|
||||
</Imports>
|
||||
</Snippet>
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
|
||||
</telerik:RadAjaxManager>
|
||||
|
||||
$end$
|
||||
]]></Code>
|
||||
</Snippet>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
|
||||
<Header>
|
||||
<Title>Excel-Like Filtering</Title>
|
||||
<Title>RadGrid with Excel-Like Filtering</Title>
|
||||
<Author>Progress</Author>
|
||||
<Shortcut>radgridexcel</Shortcut>
|
||||
<Description>Markup snippet for a RadGrid with Excel-like filtering</Description>
|
||||
|
@ -17,7 +17,7 @@
|
|||
EnableHeaderContextMenu="true"
|
||||
EnableHeaderContextFilterMenu="true"
|
||||
OnFilterCheckListItemsRequested="RadGrid1_FilterCheckListItemsRequested"
|
||||
OnNeedDataSource="RadGrid1_NeedDataSource">
|
||||
OnNeedDataSource="RadGrid1_NeedDataSource" $end$>
|
||||
<MasterTableView AutoGenerateColumns="False" DataKeyNames="OrderID">
|
||||
<Columns>
|
||||
<telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32" FilterCheckListEnableLoadOnDemand="true"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
|
||||
<Header>
|
||||
<Title>NeedDataSource with Orders</Title>
|
||||
<Title>RadGrid with NeedDataSource and Orders Table</Title>
|
||||
<Author>Progress</Author>
|
||||
<Shortcut>radgridneed</Shortcut>
|
||||
<Description>Markup snippet for a RadGrid control</Description>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
|
||||
<Header>
|
||||
<Title>Excel-Like Filtering</Title>
|
||||
<Title>RadGrid with SqlDataSource</Title>
|
||||
<Author>Progress</Author>
|
||||
<Shortcut>radgridsql</Shortcut>
|
||||
<Description>Markup snippet for a RadGrid control</Description>
|
||||
|
|
Загрузка…
Ссылка в новой задаче