Wednesday, December 9, 2015

Fusebox

...is a set of standards for Cold Fusion.

if (!e.Expanded) return;

Put this in a DetailRowExpandedChanged event at a DevExpress ASPxGridView to prevent the code ahead from happening if you are closing the row again instead of opening it.

It's really better to use the HtmlRowCreated event instead of the DetailRowExpandedChanged event at a DevExpress ASPxGridView to push content to a DetailRow.

private void X_HtmlRowCreated(object sender, ASPxGridViewTableRowEventArgs e)
{
   if (e.RowType == GridViewRowType.Detail)
   {
      
//whatever
   }
}

There is a "Clutter" folder in Outlook which is not the "Junk Email" folder.

Yes, spam gets routed here too. Look here for that thing you can't find when you can't find it.

Tuesday, December 8, 2015

AllowFocusedRow in SettingsBehavior at a DevExpress ASPxGridView

...will allow for the rows you click upon to be highlighted and stay highlighted (until another is picked). Set the setting to True. Fun.

This parallelogram will open a new tab.

What is in the new tab and how it behaves seems to vary, probably driven by settings at Google Chrome.

Monday, December 7, 2015

Cherry pick stuff out of XML with an XmlReader in C#.

byte[] bytesData = Encoding.Default.GetBytes(_myXmlInStringFormat);
MemoryStream memoryStream = new MemoryStream(bytesData);
using (XmlReader xmlReader = XmlReader.Create(memoryStream))
{
   xmlReader.ReadToFollowing("Foo");
   _foo = xmlReader.ReadElementContentAsString("Foo", "");
   if (xmlReader.ReadToFollowing("Bar"))
   {
      _bar = xmlReader.ReadElementContentAsString("Bar", "");
   }
}