User Profile & Activity

Huzefa Katwarawala Member
Page
of 6

Hi,


After few tests i found that this javascript error comes only in IE. On FireFox its works fine.

On Google Chrome i don't get anythin render onto the Page(don't know why).

The error that comes up is this "Member not found":

function anonymous(){
//At this line i am getting 'Member not found' error
event=event||window.event;
}

I don't know why is it so. Even after this javascript error everything works good but i don't even want this error. As i dont wanna leave any errors onto the form, as you never know what may be become a bigger problem

How to use CommonLibarary instead of SmartWebResources and what is the difference. I am using your latest controls.

Thanks,

Huzefa

Hi,

Thanx for the reply.


I am attaching a sample where in i have used your way of making the control and then used the control onto the page.

But this still throws the same javascript error.


Thank you

Hi,


Sorry but this is not what i was looking for..

I mean i want to replace your WebGridColumn by deriving WebGridColumn into my CustomClass.

Then i add this Custom Class to Web Grid..

An example shown below

public class CustomColumn : WebGridColumn
{

}

//Then in Page i will use like....
protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)
{

CustomColumn newColumn = new CustomColumn ("NewColumn", "New Column");

newColumn.Width = new System.Web.UI.WebControls.Unit(200, UnitType.Pixel);
newColumn.Position = 1;
newColumn.ColumnType = ColumnType.Textbox;
WebGrid1.RootTable.Columns.Add(newColumn);
}


When i do this, it does not give me any compile time error but when the control is rendered then it gets errored out.

How can i create my own GridColumn deriving from WebGridColumn?


Thanks,

Huzefa

Hi,

Thanks for your reply,


I am not getting one thing, Why have you treated 'NumericInput' as a Template.

Can't i just derive this 'NumericInput' class from WebInput and override my settings on events like OnInit and OnLoad?

I want my base to be Web Input only just few default setting i wan't to set in this numricInput class. So that my fellow developers don't have to understand this settings and are released from the burden of writing it again and again when ever they want to use this control.

The user who drags and drops this NumericInput control on to the form should get all the events and properties of WebInput control too.


Thanks,

Huzefa

Hi,
The AutoComplete feature worked like a charm.


Regarding the missing WebCombo text, in such scenario you will need to fill the virtual column (in this case FullName) as you set the value to the WebCombo. The InitializeRow server side event will be invoked when you show the WebCombo dropdown, in your scenario the InitializeRow will not be triggered.


Can you please provide a sample or a proper code to illustrate how would i do this thing?

I am just getting a DataTable consisting of 1 row which is filetered on the Value in DTO object, and attaching this DataTable to WebCombo. I even add an extra column in DataTable for FullName and give its Value but nothing is shown on client side and TextBox of WebCombo remains empty.


Thanks,

Huzefa



Thanks,

Huzefa

Hi,

 

In order to allow the instant lookup feature to work you will need to use AdditionalSearchField property in order to allow WebCOmbo to search in the FirstName and LastName field, for example.

How to set Multiple AdditionalSearchFields?

I have set the FirstName as AdditionalSearchField but when i type in a Name and press Tab, then the Filtered record is just 1 record but it doesn't get set, instead the DropDown result box opens up and i have to explicitly select a record.

What i want is after user Press Tab key and after filter if the number of records returned is just 1 then automatically set the Value and Text of that record. How can i achieve this?

 

On the server side, you will need to set the Value property in order to set the default choice in WebCombo, as detailed on the article How-to: Set initial value from server side in WebCombo in the WebCombo documentation.

 

I am not using any DataSource  control instead i am Binding Data on InitializeDataSource Method.

I am checking if Action!="LoadData" and Value is set to something and Text is empty, then go to database filter the record on Value and get 1 record. After getting this one record i attach it to DataSource property of WebCombo. The Issue is i am adding a temporary column as you suggested and setting its text and value on InitializeRow event, but this event doesn't get called at all. And the text is not set. The WebCombo TextBox comes with empty text. Am i missing somehting?

 

Basically i want a LoadOnDemand functionality but i don't wanna use ISDataSource control or ObjectDataSource Control. Instead i manually call database and get a DataTable and bind this DataTable to DataSource of webCombo.

What would be the best approach for this?

Hi Glenn,


Thanks for this solutions, it worked like a charm.


Few questions i want to ask you,


1) I want this combo to have Instant Lookup functionality as provided in your samples. But after i apply your above solution the instant lookup thing doesn't work. Can you provide a solution to get it proper on some real column.


2) How can i have more than 1 AdditionalFilterColumn in combo?


3) How can i have paging in combo instead of More button?


4) I want something like filter bar on top of each column so that after the dropdown is open user can filter on any additional column he wishes to. Can i do this in WebCombo? I need it please provide a way.

5) Once the user have selected a value and have posted the selection to server. Now i want to display the user his choice back. I have the user selected Id field value and want to set its Text to webCombo how can i do this? As Text property of WebCombo doesn't have a Setter. How can i achieve this?


Thanks,

Huzefa

If i have 50,000 rows and i dyanmically loop through datasource and add an extra column then it would be a big performance bottleneck.

Can't i just add temporray column to those records which are currently shown to user.

Like for first 15 rows i create a temporary column and display to user, then when user clicks for more then i create a temporray record for remaining 15 rows and so on...

 

Please suggest me a proper way if the number of records are more than 50,000.

 

Thanks,

Huzefa

 

Thanks Glenn


But merging it into one column won't be a great idea in my case. Can't i set a Text on my own using javascript methods?

Can you also send me a example were columns for MultiColumn Mode are added dyanmically?
Also is Templatting being supported? Can i add a WebGrid to be shown when result/data is shown?

Thanks,
Huzefa

All times are GMT -5. The time now is 2:12 AM.
Previous Next