Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
How disable click in date column in Agenda View (attached image)?
And can I add custome style/template in the date column in Agenda View?
Ivan Danchev
Telerik team
 answered on 03 Aug 2016
1 answer
678 views

Hello everybody,

I had followed Morten´s suggestion to solve Case Sensitiveness at post "RadGrid Filter Case Sensitive?" by adding <GroupingSettings CaseSensitive="false" /> to my RadGrig.

<telerik:RadGrid ID="rg" runat="server" AllowFilteringByColumn="True" AllowFiltering="True">
  <GroupingSettings CaseSensitive="false" />

It partially works at my scenario. I use DataSourceID and let´s say I have 20 records at my datasource, I am filtering with the EmployeeName column. 

If I write "ce" the filter works fine and it retrieves just one record "Bruce Wayne" (see filter_ce.jpg) BUT
If I write "ca" the filter doesn´t work and it retrieves all records at the DataSource (see filter_ca.jpg).

In both cases I am using Contains to apply the filter.

Any ideas about what is going on?? how can I correct this behavior??
If you need me to provide more info just let me know.

Thnx in advance

Viktor Tachev
Telerik team
 answered on 03 Aug 2016
20 answers
3.6K+ views
Hey how do I make the filter on a RadGrid so that it isn't case sensitive?  Why would you have this enabled by default?  Who would want a case sensitve filter anyway?
Viktor Tachev
Telerik team
 answered on 03 Aug 2016
4 answers
247 views

I have the following code to programmatically create a DatePicker

case "date":
    var dt = new RadDatePicker { ID = $"keyword_{keyword.keyword_id}" };
    var day = new RadCalendarDay
    {
      Repeatable = RecurringEvents.Today,
      Date = DateTime.Today
    };
    day.ItemStyle.BackColor = Color.LightGray;
    day.ItemStyle.Font.Bold = true;
    day.ItemStyle.BorderStyle = BorderStyle.Solid;
    day.ItemStyle.BorderColor = Color.Black;
    day.ItemStyle.BorderWidth = new Unit(1);
    if (dt.SharedCalendar == null)
    {
      dt.SharedCalendar = new RadCalendar();
    }
    dt.SharedCalendar.SpecialDays.Add(day);
    cell1.Controls.Add(lbl);
    cell2.Controls.Add(dt);
    break;

and I receive the following on the page when I try to view it:

Value cannot be null or empty.
Parameter name: componentID

I've got it narrowed down to the SharedCalendar not having an ID value, and when I set it to some value, I now get an error in the JS console:

Uncaught Sys.InvalidOperationException: Sys.InavalidOperationException: Compnoent 'cal_keyword_134' was not found

How can I create a Date Picker programmatically and have the popup calendar highlight "today"?

 

Mike
Top achievements
Rank 1
 answered on 03 Aug 2016
1 answer
409 views

After a few hours of searching the internet on the error "Specified argument was out of the range of valid values", I discovered that the cause was the GridTemplateColumn behaving differently that a GridBoundColumn with regards to filtering. In the code snippet below, you can use the one filter just fine. If you change the telerik:GridTemplateColumn (column 2) to AllowFiltering='true' while having a <FilterTemplate> element, using the filter on column 3 will throw an error. AllowFiltering='true' doesn't cause a problem if there's no <FilterTemplate> element. Note that changing the GridBoundColumn ( column 1) between AllowFiltering= true/false doesn't cause an issue. It's only the GridTemplateColumn type.

The different behavior between the GridBoundColumn and GridTemplateColumn types seems like a bug.

 

      <telerik:RadGrid runat="server" DataSourceID="sql_tables" AllowFilteringByColumn="true" AutoGenerateColumns="false">
            <MasterTableView>
                <Columns>
                    <telerik:GridBoundColumn DataField="name" HeaderText="name" AllowFiltering="true" UniqueName="name1">
                        <FilterTemplate>
                            custom filter template on GridBoundColumn is OK
                        </FilterTemplate>
                    </telerik:GridBoundColumn>
 
                    <telerik:GridTemplateColumn DataField="name" HeaderText="name-template" AllowFiltering="false" UniqueName="name2">
                        <ItemTemplate>
                            <%#Eval("name") %>
                        </ItemTemplate>
                        <FilterTemplate>custom filter on GridTemplateColumn breaks filtering.</FilterTemplate>
                        <HeaderStyle BackColor="Pink" />
                    </telerik:GridTemplateColumn>
 
<telerik:GridBoundColumn DataField="type" HeaderText="type" AllowFiltering="true" UniqueName="type"/>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
 
        <asp:SqlDataSource runat="server" ID="sql_tables" ConnectionString="<%$ ConnectionStrings:MyDB%>" SelectCommand="select top 4 name, object_id, schema_id, type, type_desc from sys.tables" />

Maria Ilieva
Telerik team
 answered on 03 Aug 2016
1 answer
83 views

Hi,

 

ich have a Grid with Enabled HeaderContextMenu. Is it possible to open the Contextmenu with Keyboard for selected item and also Navigate inside the Contextmenu with Keyboard?

 

Kind Regards

Maria Ilieva
Telerik team
 answered on 03 Aug 2016
3 answers
153 views

Hi,

How can i control the width of the resource in the advanced form view. Because of the data i am loading it does not expand and the text is long.

 

<telerik:ResourceType DataSourceID="Patients" Name="Patient" TextField="PatientName" KeyField="PatientId" 
                    ForeignKeyField="AppPatientId"/>

 

Thanks

Ivan Danchev
Telerik team
 answered on 03 Aug 2016
0 answers
232 views

The official support for RadUpload has been discontinued in June 2013 (Q2’13) in favor of RadAsyncUpload, Telerik’s next-generation ASP.NET upload control. If you are considering Telerik’s Upload control for new development, check out the RadAsyncUpload documentation or its product page.

If you are already using RadUpload in your projects, you may be interested in reading how easy the transition to RadAsyncUpload is and how you can benefit from it in this blog post.

Although RadUpload is still available in the suite, we deeply believe that RadAsyncUpload can better serve your upload needs and we kindly ask you to transition to it to make sure you take advantage of its support and the new features we constantly add to it.

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 03 Aug 2016
1 answer
80 views

Hi,

Using the RadGrid in Batch Editing mode and the EditType is set to row. 

aspx:

<telerik:GridTemplateColumn UniqueName="2_1" DataType="System.Int32" DataField="2_1" AllowSorting="false">
    <ItemTemplate>
        <asp:Label runat="server" ID="lbl2_1" Text='<%# Eval("2_1") %>'></asp:Label>
        <asp:Label runat="server" ID="lblDay2_1" ClientIDMode="Static"></asp:Label>
    </ItemTemplate>
    <EditItemTemplate>
        <span>
            <telerik:RadNumericTextBox runat="server" ID="tb2_1" Text='<%# Bind("2_1") %>' Type="Number" MinValue="0" MaxValue="999">
                <NumberFormat DecimalDigits="0"/>                                       
            </telerik:RadNumericTextBox>                                   
        </span>                               
    </EditItemTemplate>
</telerik:GridTemplateColumn>  

I want to access the label ""lblDay2_1" client-side to change the text when the user edit the RadNumericTextBox

I think the best way is to use the event "CellValueChanged" but I am not be able to access the Label "lblDay2_1" to change the text.

How can I do that? 

Thanks in advance.

 

Maria Ilieva
Telerik team
 answered on 03 Aug 2016
3 answers
88 views

Wondering if someone wrote a code to read the recurring events details field and count it?

Let's say I have 5 events entered in 1 week, but 2 of those entered as recurring - the totals for the week would show as 4 events instead of 5, because the query count number of events as number of the rows in the table, using the date range specified. Since 2 of those are recurring - there is 1 row in the SQL table for both events and it would count it as 1 event instead of 2 events taking place in that week. Hope it makes sense. Please advise on how to calculate the events properly, when recurring events exist... The events are also can be of different type and I would need to count it in separate totals. I would like a way to setup the count in a query in SQL and pass date range as parameters, not on load of the scheduler, since I need to use the count in the gridview with the scheduler on the screen, as well as show the count on the reports. Thank you!

Veselin Tsvetanov
Telerik team
 answered on 03 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?