or
protected void Page_Init(object sender, EventArgs e){ DefineGridStructure();} private void DefineGridStructure(){ GridBoundColumn boundColumn; boundColumn = new GridBoundColumn(); RadGridAttendance.MasterTableView.Columns.Add(boundColumn); boundColumn.DataField = "Name"; boundColumn.HeaderText = "Name"; string session_id = dt.Rows[i]["web_submission_id"].ToString(); GridTemplateColumn templateColumn = new GridTemplateColumn(); templateColumn.ItemTemplate = new MyTemplate(session_id,db); templateColumn.UniqueName = session_id; RadGridAttendance.MasterTableView.Columns.Add(templateColumn); }class MyTemplate : ITemplate{ private string colname; protected CheckBox cbAttended; private string query; private string session_id; private DataLib_oracle db; public MyTemplate(string sessionid, DataLib_oracle dbo) { colname = sessionid; session_id = sessionid; db = dbo; } public void InstantiateIn(System.Web.UI.Control container) { cbAttended = new CheckBox(); cbAttended.Attributes["session_id"] = session_id; container.Controls.Add(cbAttended); cbAttended.DataBinding += new EventHandler(cbAttended_DataBinding); cbAttended.ID = session_id; //cbAttended.Checked = true; //cbAttended.Enabled = false; } void cbAttended_DataBinding(object sender, EventArgs e) { string attended; CheckBox cBox = (CheckBox)sender; GridDataItem container = (GridDataItem)cBox.NamingContainer; string personnel_id = ((DataRowView)container.DataItem)["personnel_id"].ToString(); cbAttended.Attributes["personnel_id"] = personnel_id; string session_id = cBox.Attributes["session_id"].ToString(); //Eval("Attended").ToString() == "1" //cBox.Checked = (bool)((DataRowView)container.DataItem)["Bool"]; query = " SELECT ATTENDED FROM WEB_ATTENDEES WHERE PERSONNEL_ID = " + personnel_id + " AND SESSION_ID = " + session_id; attended = db.GetStrDescFromID(query, WebKit.ConnectionString); if (attended=="1") cBox.Checked = true; } }foreach (GridDataItem item in RadGridAttendance.MasterTableView.Items) { string test = RadGridAttendance.Columns[1].UniqueName; CheckBox cb = (CheckBox)(item[test].FindControl(test));}<telerik:RadTextBox runat="server" InputType="Text" ID="rtbSearch" Width="500px" TextMode="MultiLine" Rows="5" EmptyMessage="Please enter numbers, maximum of 5, one per line."></telerik:RadTextBox>column = RadGrid2.MasterTableView.GetColumnSafe("ProcessName")column.CurrentFilterFunction = GridKnownFunction.EqualTocolumn.CurrentFilterValue = cboProductSelectedValueRadGrid2.MasterTableView.FilterExpression = "([ProcessName] = 'Process1')"
RadGrid2.MasterTableView.Rebind()
column = RadGrid2.MasterTableView.GetColumnSafe("ProcessName")column.CurrentFilterFunction = GridKnownFunction.Betweencolumn.CurrentFilterValue = "Process1 Process2" RadGrid2.MasterTableView.FilterExpression = "([ProcessName] BETWEEN 'Process1 Process2')"RadGrid2.MasterTableView.Rebind()<telerik:RadListView ID="RadListView1" runat="server" DataSourceID="ldsContacts" Skin="WebBlue" CssClass="StripFont" OnItemDataBound="rlvContacts_ItemDataBound" DataKeyNames="ContactID">and then I added the StripFont class to my css:
div.StripFont, .StripFont table, .StripFont div, .StripFont .RadListView_WebBlue,
.StripFont .RadListView_WebBlue div, .StripFont .RadListView_WebBlue body table { font-size: 1em; }
