MVC2 MSchart With Detail Grid

Apr 16, 2010

I need the capability to display a chart, click on a region and display the details in a jqgrid on the same page. I tried using a pie Chart and I can't seem to capture or create a click event for the chart. The data points contain a .url property which I can redirect to a different page but I need to display details on the same page like a master-detail page.

View 3 Replies


Similar Messages:

MVC2 : Use Radiobuttons In A Grid?

Apr 24, 2010

Again a question about RadioButtons/ RadioButtonList

I've the following Model:

public class SkillLevelModel
{
public long? Id { get; set; }
public int? SelectedLevel { get; set;}
}
I've the following Controller:
public class SkillController : BaseController
{
public ActionResult Index()
{
var skills = new List<SkillLevelModel>();
for (int i = 0; i < 10; i++)
skills.Add(new SkillLevelModel() { Id = i, SelectedLevel = new Random().Next(0,5) });
return View(skills);
}

I've the following code in the View:

<% foreach (var item in Model) { %>
<tr>
<td style="width: 30px" align="center">
<%= Html.Encode(item.Id) %>
</td>
<td>
<% Html.RenderPartial("UCSkillLevel", item); %>
</td>
</tr>
<% } %>

I've the following code in the PartialView:

<% for (int i = 0; i <= 5; i++) { %>
<td align="center">
<%= Html.RadioButton("SelectedLevel", i, new { id = Model.Id + "_" + i })%>
</td>
<% } %>

The problem is that no radiobutton is checked, althought they have a level.

View 2 Replies

Access Row In Telerik Grid In MVC2 Application?

Dec 27, 2010

I am using telerik grid in mvc2 application. I have to perform Watin UI test for my application. For that i need to select a row from the telerik grid. I was not able to select id for the telerik grid as the telerik grid doesn't have any id. can u please help me to select the particular row from the grid. I have 6 columns in the grid. Based on the value of a row in the column(should iterate though the column) i need to select the id of that row and hit on the select button of that row.

View 1 Replies

Telerik Grid MVC2 Missing Last Column Separator?

Jan 14, 2011

My grid has 5 data columns and 1 command column (update/delete)the column separator between command column and last data column is missing, making everything shift when entering inline edit mode.

this is the grid's view code:

<%=
Html.Telerik().Grid<ActivityPOCO>()
.Name("ActivityGrid")
.DataKeys(dataKeys =>
{
dataKeys.Add(e => e.ActivityID);
}
.ToolBar(commands => commands.Insert().ButtonType(GridButtonType.Image))........

View 1 Replies

Forms Data Controls :: Passing Dynamic Value To Detail View Of Grid Through Object Selecting Parameter

Oct 4, 2010

Passing dynamic value to Detail view of grid through object selecting parameter

View 4 Replies

Forms Data Controls :: Master / Detail With Additional Detail Paging

Aug 6, 2010

I'm trying to setup is a News module with article listing paging and article detail paging. I have a GridView with paging that lists my articles just fine. In that list, some article titles have links that direct to an article detail page by passing in the articleID to the details page. I was able to setup my details page, which uses a DetailsView control, to use paging by using an ObjectDataSource with pageIndex and pageSize parameters from the querystring. Once on my detail page, I can use my navigation arrows to move through Next and Previous articles just fine.

No matter which article I click in my article list, my detail page always starts with pageIndex 0 and thus not the article I clicked on. I understand why that is because it's going by pageIndex value instead of articleID. What I need it to do is, set the detail to whatever articleID i pass in, then allow me to navigate Next and Previous to THAT particular article instead of starting me off from pageIndex 0.

[Code]....

View 2 Replies

MVC :: 3 Master / Detail View Inserts New Detail Records Instead Of Updating Existing

Feb 6, 2011

article on binding to a list and I've got that working fine on one view. But what I'm stuck when doing it off a master record. Everything seems to work except that when I look in the database the detail records previous associated with the current master have their Foriegn key to master set to Null and a new set of detail records have been inserted. I've got a really simple form for this object

[Code]....

The form collection comes back with the expected prefixes:

[Code]....

And the Controller.UpdateModel(master) binds all the properties correctly. But when I call dbContext.SaveChanges it issues the follow sql from sql profiler (psuedo code)

[Code]....

I've got a work around that works but it's pretty hackish and I'm currently not matching up the keys so it's dependent on everything coming back in the right order. Plus I've got to include all the fields that I want updated.

[Code]....

I thought that entity framework's code first was the culprite but I've unit test that and it works fine. I've got a feeling that UpdateModel is somehow removing and re-adding the children. Has anyone else got this to work? Of course, I could throw in the towel and parse the indexed field names myself, but I'm so close!

View 2 Replies

DataSource Controls :: Master Detail Using EF Model Where Condition For Detail - 3.5 Sp1?

Jan 26, 2010

I've been experimenting with using EF (asp.net 3.5 sp1) with a master detail page. Using northwind as the database, I'm simply trying to have categories as master and products as detail. I have read everything I could find on the net about the where condition and it still fails with this error as soon as I click the select link in the master grid:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: A property with name 'CategoryID' does not exist in metadata for entity type 'WebAppEF01.Products'.

What strikes me is that the CategoryID column is not exposed by the EF model. That's been rolled up into the navigation element 'Categories' I suppose...but on the surface this seems to create the problem I've running in to. I've tried turning off the autogeneratewhere clause but didn't have success. The code for this page follows below.

[Code]....

View 2 Replies

Forms Data Controls :: Master / Detail Page - Updating Detail Records - Need Access To Master ID (key)

Jul 30, 2010

I have an "Edit" page that uses a FormView bound to an EntityDataSource. The page is called with the ID field of the record to edit in the query string: "EditEmployee.aspx?ID=10". The EDS the FormView is bound to is using: AutoGenerateWhereClause=true and a QueryStringParameter. Below the FormView I have a ListView that contains some child records of the FormView. The ListView is bound to a seperate EDS and also uses the (same) QueryStringParameter.

The problem I am having is when this ListView attempts to Insert or Edt a column I receive an error because I don't have the ID field (EmployeeID) of the parent bound anywhere in the ListView (and obviously, it is setup as a ForeignKey so it fails, like it should). Any advice on the best way to get this ID (EmployeeID) column bound in the ListView? There are many things I can do in code behind, but I would like to solve this in the markup if possible. I can move the ListView so that it is inside of the FormView if necessary.

View 1 Replies

AJAX :: Master - Detail Page Reloading The Detail Page With Update Panel

Jul 27, 2010

I have a Page with a FileUpload control on the top with the "Insert" button, in order to insert pictures Below that, i have a Listview showing all the pics. THis is the way i am placing my Update Panel:

[Code]....

How can i, press the INSERT button and reloads only the Content Template after INSERTING?

View 3 Replies

C# - MVC Routing For Master / Detail Views With "Detail Children"

Jul 27, 2010

I have the basic Master / Detail Views working great with the default ASP.NET MVC Route; however I would like to build some URLs like this: /Class/Details/5 -- General Detail view [Working] What I'm not sure about (and I'm not tied to this URL format, just something roughly equalivent.)

/Class/5/Details/Logs -- Detail View with Logs
/Class/5/Details/Status -- Detail View with current Status

Another way to put this, is like this: /{controller}/{id}/{controllerSpecificMaster}/{action}/ What I'm trying to avoid, is cluttering up my ViewsClass directory with a bunch of Views, which are all basically derivatives of the Details view. I'm on ASP.NET MVC 1 and .NET 3.5 SP1.

View 1 Replies

MVC ::mvc 2 And Mschart Working Example?

Sep 30, 2010

Is there any working example of asp.net mvc with line chart of mschart?

View 5 Replies

Printing Mschart In Web Application?

Aug 4, 2010

I have a web application with several MSChart and I need print all these chart but I dont know how. In some examples in the internet people using EditCopy() but it dont working for me because I cant found that method.

View 17 Replies

C# - Set Labels On Datapoints Using Mschart?

Oct 11, 2010

I would like to customize the labels on the datapoints below so they would render as (using first datapoint on the chart as an example) :

4:10 - 4:40
yellow class

View 1 Replies

MVC :: MSChart In Partial View?

Jan 29, 2010

Got the MSChart working fine in a standard view, but I'm trying to put them on partial views that I'm then loading using jQuery tabs.

Problem is if you try to put the Chart on a partial, it moans about System.Web.UI.DataVisualization, saying it can't find it, no problem on a standard view though.

View 12 Replies

MSChart Inside A Usercontrol?

Sep 27, 2010

Can you use the new Microsoft Chart Control for .NET Framework inside a usercontrol? Bacause when i take a working chart from my page and then copy it to a usercontrol the picture is blank very weird.

View 1 Replies

MVC :: Render MSCHart Using RenderControl?

Jan 18, 2011

I want to do a Jquery POST and get a chart using renderControl attribute of CHart which will return HTML attributes back to browser. The CHart is created dynamically based on parameters passed from post and from model. I have successfully done this on WEbforms,

However the same with MVC give a empty image. The handler doesn't perform the same in MVC2 3.5. I went near to 50 sites now.

I can't use other solution like base64encoding as IE6, 7 don't support it.

What I'm trying to do? I have few data parameteres to be sent (POST) to server and in response get the Chart image as tag along with other attributes and data appended in HTML form and sent to browser, all this to be done using JQUERY. No postbacks to be used.

I have badly searched on google, bing nothing turns out to be valuable.

View 5 Replies

Forms Data Controls :: Nested Grid Dynamically Fill When Parent Grid Button Click Then Expand Child Grid

Jan 16, 2011

i have one grid and one button when i click on that button then it expand and showing another grid under the row of parent grid how to do that.

View 2 Replies

VS 2008 - MSChart Using DateTime On X Axis?

Mar 29, 2010

I have installed the asp.net MSChart control for VS2008 and set up a chart on my webform. I am using DataBindTable in code to bind data from a LINQ query. The data for the x axis looks something like this:

Date/Time
15/03/2010 08:00:00
15/03/2010 14:00:00
15/03/2010 20:00:00
16/03/2010 08:00:00
16/03/2010 14:00:00
etc

When the chart displays the X axis only displays multiple dates, and not times, no matter what properties I try to change.

View 2 Replies

Improving The Performance Of MSChart Toolip?

Mar 25, 2010

We are using MSChart on an ASP.net 3.5 web application and noticing significant slowness from enabling tooltips. the performance of drawing a chart is increased by 1,000-2,000ms.The chart output is PNG, and contains in total 108 data points.

View 1 Replies

Display TimeSeries / Use The MSChart Control?

Dec 23, 2010

How can I display a TimeSeries?Is it possible to use the MSChart Control (Asp.net Charting Control)?

View 3 Replies

VS 2010 Mschart Axis Minimum Or Maximum?

Oct 18, 2010

I have an mschart control which is databound in code-behind. The Y axis values can vary from vary small to very broad. So the range is set to auto. This works fine except when the values in range of 0 and <1.
In this range the axis only has a zero, it does not have a "1" at top. Is it possible to set to dynamically set the maximum? So if the maximum value is less than one, still show a one.
i.e. get maximum value and set the Y axis maximum = maximum value +1

View 5 Replies

.net Placing Multiple MSChart Controls On The Same Page?

Nov 26, 2010

I tried to place 4 mschart controls on the same page but it is giving me major grief. Each chart appears properly when I place one per page, but as soon as I place multiple the first two are displaying incorrect data and the last two do no display anything at all.

I made sure that I am not using the same session variable eventhough that seems to be the most like culprit.

View 1 Replies

MsChart :: Partial View Error And MVC Project?

Feb 26, 2010

using Mschart on my MVC project,when i use the first index page of project to render for the partial view name index2 the code is

<% Html.RenderPartial("Index2"); %>

But when i run it the error is occur which the message is

CS0029: Cannot implicitly convert type 'ASP.views_home_index2_ascx' to 'System.Web.UI.Page'

-it said that the problem line of code is

: // Render chart control

Line 52: Chart2.Page = this;

[code]...

But when i put all of code in Index2.ascx to the index.aspx and not to render the partial view it work fine

Code of Index2.ascx is

<%
System.Web.UI.DataVisualization.Charting.Chart Chart2 = new System.Web.UI.DataVisualization.Charting.Chart();
Chart2.Width = 412;
Chart2.Height = 296;

[code]...

View 1 Replies

C# - MSChart: ChartImageHandler Pros / Contras Of The Different Storage Settings

Mar 8, 2010

I'm using the MSChart Control in a Web Project. I saw that there are 3 different storage mode settings: file/memory/session. I couldn't find any information about the pros/contras or the impact of the settings.

View 2 Replies







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