Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
107 views

 

Hi,

I am using telerik grid with search boxes in header. When I type some text in any search box an ajax loading panel appears and grid shows all filtered records. But the cursor remains in the search box and when I type anything in there and hit Enter it doesn't filters the record. I have to click out side the search box and then cilck in it again and it works fine.  I am referring your example
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx

In your example the cursor doesn't stay in the search box.
I dont want the cursor to stay in the search box. Am I missing something in my code.
Following is my code

<
telerik:RadGrid AutoGenerateColumns="false" ID="RadGrid1" DataSourceID="dsUserList"

 

 

Width="760px" AllowFilteringByColumn="True" AllowSorting="True"

 

 

PageSize="15" ShowFooter="True" AllowPaging="True" runat="server"

 

 

GridLines="None" EnableLinqExpressions="false" >

 

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

 

<GroupingSettings CaseSensitive="false" />

 

 

<MasterTableView AutoGenerateColumns="false" EditMode="InPlace" AllowFilteringByColumn="True"

 

 

ShowFooter="True" TableLayout="Auto">

 

 

<Columns>

 

 

<telerik:GridNumericColumn DataField="UIN" HeaderText="UIN" SortExpression="UIN"

 

 

UniqueName="UIN" FilterControlWidth="40px" AutoPostBackOnFilter="true" CurrentFilterFunction="equalto" FilterDelay="4000" ShowFilterIcon="false">

 

 

</telerik:GridNumericColumn>

 

 

 

 

 

<telerik:GridBoundColumn FilterControlWidth="105px" DataField="Email" HeaderText="Email" SortExpression="Email"

 

 

UniqueName="Email" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn FilterControlWidth="50px" DataField="Name" HeaderText="Name" SortExpression="Name"

 

 

UniqueName="Name" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith" ShowFilterIcon="false">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridDateTimeColumn FilterControlWidth="120px" DataField="Date_Entered" HeaderText="Date_Entered" SortExpression="Date_Entered"

 

 

UniqueName="Date_Entered" PickerType="DatePicker" DataFormatString="{0:d}">

 

 

<HeaderStyle Width="160px" />

 

 

</telerik:GridDateTimeColumn>

 

 

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Scrolling AllowScroll="false" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

Regards,
Lubna.

 

Lubna Ansari
Top achievements
Rank 1
 answered on 10 May 2010
1 answer
224 views
I am trying to use a standard asp:RequiredFieldValidator with the control, but keep getting an error message "Control [rating] referenced by the ControlToValidate property of  [validator] cannot be validated."  I have other validators on the form that work fine.  Can this type of control not be validated this way?

Thanks.
Tsvetie
Telerik team
 answered on 10 May 2010
2 answers
120 views
I use this code to delete:

 protected void RadScheduler1_AppointmentDelete(object sender, Telerik.Web.UI.SchedulerCancelEventArgs e)
    {
        SchedulerTask task = SchedulerTask.GetByID(Convert.ToInt32(e.Appointment.ID));
        task.Delete();             
     }

And I get next error message:

Server Error in '/src' Application.

No parameterless constructor defined for this object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.MissingMethodException: No parameterless constructor defined for this object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[MissingMethodException: No parameterless constructor defined for this object.]
   Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.OnDataSourceOperationComplete(Int32 count, Exception e) +39
   System.Web.UI.DataSourceView.Delete(IDictionary keys, IDictionary oldValues, DataSourceViewOperationCallback callback) +83
   Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.Delete(RadScheduler owner, Appointment appointmentToDelete) +262
   Telerik.Web.UI.Scheduling.AppointmentController.DeleteAppointmentThroughProvider(Appointment appointmentToDelete) +170
   Telerik.Web.UI.Scheduling.AppointmentController.DeleteAppointment(Appointment appointmentToDelete, Boolean deleteSeries) +1833
   Telerik.Web.UI.RadScheduler.DeleteAppointment(Appointment appointmentToDelete) +109
   Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +2427
   Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +108
   Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +42
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +176
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Veronica
Telerik team
 answered on 10 May 2010
2 answers
115 views
Good Day All

i have a problem, my Weekview and my Day View is not visible clearly. i have a screen-shot of it

Thanks
Vuyiswa
Top achievements
Rank 2
 answered on 10 May 2010
4 answers
192 views
So I followed the related RadComboBox examples and have implemented a set of ComboBox controls (where one combo box is dependent on the value selected in the other). This was implmented via Custom Attributes and therefore, I no longer use the "ResourceControl" functionality. This works fine. However, I need to implement the GroupBy functionality for these custom attributes, and I think I lose this functionality when I move to using Custom Attributes. I need to implement functionality as follows:
1) I would like the caledar to show my resources via a GroupBy across the top, which is doable if you use the "GroupBy" property in the radScheduler.
2) When I select an appointment under this GroupBy resource, I now need my custom attribute to reflect this i.e. my radComboBox that corresponds to the GroupBy resource should select the appropriate entry in the dropdown list which corresponds to the GroupBy resource (which then populates my related radComboBox).

Perhaps I can clarify this with an example:
I have 3 resources, Room 101, Room 102, and Room 103
I have 6 other related resources, namely Bob, Carol, Ted, Alice, Biff and Muffy.
Bob and Carol can only be assigned to Room 101, Ted and Alice can only be assigned to Room 102, Biff and Muffy to Room 103
When Room 101 is selected in the Room combobox, only Ted and Alice should appear in the User combobox etc.
I have done this via the examples provided by implementing related radComboBoxes and custom attributes in the advanced edit form.

However, I wish to have a GroupBy Room so that my Rooms appear across the top of my calendar.
When I select an appointment to insert under a particular room, I need to pass that selection on to my radComboBox for my Room resource so that the appropriate value gets selected. How can I do this?

Hope this makes sense. Any help would be appreciated.
Dimitar Milushev
Telerik team
 answered on 10 May 2010
1 answer
93 views
Hi,

When RadMenu is used with Windows 7 theme, disabled items in menu does not show washed out text color, thus making it impossible to visually identify which menu items are enabled and which are not.

When looked inside, the disabled css class is overwritten by another Windows 7 theme css class that changes the text color back to original.

Please advise on how to fix this issue.

Thanks.
Kamen Bundev
Telerik team
 answered on 10 May 2010
1 answer
113 views
Can you give me an example of using Scheduler with RadToolTip but no UpdatePanel?

When I try the solution with the UpdatePanel and I use a MasterPage, I get the following error:

  • Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.

 

When I don't use the MasterPage, it works fine.
Peter
Telerik team
 answered on 10 May 2010
1 answer
165 views
Hello,

Is there a way to reset a grid deep inside a hierarchy of radgrids without redrawing all the radgrid by a radgrid1.Rebind(); ?

Thanks
CS
Tsvetoslav
Telerik team
 answered on 10 May 2010
1 answer
117 views
Hello, I have a lot of grids with image columns (first and last columns are icons). I want to export the grid to excel, but I DO NOT want the image columns to be exported (they mess the excel column widths).
Also, each time I export a grid to excel, I get a warning "The file you are trying to open is in a diffent format than specified by file extension....".  After accepting, the file is nevertheless opened. But the image columns make a mess.
Any way to avoid exporting them and solving the warning?

Thanks!

Shinu
Top achievements
Rank 2
 answered on 10 May 2010
1 answer
127 views
Hello,

I'm trying to fix a page on out local site, and the issue is this, when performing any action, expanding a row item, sorting or filtering, it takes 2 clicks for the action to work.  The page is as follows, a master page, the actual page, which has a RadScriptManager, then 2 nested UpdatePanels, and a RadGrid inside of the 2nd nested panels.  On the grids first load it seems to work when expanding rows, but paging, sorting or filtering seems to cause problems.  Once a problematic action is taken the data will appear correctly, but clicking to expand a row, sort again, or page will fail without a notification, the server will just return the same page data again, as if it did not detect the grids postback action.  After the failed click i'm able to expand rows once again.  I've been debugging the page and on the failing clicks the pages onLoad method is called, but the sub items are not called.

Also the RadGrid is placed in a user control.

Any ideas?

Also I've been looking at the post back information and this is what I found.  I steps I took were to expand a row, close a row, filter to display that row, and then open and close it.

-- Bad Row Open
[48] = "ctl00$pageContent$tAlerts$rgAlerts$ctl00$ctl17$GECBtnExpandColumn"
-- Good Row Open
[48] = "ctl00$pageContent$tAlerts$rgAlerts$ctl00$ctl16$GECBtnExpandColumn"
-- Good Row Close
[48] = "ctl00$pageContent$tAlerts$rgAlerts$ctl00$ctl16$GECBtnExpandColumn"

-- Good Filter
[44] = "ctl00$pageContent$tAlerts$rgAlerts$ctl00$ctl02$ctl01$btnLocationOk"

-- Bad Row Open
[44] = "ctl00$pageContent$tAlerts$rgAlerts$ctl00$ctl05$GECBtnExpandColumn"
-- Good Row Open
[44] = "ctl00$pageContent$tAlerts$rgAlerts$ctl00$ctl04$GECBtnExpandColumn"
-- Good Row Close
[44] = "ctl00$pageContent$tAlerts$rgAlerts$ctl00$ctl04$GECBtnExpandColumn"

Tsvetoslav
Telerik team
 answered on 10 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?