or
| protected void btnAddCustomer_Click(object sender, EventArgs e) |
| { |
| Customers custs = (Customers)Session["Customers"]; |
| Customer cust = new Customer(); |
| cust.CustomerID = this.cbCustomerList.SelectedValue; |
| custs.Add(cust); |
| Session["Customers"] = custs; |
| this.rgCustomers.Databind(); |
| } |
| <asp:ObjectDataSource ID="odsCustomers" runat="server" |
| DataObjectTypeName="EClassLibrary.Customer" InsertMethod="Add" |
| SelectMethod="Select" TypeName="EClassLibrary.Customers"> |
| </asp:ObjectDataSource> |
| public DataTable Select() |
| { |
| DataTable myTable = new EDataSet.dtCustomersDataTable(); |
| EDataSet.dtCustomersRow myRow = (EDataSet.dtCustomersRow) myTable.NewRow(); |
| foreach (Customer cust in this) |
| { |
| myRow.CustomerName = prov.GetCustomerName(); |
| myRow.Company = prov.GetCustomerCompany(); |
| myRow.JobTitle = prov.GetCustomerJobTitle(); |
| myRow.UserID = prov.GetProviderUserID(); |
| myTable.Rows.Add(myRow); |
| } |
| return myTable; |
| } |
Animation can be both useful and bad when it comes to usability.. I tend to like it (besides the showoff) - but the menu animation does one thing that I don’t like: It display the first item last!
1) An option that could display the menu where the animation reveals the first item first would be very welcome. This would also eliminate the scroll "effect". Just like expanding nodes in a treeview animates.
2) Another animation type could be added: Fade (aka. opacity/transparency).. Since the animation is generic - this should be restricted to pop-ups like menu, date/time pickers, combobox etc. since it wouldn’t make much since to e.g. expanding nodes in a treeview.
Thanks
Line 1611: e.NodeClicked.Nodes.Add(nodeFEAT); |
[NullReferenceException: Object reference not set to an instance of an object.] |
| function my_onload_expand() { |
| var m_treeview = $find("<%= TreeView1.ClientID %>"); |
| var node = m_treeview.findNodeByText("Root"); |
| node.expand(); |
| } |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:radsplitter id="RadSplitter1" runat="server" height="100%" width="100%" Orientation="Horizontal" Skin="Default2006"> |
| <telerik:radpane id="panel_header" runat="server" Height="68" ContentUrl="header.aspx" MaxHeight="68" MinHeight="68"></telerik:radpane> |
| <telerik:radsplitbar id="RadSplitbar1" runat="server" CollapseMode="Forward" /> |
| <telerik:radpane id="contentPane" runat="server" Scrolling="None"> |
| <telerik:radsplitter id="RadSplitter2" runat="server" height="100%" width="100%" Skin="Default2006"> |
| <telerik:radpane id="panel_menu" runat="server" width="250" ContentUrl="test.aspx"></telerik:radpane> |
| <telerik:radsplitbar id="RadSplitbar2" runat="server" CollapseMode="Forward" /> |
| <telerik:radpane id="panel_list" runat="server" ContentUrl="list.aspx"></telerik:radpane> |
| </telerik:radsplitter> |
| </telerik:radpane> |
| </telerik:radsplitter> |