protected
override
void
CreateChildControls()
{
Button submitButton =
new
Button();
submitButton.Text =
"Show window"
;
submitButton.ID =
"popupButton"
;
Controls.Add(submitButton);
popupWindow =
new
RadWindow();
popupWindow.OpenerElementID = submitButton.ClientID;
popupWindow.NavigateUrl =
"http://www.google.com"
;
Controls.Add(popupWindow);
base
.CreateChildControls();
}
Hello
I have created the dynamic checkbox template column. But the check boxes which is present in the grid has not enabled. I can't check or decheck those checkbox controls. Please help me on this Issue......
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
Telerik.Web.UI;
using
System.Data;
using
DataAccessLayer;
namespace
GemsStandard.Transactions.Fees
{
public partial class tempDymClm : System.Web.UI.Page
{
FetchSQL fetchSQL = new FetchSQL();
protected void Page_Load(object sender, EventArgs e)
{
BindColumn();
}
public void BindColumn()
{
//http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-runtime-columns.aspx
DataTable dt = new DataTable();
dt = fetchSQL.GetDataTable(
"select ac.AcademicYearName from tblAcademicYear ac", CommandType.Text);
GridBoundColumn boundColumn = new GridBoundColumn();
// boundColumn = new GridBoundColumn();
boundColumn.UniqueName =
"AcademicYearName";
boundColumn.DataField =
"AcademicYearName";
boundColumn.HeaderText =
"AcademicYearName";
RadGrid1.MasterTableView.Columns.Add(boundColumn);
GridCheckBoxColumn checkboxColumn = new GridCheckBoxColumn();
checkboxColumn.HeaderText =
"BusFee";
checkboxColumn.UniqueName =
"BusFee";
RadGrid1.MasterTableView.Columns.Add(checkboxColumn);
GridCheckBoxColumn checkboxColumn1 = new GridCheckBoxColumn();
checkboxColumn1.HeaderText =
"TFee";
checkboxColumn1.UniqueName =
"TFee";
RadGrid1.MasterTableView.Columns.Add(checkboxColumn1);
RadGrid1.MasterTableView.Columns.Add(Gvr);
RadGrid1.DataSource = dt;
RadGrid1.DataBind();
}
}
}
When I try it in the VisualStudio it works good. When I type some words to the textbox results are loaded and paging works.
When I publish it into the IIS 6 first paging works but in the next postback I get javascript error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Fri, 21 Jan 2011 15:47:23 UTC
Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 405
Line: 6
Char: 84093
Code: 0
URI: http://risdev/KM/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=scriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.3.1109.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a30468509-1b07-456a-b5f4-bb35a9cae168%3a16e4e7cd%3a86526ba7%3a874f8ea2%3aed16cbdc%3af7645509%3a24ee1bba%3af46195d3%3a19620875%3a490a9d4e%3abd8f85e4%3ae330518b%3a1e771326%3ac8618e41%3bnData.KnowledgeManagement.Web%2c+Version%3d1.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3dnull%3aen-US%3adf04c003-4d7b-4c85-89a9-019a1e4b5e86%3ac7908112%3bTelerik.Web.UI%2c+Version%3d2010.3.1109.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a30468509-1b07-456a-b5f4-bb35a9cae168%3ab7778d6c%3a9cdfc6e7%3addbfcb67%3a58366029%3a628ebdd0
When I disable ajax on RadAjaxPanel, it works OK but with normal postabck.
Could you help me?
Thanks
Jiri
protected void NavigationMenu_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
{
if (e.Item.Value == "Theme")
{
}
else if (e.Item.Text == "Product")
{
ScriptManager.RegisterStartupScript(this, GetType(), "openWin", "openWin();", true);
}
}