Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
133 views
I need to run the filter with ComboBox and Contains StartsWith + MarkFirstMatch =true

Sample items

Ana Maria
Antonio
Felipe
Fabio
Maria Ana

My combobox is specified as with Contains.

Value: Maria

It appears the items:
Ana Maria
Maria Ana

All right. Only he focuses on the first "Ana Maria" but I wish he focuses on "Maria Ana" Butit still appears the "Ana Maria".

How do I do this?

I tried using the OnClientKeyPressing but does not work correctly: .highlight();
Rudá Cunha
Top achievements
Rank 2
 asked on 22 Mar 2011
1 answer
192 views
Hi,
I have the problem that this error pops up:
Could not find control 'EisDefaultLocationComboBox' in ControlParameter 'LocationID'.

Here my code:

<telerik:RadDockZone ID="EisDefaultDockZone" runat="server" Orientation="Vertical" Style="border: 0px;">
    <telerik:RadDock ID="EisDefaultDock" runat="server" Title="Employee Information System" EnableRoundedCorners="true"
        DefaultCommands="None" EnableDrag="false">
        <ContentTemplate>
            <telerik:RadToolBar ID="EisDefaultToolBar" runat="server" Width="100%" Style="margin-top: 6px;">
                <Items>
                    <telerik:RadToolBarButton Text="New User" Enabled="false" />
                    <telerik:RadToolBarButton Text="Print" Enabled="false" />
                    <telerik:RadToolBarButton Text="Help" Enabled="false" />
                    <telerik:RadToolBarButton IsSeparator="true" />
                    <telerik:RadToolBarButton>
                        <ItemTemplate>
                            <div style="padding-left: 75px;">
                                Location: 
                                <telerik:RadComboBox ID="EisDefaultLocationComboBox" runat="server" AutoPostBack="true"
                                    DataSourceID="EisMainListLocationDataSource" DataTextField="LocationName"
                                    DataValueField="LocationID" AppendDataBoundItems="true" Width="150px">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="ALL" Value="0" Selected="true" />
                                    </Items>
                                </telerik:RadComboBox>
                            </div>
                        </ItemTemplate>
                    </telerik:RadToolBarButton>
                    <telerik:RadToolBarButton>
                        <ItemTemplate>
                            <div style="padding-left: 50px;">
                                Search: 
                                <telerik:RadTextBox ID="EisDefaultSearchTextBox" runat="server" Width="150px" Enabled="false" />
                            </div>
                        </ItemTemplate>
                    </telerik:RadToolBarButton>
                </Items>
            </telerik:RadToolBar>
            <telerik:RadGrid ID="YawaMainGrid" runat="server" DataSourceID="EisMainListDataSource" GridLines="None"
                AllowPaging="True" PageSize="20" AllowSorting="True" AutoGenerateColumns="False" ShowStatusBar="True"
                EnableHeaderContextMenu="True" EnableHeaderContextFilterMenu="True" AllowFilteringByColumn="True"
                OnItemCommand="YawaMainGrid_ItemCommand" OnItemDataBound="YawaMainGrid_ItemDataBound" Style="margin-top: 6px;">
                <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="false">
                    <Selecting AllowRowSelect="true" />
                    <ClientEvents OnRowClick="YawaMainGridRowClick" OnRowContextMenu="RowContextMenu" />
                </ClientSettings>
                <GroupingSettings CaseSensitive="false" />
                <MasterTableView DataSourceID="EisMainListDataSource" DataKeyNames="UserID" ClientDataKeyNames="UserID"
                    AllowFilteringByColumn="true" IsFilterItemExpanded="false">
                    <Columns>
                        <telerik:GridBoundColumn DataField="Account" 
                            FilterControlAltText="Filter Account column" HeaderText="Account" ReadOnly="true"
                            SortExpression="Account" UniqueName="Account">
                            <ItemStyle Width="65px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Lastname" 
                            FilterControlAltText="Filter Lastname column" HeaderText="Lastname" ReadOnly="true"
                            SortExpression="Lastname" UniqueName="Lastname">
                            <ItemStyle Width="160px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Firstname" 
                            FilterControlAltText="Filter Firstname column" HeaderText="Firstname" ReadOnly="true"
                            SortExpression="Firstname" UniqueName="Firstname">
                            <ItemStyle Width="120px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Loc." 
                            FilterControlAltText="Filter Loc. column" HeaderText="Loc." ReadOnly="true"
                            SortExpression="Loc." UniqueName="Loc.">
                            <ItemStyle Width="50px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SBU/Dep." 
                            FilterControlAltText="Filter SBU/Dep. column" HeaderText="SBU/Dep." ReadOnly="true"
                            SortExpression="SBU/Dep." UniqueName="SBU/Dep.">
                            <ItemStyle Width="140px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Phone" 
                            FilterControlAltText="Filter Phone column" HeaderText="Phone" ReadOnly="True" 
                            SortExpression="Phone" UniqueName="Phone">
                            <ItemStyle Width="160px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Phone" 
                            FilterControlAltText="Filter Mobile column" HeaderText="Mobile" ReadOnly="True" 
                            SortExpression="Mobile" UniqueName="Mobile">
                            <ItemStyle Width="160px" />
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
            <telerik:RadContextMenu ID="EisDefaultContextMenu" runat="server" OnClientItemClicked="ClientMenuItemClick" EnableShadows="true">
                <Items>
                    <telerik:RadMenuItem Text="Full Details" Value="details" Enabled="true" />
                    <telerik:RadMenuItem Text="Edit" Value="edit" Enabled="false" />
                    <telerik:RadMenuItem Text="Set status" Value="status" Enabled="false" />
                </Items>
            </telerik:RadContextMenu>
        </ContentTemplate>
    </telerik:RadDock>
</telerik:RadDockZone>
<asp:SqlDataSource ID="EisMainListDataSource" runat="server"
    ConnectionString="<%$ ConnectionStrings:YAWAConnectionString %>" 
    SelectCommand="if (@LocationID <> 0)
                 begin
                   SELECT CoreUser.CoreUserID AS UserID,
                   CoreUser.UserAccount AS Account,
                   CoreUser.UserLastname AS Lastname,
                   CoreUser.UserFirstname AS Firstname,
                   CoreLocation.CoreLocationID AS LocationID,
                   CoreLocation.LocationNameShort AS [Loc.],
                   CoreBusinessUnit.BusinessUnitNameShort AS [SBU/Dep.],
                   REPLACE(CoreCountry.CountryAreaCode, '00', '+') + ' ' + RIGHT(CoreLocation.LocationAreaCode , LEN(CoreLocation.LocationAreaCode)-1) + ' ' + CoreLocation.LocationPhone + ' - ' + CoreUser.UserPhoneExtension AS Phone
                   FROM CoreUser
                   INNER JOIN CoreLocation ON CoreUser.CoreLocationID = CoreLocation.CoreLocationID
                   INNER JOIN CoreGfsExpenseCode ON CoreUser.CoreGfsExpenseCodeID = CoreGfsExpenseCode.CoreGfsExpenseCodeID
                   INNER JOIN CoreBusinessUnit ON CoreGfsExpenseCode.CoreBusinessUnitID = CoreBusinessUnit.CoreBusinessUnitID
                   INNER JOIN CoreCountry ON CoreLocation.CoreCountryID = CoreCountry.CoreCountryID
                   WHERE (CoreLocation.CoreLocationID = @LocationID)
                 end else begin
                   SELECT CoreUser.CoreUserID AS UserID,
                   CoreUser.UserAccount AS Account,
                   CoreUser.UserLastname AS Lastname,
                   CoreUser.UserFirstname AS Firstname,
                   CoreLocation.CoreLocationID AS LocationID,
                   CoreLocation.LocationNameShort AS [Loc.],
                   CoreBusinessUnit.BusinessUnitNameShort AS [SBU/Dep.],
                   REPLACE(CoreCountry.CountryAreaCode, '00', '+') + ' ' + RIGHT(CoreLocation.LocationAreaCode , LEN(CoreLocation.LocationAreaCode)-1) + ' ' + CoreLocation.LocationPhone + ' - ' + CoreUser.UserPhoneExtension AS Phone
                   FROM CoreUser
                   INNER JOIN CoreLocation ON CoreUser.CoreLocationID = CoreLocation.CoreLocationID
                   INNER JOIN CoreGfsExpenseCode ON CoreUser.CoreGfsExpenseCodeID = CoreGfsExpenseCode.CoreGfsExpenseCodeID
                   INNER JOIN CoreBusinessUnit ON CoreGfsExpenseCode.CoreBusinessUnitID = CoreBusinessUnit.CoreBusinessUnitID
                   INNER JOIN CoreCountry ON CoreLocation.CoreCountryID = CoreCountry.CoreCountryID
                 end">
    <SelectParameters>
        <asp:ControlParameter Name="LocationID" PropertyName="SelectedValue" ControlID="EisDefaultLocationComboBox" />
    </SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="EisMainListLocationDataSource" runat="server"
    ConnectionString="<%$ ConnectionStrings:YAWAConnectionString %>"
    SelectCommand="SELECT CoreLocation.CoreLocationID AS LocationID,
                   CoreLocation.LocationName AS LocationName
                   FROM CoreLocation">
</asp:SqlDataSource>

I want to filter the RadGrid with the RadComboBox shown in the Telerik Demo
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridcomboajax/defaultcs.aspx?product=grid

Could anyone help me please, I´m a beginner and want to learn ;-)

Andreas

Dimitar Terziev
Telerik team
 answered on 22 Mar 2011
5 answers
86 views
Hi

Anyway of stopping a GridEditeableItem.text returning "nbsp; when there is a null value?

Thanks
Richard

Chris @ Intrinsic
Top achievements
Rank 1
 answered on 22 Mar 2011
0 answers
32 views
Edit: Figured out my issue. The API doesn't directly support dragging and dropping to and from you have to do some very manual mouse work and through that I figured out nicely how to "cancel" it.
Paul
Top achievements
Rank 1
 asked on 22 Mar 2011
1 answer
55 views
Hi guys

I'm in the process of getting ready to upgrade to the new controls from my 2009 version.

I would like to use the trial version on one of my systems to test user experience.  Will the trial version display the "This is a trial version" message all the time, or only after the trial has expired?
Sebastian
Telerik team
 answered on 22 Mar 2011
3 answers
71 views
Greetings,

We're using GridBinaryImageColum to upload jpg images whose size is about 100KB.
These images are saved in a varbinary columns in a database.
When calling these images on the front-end, we get bmp images that exceed 1.1MB.

It that normal?
Is there a way to avoid the size jump, or is it simply better not to use the BinaryImage for such scenarios?

Thanks in advance.

 

Daniel
Telerik team
 answered on 22 Mar 2011
3 answers
126 views
Hello,

I am using a RadGrid that should be refreshed every 2 seconds.I setup a asp:timer and RadAjaxManager on the page and everything is working fine. What I would like to acheive is to avoid the RadAjaxLoadingPanel to be shown douring refresh; in other words I would like to get the new rows in the Grid without showing to the user that the page is loading again.
If I am seeting the RadAjaxLoadingPanel visible = false, the grid doesn't refresh and the same if RadAjaxLoadingPanel is not set within RadAjaxManager.
Do you have any suggestion?

Thanks, Giuseppe
Mira
Telerik team
 answered on 22 Mar 2011
3 answers
283 views
Hi All,

I glanced through the search for a little bit, but couldn't find an example that worked for me.

I have a RadNumericTextBox in a RadWindow. I am passing arguments to the RadWindow and I need to be able to enable/disable the text box before it is shown to the user. I do this, but the label next to the text box remains gray. I have remedied this in other scenarios, but I am struggling here.

            function pageLoad() {
                var oWindow = GetRadWindow();
                properties = oWindow.argument;
 
                if (properties) {
                    if (properties["AutoRefreshEnabled"] == "True") {
                        CheckBox1.checked = true;
                        $find("<%= RadNumericTextBox1.ClientID %>").set_value(properties["AutoRefreshInterval"]);
                        $find("<%= RadNumericTextBox1.ClientID %>").enable();
//Apply CSS Class here
                    }
                 }

I tried a few examples, but basically all I'd like to do is the equivalent of "RadNumericTextBox1.LabelCssClass = "LabelEnabled"" where LabelEnabled is the CssClass that applies the appropriate coloring scheme to the label. How can I achieve this client-side?

Thanks

Sean
Mira
Telerik team
 answered on 22 Mar 2011
3 answers
166 views
hi, I have a simple Scheduler object. I would like make required the selection of resource in advances form edit for new appointment as the subject, can I do? I have found a trick to stop the execution server side using the  RadScheduler1_AppointmentInsert event, but not idea ho to show message.
Thanks

protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)
       {
           //cerco l'agente selezionato
           Resource UserRes = e.Appointment.Resources.GetResourceByType("Agente");
           if (UserRes != null)
           {
              //DO BUSINESS
               Appointments.Add(new TrilanceScheduleBase(e.Appointment));
           }
           else
           {
               //STOP               
               
e.Cancel = true;
           }
       }


<telerik:RadScheduler runat="server" ID="RadScheduler1" 
                                        DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"
                                        DayStartTime="07:00:00" DayEndTime="20:00:00" TimeZoneOffset="03:00:00" 
                                        OnAppointmentInsert="RadScheduler1_AppointmentInsert"
                                        OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" 
                                        OnAppointmentDelete="RadScheduler1_AppointmentDelete"                                        
                                        DataRecurrenceField="RecurrenceRule" 
                                        DataRecurrenceParentKeyField="RecurrenceParentId" Height="100%" 
                                        onappointmentdatabound="RadScheduler1_AppointmentDataBound" 
                                        ondatabound="RadScheduler1_DataBound" Culture="Italian (Italy)" 
                                         EditFormTimeFormat="HH.mm" FirstDayOfWeek="Monday" HoursPanelTimeFormat="HH" 
                                         SelectedView="WeekView" StartInsertingInAdvancedForm="True" 
                                         onformcreating="RadScheduler1_FormCreating">
                                         <DayView DayEndTime="20:00:00" DayStartTime="07:00:00" 
                                             WorkDayEndTime="20:00:00" WorkDayStartTime="07:00:00" />
                                         <AdvancedForm Modal="true" TimeFormat="HH.mm" />
                                         <TimelineView UserSelectable="false" />
                                         <WeekView DayEndTime="20:00:00" DayStartTime="07:00:00" 
                                             WorkDayEndTime="07:00:00" WorkDayStartTime="20:00:00" />
                                         <TimeSlotContextMenuSettings EnableDefault="true" />
                                         <AppointmentContextMenuSettings EnableDefault="true" />                                        
                                     </telerik:RadScheduler>
Veronica
Telerik team
 answered on 22 Mar 2011
5 answers
212 views
Hi there.

My server is in California and my users are in New Zealand. Everything is being stored in the database as UTC. When I save a record it shows it as being saved 19 hours earlier.

Is there a simple way of detecting the users timezone through the browser adn adjusting the time and date appropriately?

Thanks
Chris
Maria Ilieva
Telerik team
 answered on 22 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?