Format:
Recent snippets matching tags of DevExpress
using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class Features_ImportExport : System.Web.UI.Page { const string DocumentUrl = @"~/Content/Demo/SampleImportDocument.rtf"; const string ContentFolder = @"~/UploadImages/Imported";
220 Views
no comments
<Extension()> _ Public Function GetBindingInfo(ByVal DataLayoutControl As DataLayoutControl, _ Optional ByVal ExcludePropetries As String = "") As List(Of DataLayoutBindingInfo) Dim bh As New LayoutElementsBindingInfoHelper(DataLayoutControl) Dim info As LayoutElementsBindingInfo = bh.CreateDataLayoutElementsBindingInfo GetBindingInfo = (From x As LayoutElementBindingInfo In info.GetAllBindings _ Where (Not x.DataInfo.Name.ToUpper.EqualsAny(ExcludeNames)) _ And (Not x.DataInfo.Name.ToUpper.EqualsAny(ExcludePropetries)) _ Select New DataLayoutBindingInfo(x.DataInfo.Name, x.DataInfo.Caption, x.Visible, x.EditorType)).ToList End Function
288 Views
no comments
<Extension()> _ Public Function TimeIntervals(ByVal DateNavigator As DateNavigator) As TimeIntervalCollection Dim dc As List(Of DateTime) = (From x In DateNavigator.Selection Order By CDate(x) Select CDate(x)).ToList TimeIntervals = New TimeIntervalCollection Dim startdt As DateTime = DateTime.MinValue, enddt As DateTime = DateTime.MinValue For Each dt As DateTime In dc If startdt = DateTime.MinValue Then startdt = dt If enddt > DateTime.MinValue _ AndAlso enddt.AddDays(1) < dt Then TimeIntervals.Add(New TimeInterval(startdt, enddt.Subtract(startdt)))
354 Views
no comments
'Form1.vb #Region " Import Declaratives " Imports DevExpress.XtraEditors Imports DevExpress.Utils.Menu Imports System.IO Imports System.Xml.Serialization #End Region
2278 Views
no comments
public partial class _Default : System.Web.UI.Page { private bool mInserted = false; protected void Page_Load(object sender, EventArgs e) { mInserted = false; } protected void ASPxGridView1_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) { e.Properties["cpIsInserted"] = mInserted.ToString(); }
623 Views
no comments
<dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="AccessDataSource1" KeyFieldName="CategoryID"
OnCustomJSProperties="ASPxGridView1_CustomJSProperties"
onrowinserted="ASPxGridView1_RowInserted">
<ClientSideEvents EndCallback="function(s, e) {
if (s.cpIsInserted == 'True') alert('Inserted!');
}" />
1046 Views
no comments
protected void ASPxButton1_Click(object sender, EventArgs e)
{
object key = ASPxGridView1.GetRowValues(2, "CategoryID");
ASPxGridView1.Selection.SelectRowByKey(key);
}
414 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
