Month: July 2007

Einstein on Buddhism

Buddhism has the characteristics of what would be expected in a cosmic religion for the future: It transcends a personal God, avoids dogmas and theology; it covers both the natural and spritual; and it is based on a religious sense aspiring from the experience of all things, natural and spiritual, as a meaningful unity. -Albert Einstein

If there is any religion that would cope with modern scientific needs it would be Buddhism. -Albert Einstein

A human being is part of the whole, called by us ‘Universe’; a part limited in time and space. He experiences himself, his thoughts and feelings as something separated from the rest–a kind of optical delusion of his consciousness. This delusion is a kind of prison for us, restricting us to our personal desires and affection for a few persons nearest us. Our task must be to free ourselves from this prison by widening our circle of compasion to embrace all living creatures and the whole nature in its beauty. Nobody is able to achieve this completely but striving for such achievement is, in itself, a part of the liberation and a foundation for inner security.
-Albert Einstein

Here’s another quote from Einstein that I love. It is my signature at the bottom of my emails:

The most beautiful thing we can experience is the mysterious. It is the source of all true art and science. He to whom this emotion is a stranger, who can no longer pause to wonder and stand rapt in awe, is as good as dead: his eyes are closed. -Albert Einstein

From: http://thebuddhistblog.blogspot.com/2005/05/einstein-on-buddhism.html

Great quotes from a great man about a religion that fascinates me for it’s tranquility and honesty. The blog looks interesting and I’ll have to follow the rss feed now.

Improved Documentation: Explore The ASPx Client-Side Events

Yesterday, someone asked if it’s possible to have the ASPxGridView go into EditMode as soon as a row is clicked.

The first thought was to simply ‘Enable Editing’ from the Smart Tag menu of the ASPxGridView. This will add another column to the grid with command links labeled Edit:

image

 

However, they didn’t want to use any command links. Instead, for their particular UI, it was necessary to edit the row as soon as it was clicked.

So a Client-Side event would be necessary here. Which one?

The great news about the new ASPx Suites is the improved documentation. Now you can easily find methods and properties for the Client-Side objects.

To find any of the Client-Side events, simply insert the word Client after ASPx in the ASPxObjectName. Therefore, to find the Client-Side events for ASPxGridView simply search the help for ASPxClientGridView.

ASPxGridView = ASPxClientGridView

ASPxComboBox = ASPxClientCombobox

ASPxMenu = ASPxClientMenu

…  You get the idea.

Using this technique, it was easy to find the StartEditRow() method for the Client-Side ASPxCLIENTGridView. Now, to simply attach it to one of the Client-Side events which are easily accessible from the ASPxGridView smart tag:

image

This will give you access to Client-Side Events Editor. Find the RowClick method and add the following line of code to put the ASPxGridView into EditMode as soon as it clicked on a row:

ASPxGridView1.StartEditRow(e.visibleIndex);

The Client-Side methods already contain the function skeleton and you simply need to add your code. In this instance, the StartEditRow is called with the current visibleindex (from the e/args parameter) that was clicked:

image

Now every time the row is clicked, it will enter into EditMode.

#6 – Auspicious

I use to think word had a negative connotation instead of the positive one:

auspicious aw-SPISH-uhs, adjective:
1. Giving promise of success, prosperity, or happiness; predicting good; as, “an auspicious beginning.”
2. Prosperous; fortunate; as, “auspicious years.”

But as Saturday fell on a very auspicious day in the Chinese calendar, every hotel in Nanjing was booked for weddings.
— Seth Kaplan with Craig S. Smith, “Adventure the Chinese Way”, New York Times, May 3, 2000

Dictionary.com/Word of the Day Archive/auspicious

#5 – Antebellum

From – Wikipedia, the free encyclopedia: 

Antebellum is a Latin word meaning before war (ante means before and bellum means war).

In United States history and historiography, the term antebellum is often used to refer to the period of increasing sectionalism leading to the American Civil War, instead of the term “pre-Civil War”. In that context, the Antebellum Period is often considered to have begun with the Kansas-Nebraska Act of 1854, although sometimes it is defined as extending back as early as 1812. Sometimes it is called the Old South. The time period after the civil war is called the postbellum or reconstruction era.

Antebellum – Wikipedia, the free encyclopedia

ASPxGridView Cool Feature: Column Header Parsing

Problem:

Do you have database column names that look like this?

image

As we all know, database column names are rarely created with the end-user in mind.

Cause:

As you probably know, the developer or dba generally base the name on the column definition. Therefore, the first name will probably called FirstName, last name = LastName, and so forth.

But would you really want to display these unformatted column names to your end-users?

Possible Solutions:

In most cases you’ll want to correct the column names before the end-user ever sees them. You can solve this problem in a couple ways. However, they are not the most elegant solutions:

1) You can change your query to display the correct name. This requires you do extra work of rewriting each column name correctly, i.e.:

SELECT FirstName AS "First Name", LastName AS "Last Name" …

2) Or you can change it in the grid. This too requires you to do extra work.

A Better Option:

Ideally, you want your grid to be smart enough to figure out that if the column is labeled, CustomerID, then "Customer ID" should be displayed.

ASPxGridView does this by default. See for yourself.

That Invoices query from above is now displayed correctly within the ASPxGridView:

image

Did you notice how the column names are already formatted for you?

You can save time by not having to re-code every column name.

Under Your Control:

You may not always want the smart parsing, so with the ASPxGridView you have the power to choose.

You can set the Caption property of the column within the columns collection of the ASPxGridView. Let’s take a closer look:

Simply set AutoGenerateColumns to False and Refresh the Schema:

image

The Columns collection is now rebuilt using the column names that were specified in the query. You can still set the Caption property of any of the columns to your liking:

image

What if you wanted to use the smart parsing but still have custom names on some columns? No problem.

You can also use the Caption property together with the smart name parsing.

With AutoGenerateColumns set to True, simply assign the column name during runtime:

protected void ASPxGridView1_DataBound(object sender, EventArgs e)
{
    ASPxGridView1.Columns[0].Caption = "Vessel Name";
}

Best of both worlds:

image

Pretty cool, huh?

Introducing the ASPxGridView… The Answer to Your ASP.NET Grid Concerns


Introducing Developer Express’s New ASPxGridView, drop into your project and suddenly:

  • Blazing Fast Load and Response Times !
  • Lightweight – Low Memory Profile !!
  • XHTML v1.0 Compliant for Cross-Browser support
  • Microsoft AJAX Compatible
  • Easy to Configure and Use
  • Powerful Templates Customization
  • Speed (Worth mentioning twice)

Background, It all started with your comments

By now, you may have already heard about the Fantastic new ASP.NET Web Grid, the ASPxGridView. If not, then here is a brief history that may interest you…

Many months ago we decided to shake up the ASP.NET marketplace. Why? By listening to You, our loyal customers. You told us that you needed more from a web grid than what you found out there.

So after taking a good hard look around the marketplace, we decided that there was still room for improvement. Although at the time we didn’t realize how much room. We had a decent solution but we’re never satisfied with just decent. So it was back to the drawing board.

Your Concerns and Problems

The major web grid problems that you reported were:

  • Microsoft ASP.NET AJAX support
  • Proper CSS support
  • XHTML rendering
  • Performance
  • Reliability

Among these issues, you said that the biggest of your concerns was the Performance and Reliability factor of many web grids. If you have a 100,000 record table that requires sorting, grouping, summaries, etc., then you want the grid to react quickly without taking out huge chunks of processor time or memory on your web servers. You and your users expect a web grid to behave smoothly without costly and annoying postbacks.

The R&D Devs

In listening to your concerns, our R&D team made it clear that to build a proper web grid, one that is capable of such feats, we would have to start from scratch. Build it from the ground up using nothing but the .NET Framework v2.0 technologies and also our existing proven shared libraries. This is was only way to address your concerns for performance and features. You wanted a grid that is capable of being dropped on the form and ready for action without any code. This was only going to be possible by starting fresh.

WHAT, A New Grid?

To understand why it’s necessary, you have to look at how most third party web grids have evolved. Most started with the Server-side implementation. Next came the client-side version. Finally, AJAX entered the picture and yet another layer was added to most of these grids. These cycles usually occurred over several years and due to several factors, most web grids lost their way. Inconsistencies, incompatiblities, etc.

We weren’t excluded from this category either. So the tough but correct decision was made to create the best web grid that would take into consideration all the issues from the start. With your high expectations and goals in mind, we embarked on the risky venture.

Our Experience + Hard-work = Success for You

The moment you first drop the grid and bind it to some datasource, your first impression will probably be, "wow, this is fast". Imagine how excited your users will be when they see the improvements you’ve made to the project just by changing the key data representation tool that is used.

You’ll immediately notice that everything is setup as callbacks out-of-the-box. There won’t be any need from you to look for a property that is hidden somewhere. You’ll find that the properties and API have been vastly improved.

You’ll feel good knowing that the grid meets all the requirements and high expectations you’ve been looking for. You won’t have to ask if there are problems working with Microsoft’s Update Panel or ASP.NET AJAX because at the heart of the ASPxGridView, the same Microsoft callbacks technology is used.

You can rest assured that the CSS support has been thoughtfully designed to make it easier for you to maintain and implement styles and themes.

Lastly, you’ll be amazed when you realize that with the ASPxGridView and our included XPO technology, you can manage LARGE datasets WITH EASE. You can feel the difference because instead of waiting minutes to sort a 300,000 record table, the ASPxGridView will sort it in as little as 2 seconds.

You’re in exclusive company

We’re not too shy to say that the ASPxGridView’s capabilities are unmatched by any other grid in the ASP.NET marketplace. With the ASPxGridView, you can handle large datasets, do true grouping, accurate summaries, enjoy cross-browser support, fast custom lightweight viewstates, and much more.

Take the Challenge

Test drive the new ASPxGridView and see for yourself just how good it is.

Here are the online demos that we hope you hack at to your heart’s content.

Or better yet, you can download our latest DXperience v2007 Volume 2 and create a project for yourself against your own database. If you don’t think the ASPxGridView is easy to setup and get going on then let me know. I want to hear your thoughts because that is how the ASPxGridView was originally born and that is how it will improve.

Tell me more

In the coming posts, I’ll highlight some specifics of the ASPxGridView that are key advantages and benefits.