Must i use RadScriptManager and RadStyleSheetManager in the same page ?or does RadScriptManager its job plus RadStyleSheetManager ?
2. About skins and performance in the web applications
I am using web20 Skin. but i am customizabling some components because all fonts shoud be verdana, so in alltextbox,combobox. EnableEmbeddedSkins is false and i am declaring the css for customizable controls in the head of the marter page in the following way :
<link href="Web20/ComboBox.Web20.css" rel="stylesheet" type="text/css" />
<link href="Web20/Grid.Web20.css" rel="stylesheet" type="text/css" />
<link href="Web20/Input.Web20.css" rel="stylesheet" type="text/css" />
<link href="Web20/Menu.Web20.css" rel="stylesheet" type="text/css" />
<link href="Web20/PanelBar.Web20.css" rel="stylesheet" type="text/css" />
<link href="Web20/TreeView.Web20.css" rel="stylesheet" type="text/css" />
My most important corcern is the preformance (the speed to load the page) and my cuestions are :
Should I use RadStyleSheetManager for the other components (For components which I am not cutomizabling) ? (i think RadStyleSheetManager is only working with embedded skins, tell me please if it's different )
Should I merge all css(all css which i am cutomizabling) in one in order to load the page faster ?
3. and my last cuestion is about customizabling components for every instance or in the css.
My last cuestion is about what is load faster.
I can use embedded skins and everytime that i use a textbox i modify the font or I disable EnableEmbeddedSkins and use css as above.
What is better ?
Thank you very much. Pepito
Multiple resource view, - If I search for resources in a date range, how do I get to show them all in one view?
<
ClientSettings >
<Selecting AllowRowSelect="True" />
<ClientEvents OnRowDblClick="OpenBusinessObject" />
function
OpenBusinessObject(index)
{
var props;
alert(index); // get an object here
var test = document.getElementById("ctl00_List_dgList_ctl00");
alert(test.rows.length); // gives me 22 rows which is correct
//var row = test.MasterTableView.Rows[index]; this didnt work. Get NULL
//alert(row);
var propsCol = test.GetCellByColumnUniqueName(test.Rows[index], "EditProp"); // error with Rows.[index]
protected void Page_Load(object sender, EventArgs e)
{
RadGrid RadGrid1 = new RadGrid();
this.PlaceHolder1.Controls.Add(RadGrid1);
if (!IsPostBack)
{
DataSet ds = specTrackService.ReturnDepartures("L1");
DataTable dtShipments = ds.Tables["SRSShipments"];
DataTable dtContainers = ds.Tables["SRSContainers"];
RadGrid1.DataSource = dtShipments;
RadGrid1.MasterTableView.DataKeyNames =
new string[] { "ShipmentNumber" };
RadGrid1.Width =
Unit.Percentage(98);
RadGrid1.PageSize = 5;
RadGrid1.AllowPaging =
true;
RadGrid1.PagerStyle.Mode =
GridPagerMode.NextPrevAndNumeric;
RadGrid1.AutoGenerateColumns =
false;
RadGrid1.Skin =
"Office2007";
RadGrid1.GroupingEnabled =
true;
RadGrid1.ShowGroupPanel =
true;
RadGrid1.ClientSettings.AllowDragToGroup =
false;
RadGrid1.ClientSettings.AllowColumnsReorder =
true;
RadGrid1.MasterTableView.PageSize = 5;
RadGrid1.MasterTableView.Width =
Unit.Percentage(100);
GridBoundColumn boundColumn;
boundColumn =
new GridBoundColumn();
RadGrid1.MasterTableView.Columns.Add(boundColumn);
boundColumn.DataField =
"ShipmentNumber";
boundColumn.HeaderText =
"Shipment Number";
boundColumn =
new GridBoundColumn();
RadGrid1.MasterTableView.Columns.Add(boundColumn);
boundColumn.DataField =
"Description";
boundColumn.HeaderText =
"Description";
boundColumn =
new GridBoundColumn();
RadGrid1.MasterTableView.Columns.Add(boundColumn);
boundColumn.DataField =
"DepartureTime";
boundColumn.HeaderText =
"Departure Time";
boundColumn.ItemStyle.Width =
Unit.Pixel(125);
boundColumn =
new GridBoundColumn();
RadGrid1.MasterTableView.Columns.Add(boundColumn);
boundColumn.DataField =
"ScheduledArrivalTime";
boundColumn.HeaderText =
"Scheduled Arrival Time";
boundColumn.ItemStyle.Width =
Unit.Pixel(135);
boundColumn =
new GridBoundColumn();
RadGrid1.MasterTableView.Columns.Add(boundColumn);
boundColumn.DataField =
"ActualArrivalTime";
boundColumn.HeaderText =
"Actual Arrival Time";
boundColumn.ItemStyle.Width =
Unit.Pixel(125);
boundColumn =
new GridBoundColumn();
RadGrid1.MasterTableView.Columns.Add(boundColumn);
boundColumn.DataField =
"Status";
boundColumn.HeaderText =
"Status";
boundColumn =
new GridBoundColumn();
RadGrid1.MasterTableView.Columns.Add(boundColumn);
boundColumn.DataField =
"SpecimenVolume";
boundColumn.HeaderText =
"Spec Volume";
//details table - Containers for a shipment
GridTableView tvContainers = new GridTableView();
RadGrid1.MasterTableView.DetailTables.Add(tvContainers);
tvContainers.DataSource = dtContainers;
tvContainers.DataKeyNames =
new string[] { "ContainerNumber" };
tvContainers.Width =
Unit.Percentage(100);
GridRelationFields relationFields = new GridRelationFields();
tvContainers.ParentTableRelation.Add(relationFields);
relationFields.MasterKeyField =
"ShipmentNumber";
relationFields.DetailKeyField =
"ShipmentNumber";
boundColumn =
new GridBoundColumn();
tvContainers.Columns.Add(boundColumn);
boundColumn.DataField =
"ContainerNumber";
boundColumn.HeaderText =
"Container Number";
boundColumn =
new GridBoundColumn();
tvContainers.Columns.Add(boundColumn);
boundColumn.DataField =
"Status";
boundColumn.HeaderText =
"Status";
}
Dim
MyUserControl As UserControl = CType(e.Item.FindControl(GridEditFormItem.EditFormUserControlID), UserControl)
And then I do something like this to get the value from MyUserControl:
CType
(MyUserControl.FindControl("tbEntityID"), TextBox).Text)
So how can I retrieve the value of this HTML Input control:
<
input id="HiddenEntityID" style="width: 73px" type="text" />
Thanks,
Bob