Click here to Skip to main content
15,904,934 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: transparent background image Pin
Abhijit Jana28-Sep-09 18:59
professionalAbhijit Jana28-Sep-09 18:59 
Questiononline exam timer scrpit Pin
srujanv28-Sep-09 17:51
srujanv28-Sep-09 17:51 
AnswerRe: online exam timer scrpit Pin
Christian Graus28-Sep-09 19:46
protectorChristian Graus28-Sep-09 19:46 
QuestionDealing with browser back button after logging out Pin
dptalt28-Sep-09 8:47
dptalt28-Sep-09 8:47 
AnswerRe: Dealing with browser back button after logging out Pin
Parwej Ahamad28-Sep-09 9:19
professionalParwej Ahamad28-Sep-09 9:19 
AnswerRe: Dealing with browser back button after logging out Pin
Abhishek Sur28-Sep-09 9:57
professionalAbhishek Sur28-Sep-09 9:57 
QuestionRe: Dealing with browser back button after logging out Pin
dptalt29-Sep-09 1:48
dptalt29-Sep-09 1:48 
QuestionEditor Controls getting lost when rebinding the grid (Infragistics Ultrawebgrid) Pin
sskala28-Sep-09 6:15
sskala28-Sep-09 6:15 
Hi,

I am using ultrawebgrid in my pages. I am specifying the EditorControl by setting EditorControlID in the InitializeLayout event of the grid. This works fine if I don't have paging or if I am not rebinding the grid. When I enable the paging, the EditorControl works fine in the first page. But when we move to the next page, the EditorControl get's lost. The same is the case when I rebind the grid (as I did in paging). I am giving you the sample code below. Can anyone please help me in resolving this?

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
InitializePage();
}
}

private void InitializePage()
{
PopulateReportingPeriodTasksGrid();
Infragistics.WebUI.UltraWebGrid.UltraWebGrid comboGrid = (Infragistics.WebUI.UltraWebGrid.UltraWebGrid)StatusCombo.Controls[0];
comboGrid.DisplayLayout.AllowAddNewDefault = Infragistics.WebUI.UltraWebGrid.AllowAddNew.Yes;
comboGrid.DisplayLayout.AllowUpdateDefault = Infragistics.WebUI.UltraWebGrid.AllowUpdate.Yes;
}

private void PopulateReportingPeriodTasksGrid()
{
DataSet ds = new DataSet();
ds.Clear();
ds = DataService.ListReportingPeriodTask(UserIdentity, (int)TaskStatus.Status.Open);
if (ds != null)
{
ReportingPeriodTasksGrid.DataSource = ds.Tables[0].DefaultView;
ReportingPeriodTasksGrid.DataBind();
}
}

protected void ReportingPeriodTasksGrid_InitializeLayout(object sender, Infragistics.WebUI.UltraWebGrid.LayoutEventArgs e)
{
e.Layout.Bands[0].Columns.FromKey("TaskStatus").Header.Caption = "Status";
e.Layout.Bands[0].Columns.FromKey("TaskStatus").Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Custom;
e.Layout.Bands[0].Columns.FromKey("TaskStatus").EditorControlID = "StatusCombo";
e.Layout.Bands[0].Columns.FromKey("TaskStatus").AllowUpdate = Infragistics.WebUI.UltraWebGrid.AllowUpdate.Yes;
e.Layout.Pager.AllowPaging = true;
e.Layout.Pager.PageSize = 25;
}

protected void ReportingPeriodTasksGrid_PageIndexChanged(object sender, Infragistics.WebUI.UltraWebGrid.PageEventArgs e)
{
this.ReportingPeriodTasksGrid.DisplayLayout.Pager.CurrentPageIndex = e.NewPageIndex;
PopulateReportingPeriodTasksGrid();
}

This is one scenario as I explained above...in case page index changed, I am calling the PopulateReportingPeriodTasksGrid() function again and that's when the EditorControl stops working. I've another page, where I am not using "paging", but doing the same as I am doing in the PopulateReportingPeriodTasksGrid procedure. Even in that case, the EditorControl will not work.

Thanks,
Kala
AnswerRe: Editor Controls getting lost when rebinding the grid (Infragistics Ultrawebgrid) Pin
Abhishek Sur28-Sep-09 7:00
professionalAbhishek Sur28-Sep-09 7:00 
GeneralRe: Editor Controls getting lost when rebinding the grid (Infragistics Ultrawebgrid) Pin
sskala28-Sep-09 7:06
sskala28-Sep-09 7:06 
AnswerRe: Editor Controls getting lost when rebinding the grid (Infragistics Ultrawebgrid) Pin
Abhishek Sur28-Sep-09 7:12
professionalAbhishek Sur28-Sep-09 7:12 
GeneralRe: Editor Controls getting lost when rebinding the grid (Infragistics Ultrawebgrid) Pin
sskala28-Sep-09 7:53
sskala28-Sep-09 7:53 
GeneralRe: Editor Controls getting lost when rebinding the grid (Infragistics Ultrawebgrid) Pin
sskala29-Sep-09 3:44
sskala29-Sep-09 3:44 
QuestionError - can not create enum dynamically Pin
$unil Dhiman28-Sep-09 5:59
$unil Dhiman28-Sep-09 5:59 
AnswerRe: Error - can not create enum dynamically Pin
N a v a n e e t h28-Sep-09 6:34
N a v a n e e t h28-Sep-09 6:34 
GeneralRe: Error - can not create enum dynamically Pin
Abhishek Sur28-Sep-09 6:43
professionalAbhishek Sur28-Sep-09 6:43 
GeneralRe: Error - can not create enum dynamically Pin
$unil Dhiman28-Sep-09 19:10
$unil Dhiman28-Sep-09 19:10 
GeneralRe: Error - can not create enum dynamically Pin
N a v a n e e t h28-Sep-09 20:21
N a v a n e e t h28-Sep-09 20:21 
GeneralRe: Error - can not create enum dynamically Pin
$unil Dhiman28-Sep-09 20:44
$unil Dhiman28-Sep-09 20:44 
AnswerRe: Error - can not create enum dynamically Pin
Michael Eber28-Sep-09 6:43
Michael Eber28-Sep-09 6:43 
GeneralRe: Error - can not create enum dynamically Pin
$unil Dhiman28-Sep-09 18:44
$unil Dhiman28-Sep-09 18:44 
AnswerPlease Don't Cross Post Pin
Abhijit Jana28-Sep-09 7:52
professionalAbhijit Jana28-Sep-09 7:52 
QuestionExtracting innerHTML from a div elements that contains dynamic controls Pin
compninja2528-Sep-09 5:32
compninja2528-Sep-09 5:32 
AnswerRe: Extracting innerHTML from a div elements that contains dynamic controls Pin
N a v a n e e t h28-Sep-09 5:48
N a v a n e e t h28-Sep-09 5:48 
GeneralRe: Extracting innerHTML from a div elements that contains dynamic controls [modified] Pin
compninja2528-Sep-09 6:16
compninja2528-Sep-09 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.