473,385 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

YuiGrid

Can any one tell how to use YuiGrid of the extender control. I mean how to get the data from the database into that YuiGrid... I have written the code which is working for the gridview of DataControl but not for YuiGrid. Here is the code...

Expand|Select|Wrap|Line Numbers
  1.     <cc1:YuiGrid Width="411px" Height="300px" ID="YuiGrid1" AutoGenerateColumns="false"
  2.             EnableRowSorting="false" EnablePaging="false" AutoPostBack="true" runat="server" EnableViewState="true" OnSelectedIndexChanged="YuiGrid1_SelectedIndexChanged">
  3.           <Columns>
  4.              <cc1:ColModel header="Eqp Cls Name" dataIndex="EqpClsName" sortable="true" width="230"  />
  5.                <cc1:ColModel header="Critical Rank" dataIndex="CrtRnk" sortable="true" width="230"  />
  6.                <cc1:ColModel header="Description" dataIndex="Description" sortable="true" width="230"  />
  7.  
  8.  
  9.             </Columns>
  10.         </cc1:YuiGrid>
  11.  
  12.  
  13. And here is the code behind
  14.  
  15. using System;
  16. using System.Data;
  17. using System.Configuration;
  18. using System.Collections;
  19. using System.Collections.Generic;
  20. using System.Linq;
  21. using System.Web;
  22. using System.Web.Security;
  23. using System.Web.UI;
  24. using System.Web.UI.WebControls;
  25. using System.Web.UI.WebControls.WebParts;
  26. using System.Web.UI.HtmlControls;
  27. using System.Xml.Linq;
  28. using EAM.BO;
  29. using EAM.BLL;
  30.  
  31. public partial class Transactions_Grid : System.Web.UI.Page
  32. {
  33.  
  34.     protected void Page_Load(object sender, EventArgs e)
  35.     {
  36.         YuiGrid1.SelectedIndexChanged += new ExtExtenders.SelectedRowEventHandler(YuiGrid1_SelectedIndexChanged);
  37.         ScriptManager1.RegisterAsyncPostBackControl(YuiGrid1);
  38.  
  39.         if (!IsPostBack)
  40.         {
  41.             GetAllEqpCls();
  42.  
  43.         }
  44.     }
  45.     protected void YuiGrid1_SelectedIndexChanged(object sender, ExtExtenders.SelectedRowArgs e)
  46.     {
  47.         txtEqpClsName.Text = e.SelectedRow["EqpClsName"].ToString();
  48.         txtCrtRnk.Text = e.SelectedRow["CrtRnk"].ToString();
  49.         txtDescription.Text = e.SelectedRow["Description"].ToString();
  50.     }
  51.     private void GetAllEqpCls()
  52.     {
  53.         long lngEqpID = 0;
  54.         clsEqpClsBLL objEqpClsBLL = new clsEqpClsBLL();
  55.         YuiGrid1.DataSource = objEqpClsBLL.GetAllEqpCls(lngEqpID);
  56.         YuiGrid1.DataBind();
  57.  
  58.     }
  59.  
  60. }
Feb 27 '08 #1
2 3054
Plater
7,872 Expert 4TB
I would have just suggested asking the creater of the thirdparty control for how to use it(i.e. look through THEIR website about it), but I suppose a blanket search on google is about as good.
That's what like a Yahoo control or something right?
Feb 27 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: dnha | last post by:
Hi I want to add a button which on clicked take me to the particular page as entered at the TextBox of paging toolbar.The Grid i m using is ajax enabled YUI Grid.Please reply.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.