Complex Filtering In Web Application?

Sep 18, 2010

I need to estimate (and probably build later on) complex filter in ASP.NET WebForms application. The filter has to be mostly based on ASP.NET AJAX or jQuery for high interactivity. The filter has to allow filtering data with complex logical conditions (and, or, braces) and several operators. A user has to be able to save the filter's query and use it (load it) later on (server logic). Moreover there is still discussion about in operator.

Application should provide some graphical filter builder. I want to have full control on set of operands (filtering fields) and operators. The component will be used for all filtering actions in application. My problem is only how to do the UI part - translation of builded "query structure" is not a problem.

Have you ever did something like that? Can you share some experience how to best and fastest build such component? Do I need to develop component or is there any existing one which has at least some of the functionality and can be extended to provide other functionality? Because I'm not very experienced with client side development, I don't know how complex task is developing such component from scratch.

Another possiblity is to define some meta query language and allow users to write the query to some query text box with support for building logical expressions. I have already checked available controls in DevExpress and Telerik toolkits:

DevExpress:

Pros: Really nice visualization, fast. We probably have DevExpress licences. Cons: Tightly coupled with DevExpress grid. Based on documentation no extensibility and no control over operands and operators. It uses operands provided as columns for grid - I need much more. Probably not possible to save and load filters.

Telerik:

Pros: Not coupled with grid, it looks like separate control. Cons: I didn't find documentation - I'm not sure about extensibility but the code looks like it uses some databind control as source of operands = problem. I don't like the visualization. Demo is really slow. We don't have Telerik licences.

View 3 Replies


Similar Messages:

Entity Framework - Collection Of Complex Child Objects In MVC 3 Application?

Feb 20, 2011

I want to be able to update a model and all its collections of child objects in the same view. I have been referred to these examples: http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx and http://blog.stevensanderson.com/2010/01/28/editing-a-variable-length-list-aspnet-mvc-2-style/ .

For example, I have an object Consultant, that has a collection of "WorkExperiences". All this is in an Entity Framework model. In the view, the simple properties of the Consultant object is no problem, but the collection I cannot get a textbox to show up for. I tried following the examples in the links above, but it doesn't work. The problem is, in those examples the model is just a list (not an object with a child list property). And also, the model again is an EF model. And for some reason that doesn't seem to work as in those examples.

[Code]....

This stuff with the EditorTemplate works fine in Phil Haack's sample project, which I downloaded to try, but here, with the EF model or whatever the problem is, I don't get any textbox at all. The table in the view is just there as a test, because in the table I do get the rows for WorkExperiences, whether I add an empty WorkExperience object or fill out its properties doesn't matter, the rows show up for each object. But again, no textbox...

View 2 Replies

Filtering A List View In MVC Application?

Jul 12, 2010

I would like to implement filtering in a List view based on the value in a DropDownList, in a sort of 'postback' call, where the user selects dropdown values and clicks a Refresh button. I have figured out that I should use my ViewData for the model being listed, but how do I pass the selected values back to the Index override that takes filter parameters?

View 3 Replies

Forms Data Controls :: Filtering Records Returned Versus Filtering At The Datasource

Mar 14, 2010

I have a standard gridview, with the standard paging and sorting interface enabled.The application holds appointments for three organisational units, with a maximum of 3000 appointment records being returned across all three units. The appointment records are quite small.

The choice I am faced with is to:

1. Have an Org Unit dropdown which returns to the datasource on change of selection and at inital databind, and returns appointment records for one org unit at a time i.e. approx 1000 records.

2. Have the objectdatasource return all 3000 appointment records for all org units at initial databind, and filter the objectdatasource by org unit on change of selection, thereby saving a trip to the datasource.

I guess the question boils down to identifying the point at which querying the datasource by org unit is more efficient than filtering the records returned by org unit.

Is 3000 records a lot for a gridview to be paging and sorting etc.

View 3 Replies

MVC :: How To Organize More Complex Routes

Mar 12, 2011

I understand the basics of setting up routes, I am trying to get a handle on how to organize more complex routes. Does the Route name do anything? I havn't seen a place it's actually used. If I have the route: controller/action/id/paramA/paramB/paramC. ParamA-C could be defining multiple parameters so First/Last/Zip or Phone/Zip/Birthday. Is it common practice to name the additional parameters with a generic name like paramA vs trying to differentiate a separate route for each?

Lastly, if you have multiple sites/functional areas in 1 site, lets say the asp.net site, each area MVC, Ajax, Forums ect were all different functional areas. Is it best to create a different group of routes such as hard coding the controller like:

MVC/action/id
Ajax/action/id
Forums/action/id

or is there a better way? What I am running into is 1 piece of the site overriding the other route because of the number/type of parameters.

View 5 Replies

Patterns To Use When Building Complex Web UI?

Jun 24, 2010

I need to implement a wizardy, dynamic UI that uses complex validation of the style:

If A = 1, show controls B, C, D. B is required, C is not, and D is not required must be less than 30 if it is populated.

If A = 2, show controls B, D, E. B is not required, D is required but has no limits, and E is not required.

If B is not null, show controls B, D, E. B is not required, D is required but has no limits, and E is not required.

Historically, I have made my presentation layer as "dumb" as possible in that it is only responsible for capturing user input and binding it to the appropriate domain model. The domain model, in turn, contains the logic needed to validate it's state and that of any child objects, and then communicates any invalid state to the presentation layer via notifications. As such, this requirement for a highly "intelligent" UI represents a departure for me.

I think I have no choice but to construct 2 very similar class hierarchies:

one that will capture presentation business rules (i.e. what fields are visible) and control what renders in the View

one that will capture domain business rules (when field A = X, then field B should be not null and in the range of n to m) to disallow objects with an invalid state from being persisted


Sill I have far more questions than answers on my strategy moving forward. Is there a set of design patterns I can draw on to build such a dynamic UI? I do have the option of using ASP.NET MVC or WebForms, so whichever approach will produce cleaner, testable code is preferred.

View 1 Replies

MVC :: Creating A Complex Form With C#?

Feb 10, 2011

How can I create a form that creates or updates a complex type that takes a form like:[Code]....

I would like to either create two forms one for tblstudent and one for tbldata and tblStudata or create one form for all three and give the illusion of multiple pages. I came across an old Railscast that talks about virtual attributes and a helper called fields_for which helps you switch between model contexts in a single form. Is there a way of achieving this kind of functionality with C# MVC 2 or 3?

If this sort of thing is not possible how else might I be able to handle create/update scenarios without defining two actions amd voews for each table entity I need to work with or god forbid separate controllers?

View 2 Replies

SQL Server :: Auto Generate More Complex ID?

Jul 17, 2010

I really don't know if this Post fit in this Forum section. But here I go. I need some sugestion to develop an ASP.NET code that generate complex IDs / Keys automatically. Let me be more understandable:

I want to create uniquelly IDs with more complex composition (kind of 18958351512783997769711... or crlu0xakecjzlgmjsgnedr55) or something link that (doesn't matter the lenght... those are only examples).

So, I can use that to set COOKIE ID's... PRODUCTS CODE ID's.... CUSTOMER's CART ID's... etc... But it need to generate uniquelly numbers. I don't know if you got my point I hope you did.

View 3 Replies

Proper Implementation Of MVP With Complex Controls?

Jan 20, 2010

I'm currently implementing a project using asp.net, c# and the MVP (Model-View-Presenter) pattern. The main purpose of this solution is to deliver a graph to the consumer, to be used by a variety of systems. It is basically a custom graph server.

The view page in this particular case has an MSChart control on it, which has to be dynamically populated and configured based on parameters in the QueryString. This can be as diverse as totally different types of data sets, display modes and so on, using a lot of the properties of the chart control.

Many of these properties are again of types which are particular to the chart control and would require the same dependencies as the chart control itself if they are to be set by the presenter.

I'm trying to figure out the best way to expose the properties to the presenter so it can work its magic.

Should I:

Just expose the whole chart object and live with a system.web type dependency in the presenter project? Make accessor and translation properties for all of the chart control properties so that I don't have the dependency, but add lots of complexity? Other, that I haven't thought of?

To me it seems that it would be against the MVP pattern to bubble a display control up into the presenter, but it seems that trying to map all the properties to DTOs or similar would be a lot of work that would add a lot of complexity, and while the solution would be somewhat more loosely coupled, I'm not sure the gain would be worth it in this case. How would you implement something like this, given MVP?

View 2 Replies

MVC :: ModelMetadata Property Name For Complex Type?

Feb 3, 2011

[Code]....

[Code]....

How can i get full name of the property ?

View 7 Replies

Web Forms :: Complex Word Doc To Pdf Conversion

Jan 22, 2010

I need to convert the word doc to pdf, ofcourse i did it,But i converted only simple word file that has only strings. But I need to convert the word doc that has images tables with all formatings how Can i achive it.

View 5 Replies

Aligning Complex Images On A Web Page

Jan 17, 2011

i would like to ask what is the best way to position and align images on an HTML web page.

I will have approximately 10 user-controls that each have a set of images on them laid out in a specific pattern, eg - an arc, a circle, straight line, some other sort of curve.

How i can achieve this using best practices?

Update: All the images will be the same size.

View 1 Replies

Consuming .NET Web Services With Complex Types In PHP

Mar 12, 2011

Can i consume .NET web service and use it complex types in PHP?
Example:

[WebMethod]
public DataSet GetData()
{
return new DataSet();
}

Can i consume this method and use DataSet class methods in PHP?

View 1 Replies

MVC :: Using EF4 Complex Types / Properties In Repositories?

Jan 13, 2011

Are there advantages in creating complex types in EF4 Entities and then use the complex properties in the repositories; instead of creating the aggregates in the the repository themselves? I.e. If the customer repository consists of properties of 3 entities: customers, addresses, email would it make sense to create a complex type consisting of the address and email properties, and add them as a complex property of the customer entity then just call the customer entity and the complex property in the repository, rather than just creating the repository class and aggregate the entities in the repository.What are there advantages or disadvantages in doing this in a MVC3 application?

View 10 Replies

Complex Items In WebForms ListView?

Nov 15, 2010

I'm currently using a ListView in my webformsapplication. This ListView generates a table with (currently) three columns. "Username", "Organization" and "Locked". These are represented with string, string and checkbox respectively. The checkbox should postback on change...

Should I use <%# Eval("Username") %> or <asp:Literal blablah> to inject the data? This is more relevant for the checkbox... It seems very "dirty" to write <input type="checkbox" id="something" <%# if ((bool)Eval("Locked") == true) /* some unknown code for outputting "checked" */ ;%> />

Or should I use another container alltogether?

View 1 Replies

MVC :: Razor In WebGrid - Can Use Complex Content

Nov 5, 2010

I am using Razor and MVC 3 WebGrid in ASP.NET MVC 3 Beta.

I have the following:

[Code]....

I am not able to have two ActionLinks on the same column. In this case I get the following error:

The best overloaded method match for 'System.Web.Helpers.WebGrid.Column(string, string, System.Func<dynamic,object>, string, bool)' has some invalid arguments

This is usefull not just for this but to create columns that contains more information then just a field.

I also tried Razor's <text> but no luck ... Maybe I used it wrong.

View 5 Replies

C# - Bind A Complex Dictionary To A Gridview?

Jun 6, 2010

I've used an early binding of a dictionary<string, string> to a gridview to show Urls Text and its HRef as key-value and it works like a charm. But since I want to replace the dictionary with this one :

dictionary<string, LinkInfo>

the binding goes wrong! Should I handle some events like as onItemDataBound or something?
and the LinkInfo structure is:

public struct LinkInfo{
public string href;
public bool Enabled;
}

View 1 Replies

DataSource Controls :: Complex ObjectDataSource And ASP?

Apr 17, 2010

Consider a fairly complex business object. For the sake of discussion, let's think about a "ClassRoom" object - that will have some attributes which occur once, such as "capacity" and "area". It will also have some repeating attributes - perhaps "desks" which will itself be a collection of desk objects. The desk object will in turn have attributes such as "width" and "height".My example is more complex, but that should show where I am coming from. The business object, as you would expect, exposes methods to get the attributes in and out. There is also logic included to perform the underlying database updates. Of course, the necessary business validation is also in there.

In terms of binding to the ASP page, I will need to bind the attributes of "ClassRoom" to a set of fields on the page (using one method on the object). I will also want to bind the desks collection to a Repeater or GridView (using another method on the object).Presumably, I need to find a way to use a single instance of the ObjectDataSource so that the updates to the two (or more) disparate sets of data can be kept in step. I suspect that if I simply put two data sources on the page, I will get two instances and therefore no correlation between them.This can't be a unique problem, but I'm struggling to find any useful information.

View 3 Replies

MVC :: DataAnnotation With .edmx Complex Type?

Oct 21, 2010

n edmx Contact entity PersonalInfo complex type is defined with property FullName and Title.In view the code is

[Code]....

Got buddy class like

[Code]....

When I submit form get an error of mapping but if I take FullName out of complex type than form is working fine.How I validate FullName if it is in Complex type?

View 6 Replies

MVC :: Complex View/user Interaction?

Jun 26, 2010

Basically I have a page where a user can select up to 3 vehicles by make and model. I have 3 divs on the page that is generated with a basic foreach loop. When the user selects a make and model from respective dropdown lists I am firing a javascript function that returns a JSonResult that loads a dynamic partial view into a seperate div. This partial view displays a div with a grid whereby the user can select one of n-number of services using a checkbox.Next what I would like to do is if the user selects a servce for the one of the vehicle selections, I would like to add this selection to a list of "ServiceSelection" that is part of my viewmodel. Ultimately the user would click a button that would redirect to the next step in the process and pass the entire updated viewmodel to this new page.

View 1 Replies

C# - Storing Complex Data In A List?

Sep 27, 2010

I'm working with a product called SiteFinity.I have a class which looks like so:

public class Categories
{
public IContent oContent {get; set;}

[code]...

View 2 Replies

C# - Handing Complex Validation Scenarios In MVC?

Jan 15, 2010

I'm been working on a GetRuleViolations() method for my User class, but I'm getting a little hung up on on something:

What happens when different actions require different business rules?

My User table has the following columns: Id, UserRoleId, Username, and Password. Several actions involving User are possible (create new user, edit user, set/reset password, and log in), and the business rules for each are not always the same.

For example, when users log in, they are required to enter a password, but when admins create a new user, entering a password is not even an option. And in the case of setting/resetting a password, the password needs to be entered twice, and the two values need to be an exact match. What is the best way to handle this complexity? Is there some kind of design pattern to allow the right GetRulesViolations() method to be selected for the right circumstance?

View 2 Replies

MVC :: Complex View And Data Binding?

Mar 15, 2010

In my past I had created the following web page in web forms and I'm learning asp.net mvc right now , I had given it a tought and I run into conclusion I really wont know how to do the same page with asp.net mvc

before explaining you the actuall problem I would explain you the Model The model is a pretty simple , it for few columns which are bool , and a lot of them which are varchar(MAX) The View is built the following way

the bool parts of curse got a check box but the varchar parts are the complicated ones In my web form page i got the following code for each varchar property in my database

[Code]....

my server script gets the following page apon submit and checks if radio button 1 or 2 is selected if 1. it inserts the link as it is into colmn property while if it is 2. it saves the file on the server and saves the file location into the colmn property.

View 3 Replies

Web Forms :: Complex String Operations?

Feb 17, 2011

Does anyone have a tricky tip to simplify my complex String Operations? I receive a string sequenze from database which i have to manipulate on RowDataBound of an GridView, put the String into several controls. The String looks like this:Here goes a introduction string with easy formating options such as {blue}blue text{/blue}

{CONTROL}{ParamsForControl|ParamsForControl}Text for Control 1{/CONTROL}
{CONTROL}{ParamsForControl|ParamsForControl}Text for Control 2{/CONTROL}
{CONTROL}{ParamsForControl|ParamsForControl}Text for Control 3{/CONTROL}

Some Text at the end.My first try was easy because I haven't had an introducing and a ending text, so I split the String at "{CONTROL}" extract the Parameters and replaced "{/CONTROL}" with nothing, works fine...But if i now split at "{CONTROL}" how to handle the text in front of and behind them... I do a lot of string.IndexOf and String.LastIndexOf operations but I hope there is an easier way...Result should be:

Introduction Text = Label
Control = UserControl
Control = UserControl

View 5 Replies

MVC :: Binding Complex Lists To An Object?

Jan 26, 2010

I'm having trouble finding a good tutorial on binding complex lists to an object. Essentially we have currencies that are user defined, we need to generate a form for each currency to allow the user to input exchange rates. I think I'm doing my list properly according to this post, however I'm not getting any data bound. here is my ASPX snippit.

[Code]....
Here is my form data object and associated objects.

[Code]....

Here is the html that is rendered.[Code]....

I'm having trouble finding a good tutorial on binding complex lists to an object. Essentially we have currencies that are user defined, we need to generate a form for each currency to allow the user to input exchange rates. I think I'm doing my list properly according to this post, however I'm not getting any data bound. here is my ASPX snippit.

[Code]....

View 1 Replies







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