Click here to Skip to main content
15,888,968 members
Home / Discussions / C#
   

C#

 
Questioncant create an xml file Pin
igalep13214-Aug-10 0:18
igalep13214-Aug-10 0:18 
AnswerRe: cant create an xml file Pin
Abhishek Sur14-Aug-10 0:30
professionalAbhishek Sur14-Aug-10 0:30 
GeneralRe: cant create an xml file Pin
igalep13214-Aug-10 0:40
igalep13214-Aug-10 0:40 
AnswerRe: cant create an xml file Pin
PIEBALDconsult14-Aug-10 5:28
mvePIEBALDconsult14-Aug-10 5:28 
Questionhighlighting the row of the access database Pin
swtlibra13-Aug-10 21:31
swtlibra13-Aug-10 21:31 
AnswerRe: highlighting the row of the access database Pin
Roger Wright13-Aug-10 22:25
professionalRoger Wright13-Aug-10 22:25 
AnswerRe: highlighting the row of the access database Pin
Luc Pattyn13-Aug-10 22:44
sitebuilderLuc Pattyn13-Aug-10 22:44 
QuestionHierachy Grid from Objects Pin
Vimalsoft(Pty) Ltd13-Aug-10 20:51
professionalVimalsoft(Pty) Ltd13-Aug-10 20:51 
Good Day All

i have Successfully binded the Telerik Schedular from Objects and its looking Good. Now i have to Bind the same results but in hierachial form. Please note that i am using Telerik Grid and the implementation is the same as asp.net Gridview. i need someone to Guide me to do a hierachy grid from objects , please if you send an example code , add comments so that i can understand the logic.

private void BindViewer() 
  { 
      VS.ViewerService obj = new VS.ViewerService(); 
      String SessionKey = obj.newSession(); 
      DateTime Date1 = Convert.ToDateTime("1980-01-01"); 
      DateTime Date2 = Convert.ToDateTime("2012-12-31"); 
      VS.extract extract = obj.getObjects(SessionKey, "Butt", Date1, false, Date2, false, "", ""); 
      try
      { 
          RadPanelBar1.Items.Clear(); 
          RadScheduler1.Appointments.Clear(); 
          int Len = extract.set.Length; 
          for (int i = 0; i < Len; i++) 
          { 
              VS.vertex value = extract.set[i]; 
              String PanelClass = value.meta; 
              PanelClass = PanelClass.Replace(Remstr, ""); 
              PanelClass = PanelClass.Replace(Remstr2, ""); 
              Appointment app = null; 
              if (value.atom != null) 
              { 
                  RadPanelItem pane = RadPanelBar1.Items.FindItemByText(PanelClass); 
                  if (pane == null) 
                  { 
                      RadPanelItem nwpane = new Telerik.Web.UI.RadPanelItem(PanelClass); 
                      RadPanelItem nwpaneSpliter = new Telerik.Web.UI.RadPanelItem(PanelClass); 
                      nwpaneSpliter.IsSeparator = true; 
                      RadPanelBar1.Items.Add(nwpane); 
                      pane = nwpane; 
                  } 
                  if (value.meta == "za.co.abacus.C_EVENT") 
                  { 
                      app = new Appointment(); 
                  } 
                  int atomLen = value.atom.Length; 
                  for (int j = 0; j < atomLen; j++) 
                  { 
                      VS.atom atm = value.atom[j]; 
                      if (atm.meta.Contains("za.co.reactor.A_LABEL")) 
                      { 
                          RadPanelItem NewItem = new RadPanelItem(atm.content); 
                          pane.Items.Add(NewItem); 
                          if (app != null) 
                          { 
                              app.Subject = atm.content; 
                              app.Description = atm.content; 
                              app.ID = value.key; 
                          } 
                      } 
                      if (app != null && atm.meta.Contains("za.co.abacus.C_EVENT")) 
                      { 
                          app.ID = atm.content; 
                      } 
                      if (app != null && atm.meta.Contains("za.co.reactor.A_HORIZON")) 
                      { 
                          app.Start = Convert.ToDateTime(atm.content); 
                      } 
                      if (app != null && atm.meta.Contains("za.co.reactor.AA_HORIZON")) 
                      { 
                          app.End = Convert.ToDateTime(atm.content); 
                      } 
                      if (app != null && atm.meta.Contains("za.co.reactor.A_TEXT")) 
                      { 
                          app.Description = atm.content; 
                      } 
                      if (app != null && atm.meta.Contains("za.co.reactor.A_TEXT")) 
                      { 
                          app.RecurrenceRule = atm.content; 
                      } 
                      if (app != null && app.End > app.Start) 
                      { 
                          RadScheduler1.DataStartField = app.Start.ToString(); 
                          RadScheduler1.DataSubjectField = app.Subject.ToString(); 
                          RadScheduler1.DataEndField = app.End.ToString(); 
                          RadScheduler1.DataKeyField = app.ID.ToString(); 
                          RadScheduler1.SelectedView = SchedulerViewType.MonthView; 
                          RadScheduler1.SelectedDate = app.Start; 
                          SlidingZone1.ExpandedPaneId = "RadSlidingPane1"; 
                     
                      } 
                  } 
              } 
          } 
      } 
      catch (ApplicationException ex) 
      { 
      } 
      finally
      { 
          obj.closeSession(SessionKey); 
      } 
  }

Now with the same results i want to bind a Hierachy Grid as it Shows in my attached image. I am using EAV that means the is no Fixed Column name, so the Binding of the Grid Should be Dynamically.


Thank you

http://www.telerik.com/ClientsFiles/211914_hierachygridview.JPG[^]
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

QuestionMessage Removed Pin
13-Aug-10 13:06
yum 201013-Aug-10 13:06 
AnswerRe: sever is not displaying the content that " you have left the chat room".... Pin
OriginalGriff13-Aug-10 23:06
mveOriginalGriff13-Aug-10 23:06 
GeneralMessage Removed Pin
14-Aug-10 0:26
yum 201014-Aug-10 0:26 
GeneralRe: sever is not displaying the content that " you have left the chat room".... Pin
OriginalGriff14-Aug-10 2:01
mveOriginalGriff14-Aug-10 2:01 
GeneralRe: sever is not displaying the content that " you have left the chat room".... Pin
yum 201014-Aug-10 7:45
yum 201014-Aug-10 7:45 
GeneralRe: sever is not displaying the content that " you have left the chat room".... Pin
yum 201014-Aug-10 7:49
yum 201014-Aug-10 7:49 
GeneralRe: sever is not displaying the content that " you have left the chat room".... Pin
OriginalGriff14-Aug-10 8:49
mveOriginalGriff14-Aug-10 8:49 
GeneralRe: sever is not displaying the content that " you have left the chat room".... Pin
Luc Pattyn14-Aug-10 9:05
sitebuilderLuc Pattyn14-Aug-10 9:05 
GeneralRe: sever is not displaying the content that " you have left the chat room".... Pin
OriginalGriff14-Aug-10 9:24
mveOriginalGriff14-Aug-10 9:24 
GeneralRe: sever is not displaying the content that " you have left the chat room".... Pin
Luc Pattyn14-Aug-10 9:27
sitebuilderLuc Pattyn14-Aug-10 9:27 
GeneralRe: sever is not displaying the content that " you have left the chat room".... Pin
OriginalGriff14-Aug-10 9:35
mveOriginalGriff14-Aug-10 9:35 
GeneralRe: sever is not displaying the content that " you have left the chat room".... Pin
yum 201015-Aug-10 8:11
yum 201015-Aug-10 8:11 
QuestionGet cell value from GridView Pin
treuveni13-Aug-10 12:45
treuveni13-Aug-10 12:45 
AnswerRe: Get cell value from GridView Pin
PIEBALDconsult13-Aug-10 17:55
mvePIEBALDconsult13-Aug-10 17:55 
GeneralRe: Get cell value from GridView Pin
treuveni13-Aug-10 21:03
treuveni13-Aug-10 21:03 
AnswerRe: Get cell value from GridView Pin
maddahi.m.p14-Aug-10 0:29
maddahi.m.p14-Aug-10 0:29 
QuestionMessage Removed Pin
13-Aug-10 11:53
Tichaona J13-Aug-10 11:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.