Private Sub LoadEditor(ByVal File As String)
Dim sr As System.IO.StreamReader
Dim fi As New System.IO.FileInfo(File)
Dim strContents As String = ""
If System.IO.File.Exists(File) Then
sr = System.IO.File.OpenText(File)
strContents += sr.ReadToEnd()
Editor.Content = strContents
sr.Close()
Else
End If
End Sub

RadGrid1.MasterTableView.DataSource = myDataSet.Tables(
"a").DefaultView
RadGrid1.Columns(0).Visible =
False
After that, I tried to debug it during runtime and found out that the grid having no column even though i have set its DataSource.
Anyway to solve this out?
Thanks in advance and apprciate for the answer.
Regards,
Lim
protected void FormViewSkillDetails_DataBound(object sender, EventArgs e)
{
if (FormViewSkillDetails.CurrentMode == FormViewMode.Insert)
{
FormViewSkillDetails.Focus(); //place the cursor on the 1st available field of the form view.
//DropDownList ddl = (DropDownList)FormViewSkillDetails.FindControl("DropDownListSkillTypeInsertDisplay");
RadComboBox ddl = (RadComboBox)FormViewSkillDetails.FindControl("RadComboBoxSkillTypeInsertDisplay");
Panel p = (Panel)FormViewSkillDetails.FindControl("PanelSkillOwnHeadingInsertItem");
RequiredFieldValidator rfv = (RequiredFieldValidator)FormViewSkillDetails.FindControl("RequiredFieldValidatorClientSideSkillOwnHeadingInsert");
CustomValidator cvss = (CustomValidator)FormViewSkillDetails.FindControl("CustomValidatorServerSideSkillOwnHeadingInsertItemBlank");
ddl.Attributes.Add("onchange", "JavaScript:selectInputInsertChange('" + ddl.ClientID + "', '" + p.ClientID + "', '" + rfv.ClientID + "', '" + cvss.ClientID + "');");
}
}
Any suggestions?
| <%@ Page Language="C#" AutoEventWireup="true" %> |
| <%@ Import Namespace="Telerik.Web.UI" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6"></script> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="ScriptManager" runat="server" EnablePageMethods="true" |
| LoadScriptsBeforeUI="false" ScriptMode="Release" EnableHandlerDetection="false" |
| OutputCompression="Disabled" EnableScriptCombine="true"> |
| </telerik:RadScriptManager> |
| <telerik:RadWindowManager ID="WindowManager" runat="server" Skin="Black"> |
| <Windows> |
| <telerik:RadWindow ID="FW" runat="server" Top="100px" Left="600px" Title="Test window" |
| Width="256px" Height="720px" Visible="true" NavigateUrl="http://www.google.com/" |
| VisibleOnPageLoad="true"> |
| </telerik:RadWindow> |
| </Windows> |
| </telerik:RadWindowManager> |
| </form> |
| </body> |
| </html> |