Search code examples
c#asp.netteleriktelerik-ajax

How to view the processed SelectCommand of Telerik RadAutoCompleteBox


I have a most basic out-of-the-box implementation of a Telerik RadAutoCompleteBox. I would like to inspect the processed SelectCommand generated by the component using the debugger, prior to that command getting sent to the SQL server - so that I can see the actual SQL being generated.

I tried to use the OnDataSourceSelect event so that I could inspect AutoCompleteBoxDataSourceSelectEventArgs at runtime, however, it appears that if this event is used the component assumes that the developer wants to provide custom server-side filtering of the data and therefore the SelectCommand never gets processed.


Solution

  • If you need details about the innards of the code, download the source from your account, open the project, add it to your solution, reference it and start it in debug mode. You can step through the code at your leisure then.