User Profile & Activity

Kashif Butt Member

Hello Hans Kristian,


is there another way to Identify the Column which got double clicked? Because if i move the column, so that column has a different cellindex then before and the value gets set to the wrong column.

Posted: November 20, 2012 7:48 AM

Thanks for your Sample Hans. 

I cant use 

WebGrid1.RootTable.Columns.GetNamedItem("CompanyName").Show();

 

because the Contact_ID is in the second childTable. The Roottable has 3 childTables.

Region(RootTable) ->City(ChildTable) -> Building(ChildTable: HERE IS the CONTACT_ID) ....


How can i access that column?


I tried 


grid.RootTable.ChildTables[0].ChildTables[1].Columns.GetNamedItem("CONTACT_ID").Show();

 

but i does not work. What iam doing wrong?

Posted: November 19, 2012 9:16 AM

Thanks Yudi, the Solution is working perfectly. Thanks for your help!


But i have another Question. If i do the same for MonthView


if (WebScheduler1.ViewSettings.SelectedViewMode == "Month") not working!

 

it is not working. Is there also a Workaround for MonthView?

Posted: November 14, 2012 4:47 AM

Hello Yudi,

my Company is using Web sceduler and actually we need a solution in the matter pictured above. We have to be able to switch bar colours in category colours, or we can't use InterSoft Web Sceduler at all.
Do You have any progress in this? Is there planned any update?

with kind regards and hope for any solution



Posted: October 12, 2012 2:33 AM
In the sample you create a WebGrid with four coloums.  I already created a Webgrid with four coloums. My Problem is how can i add Data to that Webgrid without using a Datasource. 

To be more specifically. I have Hibernate-Mappings and i want to add that Data which i get from the Mapping to the WebGrid.

For Example. 

This is how i have it right now. I create a table manually and add the Data manually to the Table 

        TableRow row = new TableRow();
        TableCell cell = new TableCell();
        if (dr.Service.Amount == Amount.Basket)
        {
            foreach (BasketService basketDl in dr.Service.Basket)
            {
                
               
                cell.Controls.Add(new LiteralControl("<tr />"));
                TableRenderer.AddTableCell(row, s.From.ToString(form.DatumsFormat), 1);
                TableRenderer.AddTableCell(row, s.From.ToString(form.ZeitFormat), 1);
                TableRenderer.AddTableCell(row, s.Until.ToString(form.DatumsFormat), 1);
                TableRenderer.AddTableCell(row, s.Until.ToString(form.ZeitFormat), 1);
                cell = new TableCell();
                var txt = new TextBox();
                txt.Text = string.Format("{0:0.00}", s.Price);
                txt.Width = 42;
                txt.MaxLength = 5;
                txt.CssClass = "nummer";
                cell.Controls.Add(txt);
                row.Cells.Add(cell);
              }
          }
 
How can i do it like that with a WebGrid?


 


All times are GMT -5. The time now is 3:30 PM.
Previous Next