C# - RadContextMenu Showing Incorrect Items When Used In RadMultiPage?

Feb 15, 2010

I have a RadContextMenu that is bound to a Radgrid. The context menu just allows the user to set the number of rows per page to show. When I use the Context menu on a RadMultipage that has several radgrids, the items being bound to the ContextMenu are incorrect.

For example the first RadContextMenu will have the following items added to it.
(5,10,25,100,250,500)

Several other RadContextMenus on the Multipage will have this set of items added to it.
(5,10,25,100)

When the page loads, every single ContextMenu on the different pages inside the Multipage has the first set of items added to it. The m_MaximumPaerRowsToDisplay property is being set correctly before OnInit is fired(I can step through and see that the other context menus are having the correct item set added).

The Items are being added to the ContextMenu during the OnInit event.

RadContextMenu1 = new RadContextMenu();
RadMenuItem rmi = new RadMenuItem("Rows To Display".Localize());
//there should always be at least a 5 rows added.
rmi.Items.Add(new RadMenuItem("5"));

[Code]....

View 1 Replies


Similar Messages:

AJAX :: Modal Popup Showing Incorrect Data

Nov 11, 2010

I have a buttonfield which is being handled by the gv_RowCommand function to Show() the modal popup extender which will then do the actual submission of data. When I actually try it out, the ID which is being displayed on the popup is not of the index of the row that triggered the Command, but the previous one. If no row is actually Selected in the beginning, no value pops up. Here's the source... I need help resolving this so that the ID of the row actually selected is displayed in the label. That way I can use that value for the commands that will then be executed by the modal panel's buttons. MPE Panel

[Code]....

GridView
<asp:GridView ID="gvFillReceived" runat="server" AllowPaging="true" Width="95%"

View 4 Replies

Web Forms :: Temporary Internet Files Showing An Incorrect Cookie Expiration Date?

Dec 28, 2010

i'm creating a cookie with an expiration of 12 hours from now. when i run my solution locally and go into C:Users..AppDataLocalMicrosoftWindowsTemporary Internet Files and look at the expires property of my cookie the date and time are correct. However, when I deploy this to our web server and go to the website i notice the cookie that got created for it has an expiration date of 2 years from now, minus a day. So the cookie should be set to expire on 12/29/2010 8:00 PM for example instead shows 12/28/2012 8:00 PM. Here's the code i'm using to create the cookie, pretty basic. And yes, the date on the web server is correct. I really want the cookie to expire in 12 hours, not 2 years.

[Code]....

View 6 Replies

How To Delay The Showing Of Sub Menu Items

Aug 3, 2010

I am using Asp.net menu control, how can I delay the showing of sub menu items ?

The menu is handled by Menu_HoverDynamic javascript function. I am trying to settimeout this function. But the problem is the sub menu are shown and the root menu is getting hidden ?

[code]....

View 9 Replies

C# - Showing Items In GridView Vertically?

Mar 24, 2011

I have a GV in my webpage which is showing 10 items. Which means my page is horizontally BIG.How can align my GV to fit into my page OR How can I make my GV Vertical in size.

View 1 Replies

Web Forms :: Dropdown Lists - Showing Items Based On Value?

Oct 12, 2010

i have over 100 items all loaded in a dropdown list. They all are assigned a value between 1-10 which represent 10 categories. When certain buttons are clicked, i want the dropdown list to display only items with a value "1" or "2", etc.

View 3 Replies

Web Forms :: Menu Control Not Showing Submenu Items?

Aug 22, 2010

I have for example a ASP Menu control having a static (File) and dynamic (Open, New) menu such as :

[code]....

I am able to see this menu under VS 2008 under my development PC. But when I deploy the app to a IIS server, and run the app, the whole app appeared the same. Only the Menu has "File" for selection but the submenu items (Open and New) did not appear when the mouse cursor was moved over "File". Only the Outline of the dropdown box of the submenu appeared.

View 2 Replies

Web Forms :: List Box Is Showing More Selected Items Instead Of One Item In The Details Page?

Jun 30, 2010

I have a below control in my asp.net page (3.5 framework).

<asp:ListBox ID="OptionSelector" runat="server" SelectionMode="Multiple"
SkinID="CPList" Rows="6"></asp:ListBox>

There are 25 items in the list. I have selected one item at the time of project creation. But If I edit the project then the list box is showing more selected items instead of one item in the details page.

View 1 Replies

SQL Server :: EXEC 17P_Comose Will Give Incorrect Syntax Error - Incorrect Syntax Near '17'

Sep 15, 2010

I am working with a sql server database with about 50 stored procedures. The database and stored procedureswere not created by me. The stored procedures all begin with a number in their name.

Example: 17P_Comsetter

The problem I am having is that if I try and execute the stored procedure at the command line in Query Analyzer,the query analyzer appears not to like that the stored procedure begins with a number. For example:

If I try an run the stored procedure as follows:

EXEC 17P_Comsetter

Then I get the following error message:

Msg 102, ..... Incorrect Syntax near '17'

I am using SQL server 2005. Does anyone know why I am getting this error message?

View 1 Replies

ADO.NET :: Showing The Sql Select Statement Instead Of Showing The Result

Nov 8, 2010

I have the following simple linq to sql statement:

[Code]....

Instead of showing me the UserName from the aspnet_Users table, it showed me the SQL select statement.

View 2 Replies

Data Controls :: Loop Through CheckBoxList Items And Save Selected Items In Array?

May 7, 2015

below is the code I have but I want to change the ddl.Deal(dropdownlist) to cbl.Deal(checkboxlist).. How can I loop throught each items if checked. and if all items are checked. to filter my data and show in gridview..

protected void btn_Click(object sender, EventArgs e)
{
myAPI.myWeb myAPI = new myAPI.myWeb();
myAPI.SearchParameters sSearchParameters = new myAPI.SearchParameters();

[Code].....

View 1 Replies

Ordering Sub-items Within Ordered Items In A Linq To Entities Query?

Aug 25, 2010

I have a few tables, Listings, ListingImages and a few others related to Listings. ListingImages is related to Listings so that you can have many ListingImages per Listing.

When I query this table I do;

[code].....

Now this is fine. However, I now want to sort the ListingImages independently within each Listing (by an ImageOrder column I have in that table).

How can I do this and pass all my Includes(...). Would it be bad form to sort the ListingImages within the View as this solution seems to work?

View 1 Replies

Visual Studio :: Choose Items(Toolbox) - How To Get Missing Items

Sep 16, 2010

I am using Microsoft Visual Studio 2008 Professional Edition on Windows Vista Home Basic SP2 and when I am editing Visual Basic and want to add an item to the toolbox I click on Choose Items... and from that point I can't find important controls (items) like Windows Media Player or Adobe PDF Viewer. I have tried to reinstall and reset the toolbox and program. I can't find this problem anywhere in the web

View 10 Replies

Web Forms :: How To Append Items With Existing Items In Checkboxlist

Mar 5, 2010

I have 4 Checkboxlists, if i check 1st item of checkboxlist1 -- > populate items in checkboxlist2 if i check 2nd item in checkboxlist1 -- >populate items in checkboxlist2 with last selection as well as 1st checkboxlist items. So I need to Append items in Checkboxlist with existing items and also with previously selected Checkox. Is it any way except DataTable ?

View 2 Replies

VS 2008 - ListView - Displays ONLY 10 Items Although There Are 30 Items In The Datatable

May 22, 2010

[Code]......

It always displays ONLY 10 items although there are 30 items in the datatable. If i use GridView ALL the 30 items are displayed just fine.

View 4 Replies

ListView DataBound Says Items More 0 When Actually Items Less Than 0

Jul 23, 2010

So I have a ListView (assignmentsListView) in an UpdatePanel, being filtered by a DropDownList in the same UpdatePanel. The DropDownList has a list of persons in it and uses autopostback, and the ListView shows the tasks those persons are assigned to.

I am trying to use code similar to this:

[code]....

When I first load the page, the DropDownList shows the first person in the list, and the ListView correctly shows that persons tasks.

If I then select a person who I know has zero tasks, I get an error at the RegisterPostBackControl() method, saying the passed-in control cannot be null.

When debugging, at the RegisterPostBackControl method, it shows that the ListView Items collection has >0 elements in it (the number of elements matches the person selected before the current person).

View 1 Replies

ADO.NET :: Incorrect Syntax Near ')'.

Dec 2, 2010

Server Error in '/' Application.

Incorrect syntax near ')'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near ')'.

Source Error:

[Code]....

Line 25:SqlDataAdapter sda = new SqlDataAdapter(cmd);Line 26:DataSet ds = new DataSet();Line 27:sda.Fill(ds);Line 28:Label1.Text = ds.Tables.Count.ToString();Line 29:

View 3 Replies

Incorrect Page Loading In MVC

Feb 14, 2011

We are currently hosting a asp.net mvc 2 website in IIS 6. In this application we override the 'Create Controler' method and configure a custom view engine. This engine specifies the location of the views depending on the url format. for example; if a user
lands on www.asite.com/test/1.0/index.aspx the view engine tells mvc to look for index.aspx in the 'sitedirectory/test/1.0/views/pages/' directory;

string versionDirectory = String.Format("~/{0}/{1}", offerCode, version.ToString("#0.0000")); ViewLocationFormats = new[] { versionDirectory + "/Views/Pages/{0}.aspx", [code]...

View 4 Replies

ADO.NET :: Getting Error / Incorrect Syntax Near ''

Nov 14, 2010

I keep getting the error: 'Incorrect Syntex near 'treatmentMedication'. Syntex error:

[Code]....

This is my class code:

[Code]....

View 2 Replies

Web Forms :: Incorrect QueryString In IE On PostBack?

Jan 30, 2011

I have a DropDownList that has AutoPostBack set to true and the following OnSelectedIndexChanged function:

[Code]....

This works great in every browser, except IE. In Firefox and Safari it works as expected: it appended the following QueryString: "?campus=SELECTION". In IE, it doesn't do this at all. In fact, no QueryString is present in the URL.I have no idea what would be wrong. If you want to see the page in action: [URL]

View 17 Replies

SQL Server :: Incorrect Syntax Near BlnIsActiveST?

Jul 17, 2010

basically i created a form to suspend or activate user accounts in sql:

UPDATE membermanagement2
SET blnIsActiveST='True'
WHERE intUserIdUS= pintUserID

when i test this form on SQL server 2005 it works!!! but when i bring it over to visual studio... this error always comes out

there are 3 forms involve in this

[code]....

View 3 Replies

C# - Incorrect Syntax Near Where For An Update Query?

Aug 12, 2010

Here is the update query which i am using to update a table. It throws me an exception "Incorrect Syntax near Where" Why is that exception for?

[code]....

View 2 Replies

SQL Server :: Incorrect Syntax Near 'apply'

Jan 5, 2011

I have a UDF called Split which accepts a comma separated list and returns a table variable splitting the values in a row. So for ex if I call the function

Select * From dbo.Split('100,287,312', ',')

The output of this query will be

ID-----Value
1------100
2------287
3------312

Now I am trying to use cross apply to return each row for each csv but I am getting an error Line 3: Incorrect syntax near 'apply'.

Here is my query

select c.course_id, c.course_title, b.*
from course c cross apply dbo.[Split](c.foreign_lang_equiv_course_id, ',') As b

View 2 Replies

Web Forms :: Incorrect String After Url Rewrite?

Mar 12, 2011

I'm having a bit of trouble with some strings I am using after rewriting my Url.

My url is here: [URL]

In the above example, Warwickshire is the county and Warwick is the town. I'm referring to these in my query string and am assigning the relevant town/ county to strings in my code behind in order for me to populate labels in page text.

The problem I'm having is that the labels in my page aren't being updated like 'Warwickshire' or 'Warwick, but as 'Warwickshire-Magician' or 'Magician-Warwick'. You can see in the above example that this is making my text not make sense at all. I want to get rid of the 'Magician-' text so I am just left with the town/ county name.

My code behind is as follows:

[Code]....

View 4 Replies

C# - Incorrect Url Displaying After Response.Redirect?

Dec 3, 2010

When I use Server.Transfer("PageName.aspx");

I am transferred to the correct page, but the url is the url of the first page.

In other words, say page1.aspx Server.Transfers to page2.aspx.

page2.aspx is rendered, but the url reads page1.aspx.

The problem was I need to pass parameters to page2 in the url, and the params were not getting through.

I got around it by using Response.Redirect("PageName.aspx?parm=val");

I had been using Server.Transfer because I was under the impression it was more efficient.

What are the other differences? Are there any other reasons for using one rather than the other?

So far I have:

Use Response.Redirect
if you want to pass parms
if you want to transfer to a site on another server
Use Server.Transfer for the efficiency of saving one server roundtrip

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved