Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 72833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:06:24+00:00 2026-05-10T20:06:24+00:00

I am overriding a Grid, adding some customer features. One of the features is

  • 0

I am overriding a Grid, adding some customer features. One of the features is a drop-down to adjust page size. I am extending the grid using a customer server control, which works great for what I’ve done so far. Now, however I am having a bit of trouble getting the dynamically added control to do a postback. The javascript to initiate the postback is not present.

Protected Overrides Sub OnPreRender(ByVal e As System.EventArgs)     Dim pageSizePanel As New Panel     ...     Dim countList As List(Of String) = GetCountList()     Dim pageSizeDropdown As New DropDownList()     pageSizeDropdown.ID = 'pageSizeDropdown'     pageSizeDropdown.DataSource = countList     pageSizeDropdown.DataBind()      AddHandler pageSizeDropdown.SelectedIndexChanged, _                AddressOf HandlePageSizeChange      pageSizePanel.Controls.Add(pageSizeDropdown)     ...     MyBase.Controls.AddAt(0, pageSizePanel)     MyBase.OnPreRender(e) End Sub 

The HTML is

<select name='tab$grid1Tab$RadGrid1$pageSizeDropdown'      id='tab_grid1Tab_RadGrid1_pageSizeDropdown'>         <option selected='selected' value='10'>10</option>         <option value='20'>20</option>         <option value='40'>40</option>         <option value='80'>80</option>         <option value='All'>All</option>      </select> 

So, does this have to do with when I’m ‘injecting’ the controls? Does it have to do with dynamic addition of the controls?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:06:25+00:00Added an answer on May 10, 2026 at 8:06 pm

    The first thing I noticed was you’d be missing this:

    pageSizeDropdown.AutoPostBack = true 

    but I’m not sure if that’s all you need for it to work

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

when overriding the loadView method in UIViewController, should one call [super loadView] in the
I'm overriding the drawRect: method in a custom UIView, and I'm doing some custom
On my Drupal site, I have made a Users page using the Views module,
I've built a view using the views module in Drupal to display a grid
When overriding an OnPaint or OnPaintBackground method in an inheritor of System.Windows.Forms.Control, one argument
When overriding an equals property for one of my classes is it possible to
I'm using the Jetpack theme in an application that some use of Datagrids. When
Is there an alternative to overriding the page render method to make my gridview
I have a similar problem to this one . I am using jQueryUI tabs
why overriding is resolved at runtime whereas overloading is resolved at compile time ?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.