This is a migrated thread and some comments may be shown as answers.

OnKeypress and filter giving error

3 Answers 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Blair
Top achievements
Rank 1
Blair asked on 17 Sep 2010, 06:15 PM
Hi,

I'm trying to use the code from this demo http://telerikwatch.com/2008/09/telerik-watch-minute-enhancing-radgrid.html. The problem I'm having is I get this error the second time I try to edit the filter textbox and hit Enter. This seems to be happening in all browsers.



This is a very complex page so I can't copy all the code here. So, here is an idea of what is going on that may be helpful:

       1. Columns are dynamically created with AutoPostBackonFilter = false (I've tried both ways)
       2. Using RadAjaxManager to update grid and controls.
       3. There is a ASP:Panel around the grid with the DefaultButton set to a control to keep it from randomly launching other buttons     on the page.
       4. Using RadComboxes in the grid also. They are all working fine and are using the masterTableView.filter() function.    

Any help would be appreciated.

Blair

Possible offending code:

,_recreateControls:function(e){var d=e.getElementsByTagName("*");

for(var a=0,c=d.length;

a<c;

a++){var f=d[a];

if(typeof(f.id)!="undefined"&&f.id!=""){var b=$find(f.id);

if(!b){continue;

}b._element=$get(f.id);

}}},getColumnByUniqueName:function(a){for(var b=0;

b<this.get_columns().length;

b++){if(this.get_columns()[b].get_element().UniqueName==a){return this.get_columns()[b];

}}return null;

 


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322)
Timestamp: Fri, 17 Sep 2010 16:56:07 UTC

Message: 'this.get_columns()[...].get_element().UniqueName' is null or not an object
Line: 3398
Char: 6
Code: 0
URI: https://mini.salesnet.com/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.2.713.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7302be66-e7a1-4bc1-8280-71f03d66eba0%3a16e4e7cd%3a58366029%3af7645509%3a24ee1bba%3a1e771326%3aaa288e2d%3ae330518b%3ac8618e41%3ae4f8f289%3aed16cbdc

 

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 21 Sep 2010, 10:48 AM
Hi Blair,

Please refer to the online resources below which elaborate on this subject and let me know what is the difference in your scenario
Search on key press/button click
Web Mail Grid

I hope this helps.

Best wishes,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Blair
Top achievements
Rank 1
answered on 27 Sep 2010, 03:00 PM
Hey Pavlina,

The difference in both those scenarios is that it is using a custom button for searching. I'm relying on the built in buttons that are dynamically generated by the grid.

Please refer to the demo link I provided above. I'm using that exact code. Plus, I'm using the client-side event cancel functions (which is not included in the demo).

I would appreciate any further help.

Thanks.

Blair
0
Pavlina
Telerik team
answered on 30 Sep 2010, 10:00 AM
Hi Blair,

Could you please open a formal support ticket and send us a sample, or a runnable code, illustrating the issue in question? We will debug it locally and turn back to you with our findings.

Other than this it is hard to determine the source of the problem based on the provided information.

Best wishes,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Blair
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Blair
Top achievements
Rank 1
Share this question
or