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

Is there an alternative to overriding the page render method to make my gridview
I have created a custom style for my WPF datagrid by overriding its control
The Overriding Built-in Functions section of the perlsub documentation provides There is a second
When overriding the baseadapter on an android listview, you have to implement this method
particularly when overriding Asp.net MVC ValidationAttribute, is it possible to know class name which
let's say i have an order and order details. the view will contains the
The current version of the Microsoft Live Labs PivotViewer control for SilverLight 4 has
I have a class which derived from the TableLayoutPanel. This class makeup the tabel
Any ideas regarding why the WPF XAML code I have is not working. I'm
I'm trying to make sure that I don't leave any loose ends open in

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.