Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










Telerik RadGrid Doesn't Display On First Page_Load But Does On Postback


I have a page with a drop-down. Based on the selection in the drop-down, data gets loaded and populates a RadGrid. I am using a custom user control for the EditTemplate, so I can't use radGrid.DataBind(). Instead, I have to use radGrid.MasterTableView.Rebind() in association with a NeedDataSource event handler.

My problem is that when I load the page initially, I populate the drop-down and automatically select a value (first item in the list) which triggers the databinding on the RadGrid. I can step through the code in debug mode and see that the grid is being populated with data, but when the page displays, it doesn't get rendered. When I then manually choose an item from the drop-down, which triggers the same grid databinding code, it displays properly the second time.

How do I get it to display the grid the first time the page loads?


View 2 Replies (Posted: Mar 17 10 at 15:48)

Sponsored Links:

Related Forum Messages For ASP.NET category:
Telerik RadGrid Doesn't Seem To Export Grouped Data?
I've got a DNN application using Telerik RadGrid. We're exporting some data from the Grid but when we drill down on the grid control and export the data we only see the initial top level data, never the updated Grid. Here's my table tag and supporting code. I'm not an expert in ASPX/C#so please forgive my newbie-ness.

<mastertableview autogeneratecolumns="False" datakeynames="AccountId" datasourceid="SqlDataSource1"
groupsdefaultexpanded="False">
<DetailTables>

[code]...

Posted: Jan 5 at 12:43

View 1 Replies!   View Related
Alternative To Telerik RadGrid?
Is anyone able to offer any decent alternatives to the telerik ASP.Net controls.

I'm in the market for a decent grid control with all singing all dancing extensions... bt I'm finding the telerik grid really hard work to deal with.

The telerik controls do look good, but after a day of hard work with them I'm just looking to see if there are any other 3rd party offerings?

Posted: Jan 14 at 15:46

View 3 Replies!   View Related
Telerik RadGrid - How To Add A New Row From Code Behind
What's the simplest way to add a new row to a Telerik RadGrid in ASP.NET from code behind?

Posted: Feb 5 10 at 17:50

View 2 Replies!   View Related
C# - Any Pointers To How To Use Telerik RADGrid In C Sharp
give me any pointers for free tutorial on RADGRID or give me a simple example on how to create a RADGRID and bind it to data source.

Posted: Mar 24 at 13:26

View 2 Replies!   View Related
Finding Values In A Telerik Radgrid?
I've tried to find the answer, but am not having any luck and am wasting to much time trying to figure it out. Using RadGrid from Telerik, latest version of their Ajax Controls, I've added a Select to each row, and can't figure out how to get the value of the selected row. Prefer to get the value of the ID column (from ID field in my database) or other specific columns. C# or VB example will work, VB preferred.

Posted: Nov 26 10 at 21:54

View 2 Replies!   View Related
How To Refresh Telerik:radgrid Contorl Using Javascript
How to refresh Telerik:radgrid contorl using Javascript ?

Posted: Oct 5 10 at 12:00

View 2 Replies!   View Related
How To Remove Filter Button On Telerik RadGrid
I'm really new to asp.net and Telerik...

I have a RadGrid with filtering. I set AutoPostBackOnFilter="true" and CurrentFilterFunction="Contains" on my columns. Ok it works fine, user don't have to open drop-down list to select type of filter. But now, I want to hide filter buttons.

Posted: Jan 14 at 7:38

View 1 Replies!   View Related
C# - Add Textbox To Telerik Radgrid Confirmation Dialog?
I need to collect additional information from the user when they initiate a delete on a radgrid. Right now I am presenting the user with a confirmation dialog box that lets them click "OK" to continue but I need to add an additional textbox to collect a reason.

Posted: Dec 3 10 at 19:06

View 1 Replies!   View Related
C# - Telerik RadGrid - How To Set The MaxLength For The Insert Textbox
I have a radGrid on the page with the "Add New Record" button. When I click the "Add New Record" button, a textbox appears above each column that allows me to enter values. I want to limit the number of characters that can be entered in the textbox. How do I set the MaxLength of those textboxes

Posted: Jul 23 10 at 12:15

View 1 Replies!   View Related
Set Telerik RadGrid To Edit Mode By Default?
I have a checkbox column in a RadGrid that I want the user to be able to check/uncheck it and set the attached property. When the grid renders however, the checkboxes are disabled, because the grid is not in "edit mode". All the examples I'm finding want me to go through a lengthy process of selecting the record, putting it into edit mode, changing the value, saving the value.... yada yada yada...I just want the whole grid to be in edit mode (or the column, or whatever works) from the get-go, so the end user can make a one-click change to the data value. I know there must be a way to do this, I just can't seem to find it.

Posted: Dec 7 10 at 17:08

View 1 Replies!   View Related
C# - Extra Column Appearing When Paging In Telerik RadGrid?
I'm getting a blank column when switching to another page using the default pager in the telerik radgrid. As data for each row, it shows the type of data i am using for the rows (SearchRecord)

Anyone have any clues as to why this may be happening? It doesn't show up on initial population of the grid, but only when I do paging. My columns are built dynamically but i confirmed that when my columns are built, they are the correct number.

Posted: Oct 5 10 at 13:19

View 1 Replies!   View Related
Telerik Radgrid GridDataItem.DataItem Is Empty When Updating?
When handling the OnUpdateCommand event on a RadGrid the DataItem is null.

I thought that this would also represent the data item being represented by the row.

The Radgrid is populated from an IList and in the handler the code looks like this...

protected void rgAllocatedClients_UpdateCommand(object sender, GridCommandEventArgs e)
{
if (e.Item is GridDataItem)
{
var gridDataItem = e.Item as GridDataItem;
var client= gridDataItem .DataItem as Client;

This works find when handling the ItemDataBound event but not when handling the UpdateCommand event. I really need this as in my Client class is the Id of the row I want to handle the update for.

Posted: May 10 10 at 14:47

View 2 Replies!   View Related
Find Html Anchor Control In Telerik:radgrid ?
how to find html anchor control in telerik:radgrid ?

Posted: Sep 22 10 at 12:02

View 1 Replies!   View Related
Best Practice To Manage Telerik RadGrid Grid And Column Widths?
I wanted to ask what is the best practice to manage width of the radGrid.

For my application most users are running 1280 x 1024 so I would be happy to set my overall grid width to 1100. However, depending on the form in use, I sometimes have horizantal scroll bars. To solve this, I have been playing with the width of the grid, and also I have played with setting the itemstyle-width for one or two columns. Sometimes I accidentally get it right, and sometimes it is not quite right.

What is the best way to manage this? Do I set the grid, and then all columns, or just the grid, or just the columns? I guess there is a best practice, so just wondering how you handle it,

Posted: May 25 10 at 10:12

View 2 Replies!   View Related
Using Telerik RadGrid - How To Set The Date Format For Autogenerated Column In Edit Mode
Using VS2008, and Telerik radGrid version 2010.1.519.35

I have a about 50 DNN modules using telerik radgrid and I need to display my dates in dd/mm/yy format. It is possible to do this easily in view mode, but when I switch to edit mode, it is more of a struggle. I can write a snippit of code to reformat the displayed date values to dd/mm/yy, but for inserts the user must enter mm/dd/yy.

IOW, I need to change the culture of the form to en-GB culture.

In my DotnetNuke App, I have made a change to the web.config, but it still assumes en-US format.

I am not sure whether I need to set this at web.config level, page level or at the column within the control.

Posted: May 23 10 at 11:54

View 3 Replies!   View Related
How To Change The Data In Telerik's RadGrid Based On Calendar's Selected Dates
I was creating another usercontrol with Telerik's RadGrid and Calendar.

[code].....

The problems are, (1) when I click the submit button. the data in the RadGrid is not changed. (2) how can we check if there is nothing selected in the Calendar controls, because there is a date (01/01/0001) set even if we do not select anything from that calendar, thus Calendar1.SelectedDate != null is not enough.

Posted: Feb 24 10 at 7:14

View 1 Replies!   View Related
C# - RadTreeview Expand/collapse Doesn't Work When Embedded Inside RadGrid
I have a Radtreeview that sits inside a RadGrid. For some reason the expand/collapse buttons of the Treeview are not working. I can expand the Treeview initially, however the NodeExpand event never fires.(a postback does occur to the server, and I have several buttons on the treeview node that work.) Once the node has been expanded, the collapse button doesn't work, and clicking on it does nothing.(no postback to server). I have the ExpandMode set to ServerSide. However, if I change the Expandmode to Clientside it works properly.

I really need the control to work with ExpandMode set to serverside, to reduce the loading for large Tree's.

Im not sure if this matters. But I am adding the Events to the RadTreeview when the event RadGrid_ItemDataBound is fired.I am noticing one strange behavior, that I cannot explain either, if I do not attach an event to NodeExpand It fails to open or close. Also the NodeDataBound event fires successfully and the data is loading fine into the tree.

RadTreeView tree = (RadTreeView)e.Item.FindControl("RadTreeView1");
tree.NodeDataBound += new RadTreeViewEventHandler(RadTreeView1_NodeDataBound);
tree.NodeExpand += new RadTreeViewEventHandler(RadTreeView1_NodeExpand);
tree.NodeCollapse += new RadTreeViewEventHandler(tree_NodeCollapse);

Here is the decleration of the Treeview in the ascx file

<DetailTables>
<telerik:GridTableView Name="Detail Table" ShowHeader="false">
<Columns>
<telerik:GridTemplateColumn UniqueName="FooTreeview">
<ItemTemplate>
<telerik:RadTreeView ID="RadTreeView1" runat="server" DataValueField="CommunicationID"
LoadingStatusPosition="BelowNodeText" style="white-space: normal;">
<NodeTemplate>
<uc1:FooControl ID="r1" runat="server" FooBindings='<%#DataBinder.Eval(Container,"DataItem") %>' />
</NodeTemplate>
</telerik:RadTreeView>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</telerik:GridTableView>
</DetailTables>

Posted: Feb 10 10 at 15:43

View 1 Replies!   View Related
How To Display Data Using Radgrid Getting Error
When I am trying to display data using radgrid I am getting error like "Index was out of range. Must be non-negative and less than the size of the collection. Parameter: Index".

Here is my code

[Code]....

Posted: Jun 11 10 at 20:36

View 1 Replies!   View Related
Page_Load Is Fired On Postback In Mvp App?
asp.net 4.0 vs2010

I'm developing an asp.net model -view-presenter (MVP), and to my surprise i see that when I click on the linkbutton in the window the Page_Load event is fired again. Is that normal? I'm used to webforms where we could just do a if (!Page.IsPostBack) if statement in the Page_Load. I did that but then no action happend when I clicked the linkbuttons in the window.

Posted: Jul 05, 2010 07:07 PM

View 2 Replies!   View Related
SQL Server :: Page_Load Doesn't Write In The Database
i want to write a ASP.NET page, in this page the page should always write in a MSSQL Database when someone does a HTTP Request.

So i establish in the Application_Start Method the connection the database.

[Code]....

In the Application_BeginRequest Methode, i analyse the UserHostAddress of the Request:

[Code]....

With the debug mode, i know, that the app is executed. But sometimes the pages writes at every refresh the line in the database, but in most cases there is no entry in the database.

Posted: Aug 17, 2010 07:51 AM

View 1 Replies!   View Related
Web Forms :: Not Refreshing In RadGrid - After Click Refresh Button The Full Rows Are Display
I'm using telerik radgrid in my web form.When i add new row in this grid, the new irow only display in my grid. After click refresh button the full rows are display.

Posted: Mar 11, 2010 05:53 AM

View 2 Replies!   View Related
C# - ViewState Is NULL In Page_Load But Not Postback?
I've got a weird problem with a NullReferenceException on a high traffic website my company hosts. The exceptions are logged with full stack-traces but I am unable to reproduce it.The exception occurs a couple of times a day, for different users, and it's a NullReferenceException thrown in the code block below:

protected void Page_Load(object sender, EventArgs e)
{
...

if (!Page.IsPostBack)
{
...
this.ViewState[StaticClass.StaticStringProperty] = StaticClass.StaticIntProperty; // this is the line the exception occurs on
...
}
}

The only place I can figure that a NullReferenceException would be thrown is if ViewState is NULL, but I've never known that and can't find any reason why this would be the case in a Page_Load that isn't a postback.StaticStringProperty and StaticIntProperty are both initialised, static properties of StaticClass.

StaticStringProperty is defined as:

public const string StaticStringProperty = "IdFromClient";

Does anyone know how this could happen, or any other reason why a NullReferenceException would be thrown on the above line?

EDIT.As requested, the full stack-trace for the error is as follows. Line 54 is the line I've highlighted above.

at MyCompany.MyApplication.Appliance.Page_Load(Object sender, EventArgs e) in C:Documents and SettingsshellamaMy DocumentsMyApplicationAppliance.aspx.cs:line 54
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)[code]....

Posted: Jun 4 10 at 14:24

View 1 Replies!   View Related
Web Forms :: When Click Any Button Or Linkbutton, It Doesn't Fire Any Event Or Doesn't Postback
In my project when i click any button or linkbutton, it doesnt fire any  event or doesnt postback.

It was working fine but now it hv problem like this.

I think i have changed some settings by mistake.

Posted: Mar 22, 2010 04:39 AM

View 5 Replies!   View Related
Postback - Multiple Page_Load Events With URL Rewriting?
Im using intelligencia urlrewriter as my url rewrite module. I have one very strange problem which only occurs when an url is rewritten but to make it more fun, not on all rewritten pages. Edit: Forgot to tell you what's the problem boing boing. the problem is that my Page_Load event gets fired 2 times.his is how my form rewrite adapter looks like:using System;

using System.Web.UI;
using System.Web;
using System.Web.UI.WebControls;

[code]...

Posted: Feb 18 10 at 16:17

View 3 Replies!   View Related
Image Is Not Set To Imagecontrol And Jquery Plugin Doesn´t Work On Second Page_Load
When Page_Load is running the first time, I set Image 1.jpg to the HTML control with sucess!When Page_Load is running the second time, the Image 2.jpg is Not set to the same HTML control?This even that it should though I use a MessageBox to se that the C# code is running that should set 2.jpg to the control

Posted: Feb 13, 2011 04:47 PM

View 2 Replies!   View Related
Count The Records To Thedatalist In A Page_load Script On Postback?
I have an SQLDataSource that is updated by a click event.I want to count the records that are returned to the datalist in a page_load script on postback. I am new to ASP.net.I can not find a .recordcount or.countproperty that gives me the answer>

Posted: Jun 07, 2005 05:25 PM

View 7 Replies!   View Related
C# - Display Time Data With Telerik Chart?
We need to visualize the number of forms submitted over a 2 week period where it is broken down by day/hour.

I have the query returning data such as:

My question is, how do I tell MS chart to display this data? When I bind it I get the following:

I'd like it to expand out and show the hours between the dates.

Posted: Jan 2 at 20:11

View 1 Replies!   View Related
C# - Telerik RadCalendar - Specialdays: Display Date Of The Special Day?
My purpose is to display selected days with different BackColor values, according to the selection of the client. Basically only changing the ItemStyle for the selected days are acceptable for me, but I couldn't find how to do it?So I tried a differen approach as follows: I created SpecialDays in my Calendar

<telerik:RadCalendar AutoPostBack="true" ID="calendar1" runat="server" Width="400px" Height="300px" FirstDayOfWeek="Monday">
<SpecialDays>
<telerik:RadCalendarDay TemplateID="temp1"></telerik:RadCalendarDay>
</SpecialDays>
<SpecialDays>
<telerik:RadCalendarDay TemplateID="temp2"></telerik:RadCalendarDay>
</SpecialDays>
<SpecialDays>
<telerik:RadCalendarDay TemplateID="temp3"></telerik:RadCalendarDay>
</SpecialDays>
<CalendarDayTemplates>
<telerik:DayTemplate ID="temp1" runat="server">
<asp:Label ID="lblTemp1" runat="server"></asp:Label>
</Content>
</telerik:DayTemplate>.......................................

Posted: Jul 4 10 at 7:45

View 1 Replies!   View Related
During Asynchronous Postback (Ajax) Will Page_PreInt() ,Page_Init(),Page_Load() Events Fire Again?
During Asynchronous postback (Ajax) will Page_PreInt() ,Page_Init(),Page_Load() events fire again?

Posted: Mar 30 10 at 14:43

View 1 Replies!   View Related
AJAX :: Display UpdateProgress AFTER Page_load?
I have a situation that I just can't seem to understand. I have a page with an UpdatePanel and associated UpdateProgress control. The content of the UpdatePanel takes a little bit to load but I want my page to display quickly so basically I do not populate the UpdatePanel contents from the code behing Page_Load member, instead I put a __doPostBack at the bottom of my page markup. This all works fine in terms of displaying the page quickly and then the UpdatePanel contents display after a brief pause, however the UpdateProgress never displays even though the DisplayAfter timer setting has elapsed. I always seem to get this behaviour on the first time the page displays (I have a button that will trigger the UpdatePanel to postback and in this case the UpdateProgress displays properly).

For now the only way I seem to be able to get around it is by putting a: document.getElementById("<%= UpdateProgressControl.ClientID %>").style.display = "block";

before my __doPostBack at the bottom of the page markup. Strangely, once the UpdatePanel has updated the UpdateProgress does disappear???

Does anyone know why the UpdateProgress does not display in the first place?

Posted: Dec 30, 2009 10:35 PM

View 4 Replies!   View Related
Telerik ReportViewer - When Using Within A User Control The Control Bar Doesn't Appear Correctly
When using the Telerik ReportViewer control from inside a user control, the control bar (bar with navigation & exports buttons etc) doesn't appear to display correctly. Only the navigation buttons appear in the control bar itself. The other buttons (Export, Refresh, Print, & Close Parameters) all appear below the control bar, each on a new line.

If I do the exact same in a normal page (rather than user contorl), it appears fine.

P.S. I'm using IE 7 and the Telerik 2009 Q3 ASP.NET AJAX suite.

Posted: Feb 16 10 at 20:58

View 1 Replies!   View Related
Regional Language Tooltip Doesn't Display In All The Version Of IE But Display Correctly In Mozzila
We are developing application using Asp.net (VS2008) & c#. We need to show tooltip in Gujarati language (Indian regional language). When we run application it shows correctly in Mozzila firefox but display as a junk characters in all the version of IE.

Posted: Jan 20, 2011 06:45 AM

View 4 Replies!   View Related
C# - ImageButton In UpdatePanel Doesn't PostBack
I created a form in a popup div, that contain an UpdatePanel with ImageButtons in it.Initially, I used LinkButtons to test but I wanted ImageButtons. The thing is, it works well with LinkButtons and not with ImageButtons (absolutely nothing happens).

<a href="javascript:WebForm_DoPostBackWithOptions(new
WebForm_PostBackOptions("ctl00$cphC$ctrlAdr$AdrMapo$lbAdresseSaisie",
"", true, "",
"", false, true))"
id="ctl00_cphC_ctrlAdr_AdrMapo_lbAdresseSaisie">test</a>
[code]...

Posted: Aug 3 10 at 14:20

View 1 Replies!   View Related
Can Create An ImageButton That Doesn't Postback
I'm trying to use the ImageButton control for client-side script execution only. I can specify the client-side script to execute using the OnClientClick property, but how do I stop it from trying to post every time the user clicks it? There is no reason to post when this button is clicked. I've set CausesValidation to False, but this doesn't stop it from posting.

Posted: Apr 24 10 at 4:51

View 3 Replies!   View Related
Web Forms :: Second Postback Doesn't Work
I've got a simple webform, with an asp:TextBox and an asp:Button with an eventhandler. When a user clicks the button, the eventhandler does something with the text in the TextBox...... and then Redirects (Response.Redirect()) the user to a .ashx/HttpHandler page.

The ashx renders a Word document, so the user is presented with a Save/Open/Cancel dialog.The user chooses an option in the dialog so the dialog closes and the original form is presented again.

... but now my form is dead. It's possible to click the Button (or any Button/control in the Form), but nothing happens. No more postbacks until I refresh the page. I think it's something in the PostBack Javascript.

Posted: Dec 08, 2009 02:21 PM

View 4 Replies!   View Related
Dropdownlist Doesn't Postback After Page_ClientValidate()?
I have just found the solution. The following function works (remove the else part):

function confirmSubmit() {
if (Page_ClientValidate("Group1")) {
return window.confirm("Are you sure to submit the form?");
}
}

But I am wondering why it doesn't work when I add the else part.

Question:

I want to have a confirm dialog after user fills in all the data in the form. I set onclientclick="return confirmSubmit()" in the submit button.

function confirmSubmit() {
if (Page_ClientValidate("Group1")) {
return window.confirm("Are you sure to submit the form?");
} else {
return false;
}
}

If Page_ClientValidate("Group1") returns false, the dropdownlist doesn't cause postback after I first select the item, and the postback only occurs when I select the dropdownlist second time.

Posted: Jan 18 10 at 4:37

View 1 Replies!   View Related
Web Forms :: DropDownList Doesn't Postback?
I've created two datasources, one that gets a list of categories and it's id's and the other one get subcategories and it's id's. The categories are presented in a DropDownList and the subcategories in a ListBox. When choosing a category from the DropDownList the ListBox presents the subcategories of the chosen category. The subcategory datasource is set to get it's value for what category to get from the DropDownList's selected value.

My problem is that when I change the category in the DropDownList the subcategories doesn't update on a postback. Instead I have to press a button on the page that I know performs a postback to get the subcategories to update. What am I doing wrong here? I'm using this method on another page as well and when comparing them I can't find anything different. Any ideas?

Posted: Sep 22, 2010 09:38 AM

View 5 Replies!   View Related
Web Forms :: ContentPlaceHolder On Postback - Doesn't Add Content
[Code]....

Then, in the codebehind I have this code:

[Code]....

This works fine when I display the page. However, when I click the language link which causes a postback the content block does not get added to the placeholder, so I get a null reference because those two panels don't exist. I've been pulling my hair out over this for a few hours now and I can't figure it out. In case it helps, here is my InitializeCutlture method:

[Code]....

Posted: Dec 29, 2010 06:42 PM

View 13 Replies!   View Related
Asp.net - LinkButton Doesn't Raise Postback On IIS7 And IE7?
Why with LinkButton doesn't work postback with IE7 and work with FW3.+ when site work on IIS7?

Posted: May 11 10 at 9:02

View 3 Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved