calendarView.set_selectedDate(eventArgs.get_appointment().get_start());
eventArgs.get_appointment().set_selected();
protected void grdSummary_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == RadGrid.FilterCommandName)
{
Pair filterPair = (Pair)e.CommandArgument;
string strOperator = filterPair.First; // Starts With, ..etc
string strColumn = filterPair.Second; // Column Filtering On
string searchValue = ((TextBox)(e.Item as GridFilteringItem)[filterPair.Second.ToString()].Controls[0]).Text;
string columnId = ??
function
SelectRows()
{
var
masterTable = $find(
"<%= CandidatesGrid.ClientID %>"
).get_masterTableView();
var
row = masterTable.get_dataItems();
for
(i =0;i<row.length;i++)
{
var
check=masterTable.get_dataItems()[i].getDataKeyValue(
"Check"
);
if
(check !=0)
{
masterTable.get_dataItems()[i].set_selected(
true
);
}
else
{
masterTable.get_dataItems()[i].set_selected(
false
);
// How to disable the row here?
}
}
}
I have a simple test project.
One panel executes a timer every 4 seconds (a long running task).
Another panel has a button that will redirect to another page.
Each panel is added to the radajaxmanager ajaxsettings
When the timer is executing, the button on the second panel never executes (although the loading panel is shown). So the new page isn't shown.
This is the code I use:
protected
void
Page_Load(
object
sender, EventArgs e)
{
RadAjaxManager1.RequestQueueSize = 3;
// Panel 1
Panel panel =
new
Panel();
panel.Height = 200;
panel.Width = 200;
panel.BorderColor = System.Drawing.Color.Green;
panel.BorderWidth = 3;
panel.BorderStyle = BorderStyle.Solid;
panel.ID =
"NewPanel"
;
Label newLabel =
new
Label();
newLabel.ID =
"NewLabel"
;
panel.Controls.Add(newLabel);
Timer newTimer =
new
Timer();
newTimer.ID =
"newTimer"
;
newTimer.Interval = 4000;
newTimer.Enabled =
true
;
newTimer.Tick += newTimer_Tick;
panel.Controls.Add(newTimer);
RadButton newButton =
new
RadButton();
newButton.ID =
"newButton"
;
newButton.Click += newButton_Click;
panel.Controls.Add(newButton);
form1.Controls.Add(panel);
// Panel 2
Panel panel2 =
new
Panel();
panel2.Height = 200;
panel2.Width = 200;
panel2.BorderColor = System.Drawing.Color.Beige;
panel2.BorderWidth = 3;
panel2.BorderStyle = BorderStyle.Solid;
panel2.ID =
"NewPanel2"
;
Label newLabel2 =
new
Label();
newLabel2.ID =
"NewLabel2"
;
panel2.Controls.Add(newLabel2);
RadButton newButton2 =
new
RadButton();
newButton2.ID =
"newButton2"
;
newButton2.Click += newButton2_Click;
panel2.Controls.Add(newButton2);
form1.Controls.Add(panel2);
RadAjaxManager1.AjaxSettings.AddAjaxSetting(panel, panel);
RadAjaxManager1.AjaxSettings.AddAjaxSetting(panel2, panel2);
}
void
newButton2_Click(
object
sender, EventArgs e)
{
System.Threading.Thread.Sleep(500);
this
.Page.Response.Redirect(
"~/Test.aspx"
);
}
void
newButton_Click(
object
sender, EventArgs e)
{
System.Threading.Thread.Sleep(500);
Label lbl = Page.FindControl(
"NewLabel"
)
as
Label;
lbl.Text = System.DateTime.Now.ToString();
}
void
newTimer_Tick(
object
sender, EventArgs e)
{
System.Threading.Thread.Sleep(3000);
Label lbl = Page.FindControl(
"NewLabel"
)
as
Label;
lbl.Text = System.DateTime.Now.ToString();
}
}
<
telerik:RadScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<ClientEvents OnRequestStart="onRequestStart" />
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="mainPanel">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="mainPanel" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" EnableSkinTransparency ="true" runat="server">
</telerik:RadAjaxLoadingPanel>
protected
void Button_Click(object sender, EventArgs e)
{
string reqno = string.Empty;
string status = string.Empty;
string fyear = FYear.ToString();
SecureQueryString param = new SecureQueryString();
param.Add(
"ReqnoId", reqno);
param.Add(
"StatusId", status);
param.Add(
"Fyear", fyear);
string url = "~/PerSession/PRRequest/PrincipalRequest.aspx?data=" + param.ToString();
Response.Redirect(url);
 
}
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="mainPanel" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
it works fine but progress bar now does not working.
SqlConnection cn =
new
SqlConnection(connStr);
SqlDataAdapter da =
new
SqlDataAdapter(
"SELECT MAX(node) AS node FROM tabs"
, cn);
DataTable dt =
new
DataTable();
if
(cn.State == ConnectionState.Closed)
{
cn.Open();
}
try
{
da.Fill(dt);
}
catch
{ }
if
(dt !=
null
&& dt.Rows.Count > 0)
{
Int32 node = Convert.ToInt32(dt.Rows[0][
"node"
].ToString());
RadGrid RadGrid1 =
new
RadGrid();
SqlDataSource sdsMaster =
new
SqlDataSource(connStr,
"SELECT * FROM tabs WHERE active=1 AND idParentNode = '0' ORDER BY displayOrder"
);
sdsMaster.ID =
"sqlDataSourceMaster"
;
phGridContainer.Controls.Add(sdsMaster);
RadGrid1.ID =
"RadGrid1"
;
RadGrid1.DataSourceID =
"SqlDataSourceMaster"
;
RadGrid1.MasterTableView.DataKeyNames =
new
string
[] {
"id"
};
RadGrid1.Width = Unit.Percentage(98);
RadGrid1.PageSize = 3;
RadGrid1.AllowPaging =
true
;
RadGrid1.AllowSorting =
true
;
RadGrid1.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;
RadGrid1.AutoGenerateColumns =
false
;
RadGrid1.ShowStatusBar =
true
;
RadGrid1.MasterTableView.PageSize = 10;
//Add columns
GridBoundColumn boundColumn;
boundColumn =
new
GridBoundColumn();
boundColumn.DataField =
"id"
;
boundColumn.HeaderText =
"ID"
;
RadGrid1.MasterTableView.Columns.Add(boundColumn);
boundColumn =
new
GridBoundColumn();
boundColumn.DataField =
"label"
;
boundColumn.HeaderText =
"Tab"
;
RadGrid1.MasterTableView.Columns.Add(boundColumn);
if
(node > 0)
{
for
(
int
i = 1; i <= node; i++)
{
SqlDataSource sds =
new
SqlDataSource(connStr,
"SELECT * FROM Tabs WHERE active=1 AND idParentNode = @id ORDER BY displayOrder"
);
/*THIS IS THE PART IM HAVING ISSUES*/
sds.SelectParameters.Add(
"id"
, RadGrid1.MasterTableView.DataKeyValues[0].ToString());
sds.ID =
"sqlDataSource"
+ i.ToString();
phGridContainer.Controls.Add(sds);
GridTableView tableViewDetail =
new
GridTableView(RadGrid1);
tableViewDetail.DataSourceID =
"sqlDataSource"
+ i.ToString();
tableViewDetail.Width = Unit.Percentage(100);
tableViewDetail.DataKeyNames =
new
string
[] {
"id"
};
GridRelationFields relationFields =
new
GridRelationFields();
relationFields.MasterKeyField =
"id"
;
relationFields.DetailKeyField =
"idParentNode"
;
tableViewDetail.ParentTableRelation.Add(relationFields);
RadGrid1.MasterTableView.DetailTables.Add(tableViewDetail);
//Add columns
boundColumn =
new
GridBoundColumn();
boundColumn.DataField =
"id"
;
boundColumn.HeaderText =
"ID"
;
tableViewDetail.Columns.Add(boundColumn);
boundColumn =
new
GridBoundColumn();
boundColumn.DataField =
"label"
;
boundColumn.HeaderText =
"Tab"
;
tableViewDetail.Columns.Add(boundColumn);
}
}
phGridContainer.Controls.Add(RadGrid1);
}
cn.Close();
RadMultiPage1_PageViewCreated
<?
xml
version
=
"1.0"
?>
<
configuration
xmlns
=
"http://schemas.microsoft.com/.NetConfiguration/v2.0"
>
<
configSections
>
<
sectionGroup
name
=
"system.web.extensions"
type
=
"System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
>
<
sectionGroup
name
=
"scripting"
type
=
"System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
>
<
section
name
=
"scriptResourceHandler"
type
=
"System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
requirePermission
=
"false"
allowDefinition
=
"MachineToApplication"
/>
<
sectionGroup
name
=
"webServices"
type
=
"System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
>
<
section
name
=
"jsonSerialization"
type
=
"System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
requirePermission
=
"false"
allowDefinition
=
"Everywhere"
/>
<
section
name
=
"profileService"
type
=
"System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
requirePermission
=
"false"
allowDefinition
=
"MachineToApplication"
/>
<
section
name
=
"authenticationService"
type
=
"System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
requirePermission
=
"false"
allowDefinition
=
"MachineToApplication"
/>
</
sectionGroup
>
</
sectionGroup
>
</
sectionGroup
>
</
configSections
>
<
system.web
>
<
pages
>
<
controls
>
<
add
tagPrefix
=
"asp"
namespace
=
"System.Web.UI"
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
tagPrefix
=
"asp"
namespace
=
"System.Web.UI.WebControls"
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
tagPrefix
=
"telerik"
namespace
=
"Telerik.Web.UI"
assembly
=
"Telerik.Web.UI"
/>
<
add
tagPrefix
=
"TBSUC"
tagName
=
"LeftPane"
src
=
"~/Shared/LeftSidePane.ascx"
/>
<
add
tagPrefix
=
"TBFA"
tagName
=
"FileAttach"
src
=
"~/Views/Shared/FileAttachment.ascx"
/>
<
add
tagPrefix
=
"TBSUCTictet"
tagName
=
"TicketLeftPane"
src
=
"~/Shared/TicketLeftSidePane.ascx"
/>
<
add
tagPrefix
=
"TBChange"
tagName
=
"ChangeLeftPane"
src
=
"~/Shared/ChangeLeftSidePane.ascx"
/>
</
controls
>
</
pages
>
<
identity
impersonate
=
"true"
/>
<
siteMap
>
<
providers
>
<
add
name
=
"mastermap"
type
=
"System.Web.XmlSiteMapProvider"
siteMapFile
=
"Web.sitemap"
/>
<
add
name
=
"transactionmap"
type
=
"System.Web.XmlSiteMapProvider"
siteMapFile
=
"Web2.sitemap"
/>
</
providers
>
</
siteMap
>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<
compilation
debug
=
"true"
>
<
assemblies
>
<
add
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
<
add
assembly
=
"System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
assembly
=
"System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
/>
<
add
assembly
=
"CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
/>
<
add
assembly
=
"CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
/>
<
add
assembly
=
"CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
/>
<
add
assembly
=
"CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
/>
<
add
assembly
=
"CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
/>
<
add
assembly
=
"CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
/>
<
add
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
assembly
=
"System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/></
assemblies
>
</
compilation
>
<
httpHandlers
>
<
remove
verb
=
"*"
path
=
"*.asmx"
/>
<
add
verb
=
"*"
path
=
"*.asmx"
validate
=
"false"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
<
add
verb
=
"*"
path
=
"*_AppService.axd"
validate
=
"false"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
<
add
verb
=
"GET,HEAD"
path
=
"ScriptResource.axd"
type
=
"System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
validate
=
"false"
/>
<
add
verb
=
"GET"
path
=
"CrystalImageHandler.aspx"
type
=
"CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
/>
<
add
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
verb
=
"*"
validate
=
"false"
/>
</
httpHandlers
>
<
httpModules
>
<
add
name
=
"ScriptModule"
type
=
"System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
</
httpModules
>
</
system.web
>
<
system.webServer
>
<
validation
validateIntegratedModeConfiguration
=
"false"
/>
<
modules
>
<
add
name
=
"ScriptModule"
preCondition
=
"integratedMode"
type
=
"System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
</
modules
>
<
handlers
>
<
remove
name
=
"WebServiceHandlerFactory-Integrated"
/>
<
add
name
=
"ScriptHandlerFactory"
verb
=
"*"
path
=
"*.asmx"
preCondition
=
"integratedMode"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
<
add
name
=
"ScriptHandlerFactoryAppServices"
verb
=
"*"
path
=
"*_AppService.axd"
preCondition
=
"integratedMode"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
<
add
name
=
"ScriptResource"
preCondition
=
"integratedMode"
verb
=
"GET,HEAD"
path
=
"ScriptResource.axd"
type
=
"System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
<
add
name
=
"Telerik_Web_UI_WebResource_axd"
verb
=
"*"
preCondition
=
"integratedMode"
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
/>
</
handlers
>
</
system.webServer
>
<
connectionStrings
>
<
add
name
=
"locconvisual"
connectionString
=
"Data Source=192.168.1.24;Initial Catalog=PAYROLL;User ID=sa;Password=newgene100;Connection Timeout=90; "
providerName
=
"System.Data.SqlClient"
/>
<
add
name
=
"locconcoding"
connectionString
=
"Data Source=192.168.1.24;Initial Catalog=PAYROLL;USER ID=sa;password=newgene100;"
/>
</
connectionStrings
>
<!-- Web.Config Configuration File -->
<
system.web
>
<
customErrors
mode
=
"Off"
/>
</
system.web
>
<
location
allowOverride
=
"true"
inheritInChildApplications
=
"true"
>
<
appSettings
>
<
add
key
=
"CrystalImageCleaner-AutoStart"
value
=
"true"
/>
<
add
key
=
"CrystalImageCleaner-Sleep"
value
=
"60000"
/>
<
add
key
=
"CrystalImageCleaner-Age"
value
=
"120000"
/>
</
appSettings
>
</
location
>
</
configuration
>