Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
147 views
hi,
I updated my telerik dll's with new one's.Then after i observed rad combo box styles are changed,
Please find the attachment...
Updated dll's are listed below.

1.Telerik.Web.Design.dll
2.Telerik.Web.UI.Skins.dll
3.Telerik.Web.UI.dll
Magdalena
Telerik team
 answered on 15 Aug 2013
1 answer
128 views
My combobox filter only works the first time it is selected.
I am using the same user control on the page multiple times so I need a unique javascript function name

<telerik:RadGrid ID="grvProjectSummary" runat="server"
    AllowAutomaticDeletes="True" AllowFilteringByColumn="True" AllowPaging="True"
    AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0"
    CssClass="eGrantsGroupBox" GridLines="None"
    PageSize="25" Skin="Office2010Blue" Width="100%">
    <HeaderStyle CssClass="eGrantsGridHeader" />
    <ItemStyle CssClass="eGrantsTableRow" />
    <AlternatingItemStyle CssClass="eGrantsTableAltRow" />
    <GroupingSettings CaseSensitive="false" />
    <MasterTableView CommandItemDisplay="Bottom" DataKeyNames="GrantProjectPK, AgencyFK"
        ShowHeadersWhenNoRecords="true" TableLayout="Fixed">
        <CommandItemSettings ExportToPdfText="Export to PDF"
            ShowAddNewRecordButton="False" ShowExportToCsvButton="True"
            ShowExportToExcelButton="True" ShowExportToPdfButton="True"
            ShowExportToWordButton="True" ShowRefreshButton="True" />
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
        </ExpandCollapseColumn>
        <Columns>

            <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False"
                DataField="GrantProjectPK" DecimalDigits="2"
                FilterControlAltText="Filter GrantProjectPKColumn column" HeaderText="&nbsp;"
                ReadOnly="True" ShowFilterIcon="False" SortExpression="GrantProjectPK"
                UniqueName="GrantProjectPKColumn">
                <HeaderStyle Width="40px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="40px" />
            </telerik:GridNumericColumn>

            <telerik:GridBoundColumn AutoPostBackOnFilter="true" Visible="true"
                CurrentFilterFunction="Contains" DataField="AgencyName"
                FilterControlWidth="100px" HeaderText="Agency/LEA" ShowFilterIcon="true"
                SortExpression="AgencyName"
                UniqueName="AgencyNameColumn">
                <HeaderStyle HorizontalAlign="Left" Width="180px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="180px" />
            </telerik:GridBoundColumn>

            <telerik:GridBoundColumn AutoPostBackOnFilter="true" Visible="false"
                CurrentFilterFunction="Contains" DataField="GrantProgramTypeTitle"
                FilterControlWidth="60px" HeaderText="Program Title" ShowFilterIcon="true"
                SortExpression="GrantProgramTypeTitle"
                UniqueName="GrantProgramTypeTitleColumn">
                <HeaderStyle HorizontalAlign="Left" Width="180px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="180px" />
            </telerik:GridBoundColumn>

            <telerik:GridBoundColumn UniqueName="columnAUNumber" AutoPostBackOnFilter="true"
                ReadOnly="true" CurrentFilterFunction="Contains" DataField="AUNumber" HeaderText="AUN"
                ShowFilterIcon="true" SortExpression="AUNumber" FilterControlWidth="60px">
                <HeaderStyle Width="100px"></HeaderStyle>
                <ItemStyle Width="100px" HorizontalAlign="Left" />
            </telerik:GridBoundColumn>

            <telerik:GridTemplateColumn DataField="StepName" HeaderText="Workflow Step" UniqueName="StepName" SortExpression="StepName">
                <HeaderStyle HorizontalAlign="Left" Width="120px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="120px" />
                <FilterTemplate>
                    <telerik:RadComboBox ID="rcmbStepFilter" DataSourceID="SqlDataSource3" Width="110px" Skin="Office2010Blue"
                        DataTextField="StepName"
                        DataValueField="StepName" AppendDataBoundItems="true"
                        SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("StepName").CurrentFilterValue%>'
                        runat="server">
                        <Items>
                            <telerik:RadComboBoxItem />
                        </Items>
                    </telerik:RadComboBox>
                    <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
                        <script type="text/javascript">
                            function SelectedIndexChanged_<%= ClientID %>(sender, args) {
                                var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");
                                tableView.filter("StepName", args.get_item().get_value(), "EqualTo");
                            }
                        </script>
                    </telerik:RadScriptBlock>
                </FilterTemplate>
                <ItemTemplate>
                    <%# Eval("StepName")%>
                </ItemTemplate>
            </telerik:GridTemplateColumn>

            <telerik:GridDateTimeColumn UniqueName="columnSubmitDate"
                DataField="SubmitDate.date" HeaderText="Submit Date" FilterControlWidth="80px"
                SortExpression="SubmitDate.date" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}"
                ShowFilterIcon="true" CurrentFilterFunction="EqualTo">
                <HeaderStyle HorizontalAlign="Left" Width="120px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="120px" />
            </telerik:GridDateTimeColumn>
                        
            <telerik:GridBoundColumn AutoPostBackOnFilter="true"
                CurrentFilterFunction="Contains" DataField="LastName" AllowFiltering="false"
                FilterControlWidth="60px" EmptyDataText="Unassigned"
                HeaderText="Assigned To" ShowFilterIcon="false" SortExpression="LastName"
                UniqueName="AssignedToColumn">
                <HeaderStyle HorizontalAlign="Left" Width="100px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="100px" />
            </telerik:GridBoundColumn>

            <telerik:GridButtonColumn UniqueName="SelectCommandColumnNoAjax"
                ButtonType="ImageButton" Text="Assign Reviewers"
                ImageUrl="~/images/users_add.png"
                CommandArgument="" CommandName="AssignUsers"
                ItemStyle-HorizontalAlign="Center">
                <HeaderStyle Width="40px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px"></ItemStyle>
            </telerik:GridButtonColumn>

            <telerik:GridButtonColumn ButtonType="ImageButton" CommandArgument=""
                CommandName="SEL" ImageUrl="~/images/select_program_sm.gif" Text="View Program"
                UniqueName="SelectCommandColumn">
                <HeaderStyle Width="40px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" />
            </telerik:GridButtonColumn>

            <telerik:GridButtonColumn ButtonType="ImageButton" CommandArgument=""
                CommandName="REVIEW" ImageUrl="~/images/review.png" Text="Review"
                UniqueName="ReviewCommandColumn">
                <HeaderStyle Width="40px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" />
            </telerik:GridButtonColumn>

            <telerik:GridNumericColumn Aggregate="Count" AllowFiltering="False"
                DataField="ProjectStatusWorkflowRouteStepPK"
                HeaderText="&nbsp;" ReadOnly="True" ShowFilterIcon="False" Visible="False"
                UniqueName="ProjectStatusWorkflowRouteStepPKColumn">
                <HeaderStyle Width="40px" />
                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="40px" />
            </telerik:GridNumericColumn>

        </Columns>
    </MasterTableView>
    <ClientSettings>
        <Resizing AllowColumnResize="True" />
    </ClientSettings>
    <FilterMenu EnableEmbeddedSkins="False" EnableImageSprites="False">
    </FilterMenu>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"
        EnableEmbeddedSkins="False">
    </HeaderContextMenu>
</telerik:RadGrid>

    Private Sub SetFilterComboScript()
        For Each filterItem As GridFilteringItem In grvProjectSummary.MasterTableView.GetItems(GridItemType.FilteringItem)
            Dim rcmbStepFilter As RadComboBox = DirectCast(filterItem.FindControl("rcmbStepFilter"), RadComboBox)
            rcmbStepFilter.OnClientSelectedIndexChanged = "SelectedIndexChanged_" + Me.ClientID
        Next
    End Sub

    Private Sub grvProjectSummary_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles grvProjectSummary.NeedDataSource
        _ProjectWorkflowRouteType = ViewState("ProjectWorkflowRouteType")
        Dim myFilter As Integer = ViewState("myFilter")
        Dim GrantProgramFK As Integer = CInt(ddlGrantPrograms.SelectedValue)
        Dim UserFK As Integer = CInt(Session(eGrantsConst_Session.USER_LOGIN_ID))
        If HttpContext.Current.User.IsInRole(eGrantsConst_Role.BUREAU_REVIEW_MANAGER) Then
            If ddlReviewers.SelectedValue > 0 Then
                UserFK = ddlReviewers.SelectedValue
            End If
        End If
        grvProjectSummary.DataSource = BLL.BusObjects.ReviewBO.GetReviewWorkQueuProjectsByBureauFKGrantProgramYearFKRouteTypeFKUserFK(Session(eGrantsConst_Session.SELECTED_PROGRAM_YEAR), _
                                                                                                                                        CInt(Session(eGrantsConst_Session.SELECTED_BUREAU_ID)), _
                                                                                                                                        CInt(Session(eGrantsConst_Session.SELECTED_PROGRAM_YEAR_ID)), _
                                                                                                                                        _ProjectWorkflowRouteType, _
                                                                                                                                        UserFK, _
                                                                                                                                        GrantProgramFK, _
                                                                                                                                        myFilter)
        SetFilterComboScript()
    End Sub
Don
Top achievements
Rank 1
 answered on 15 Aug 2013
1 answer
184 views
Hi,

I have been an avid Telerik user for about 7 years now and am having a problem that I have never experienced before. I recently upgraded a website from .net 4.0 to .net 4.5 as well as pointed my site at the "bin45" versions of the RadControls dll's. Problem is, now when I publish my app it publishes the bin40 dll, even though it clearly shows in my project that I have the bin45 dll. I have checked the properties of the dll and viewed the path stored in the skin's refresh file -- all is pointing to "45". I am at a loss. I am now in the maddening situation where I have to remember to manually copy the bin45 version of the skins dll over evertime I publish. Help!
Andrey
Telerik team
 answered on 15 Aug 2013
3 answers
146 views
Hi

I'm a new user to Telerik's grid. My company is right now in a process to switch to Telerik's products, since our current supplier has ended support of their grid.

In our current grid we have a function that we use a lot - to be able to click a cell for edit one cell (like this): http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultvb.aspx and after entering a value press Enter to update the grid and the data behind - similar to this: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultvb.aspx. Some places we even do it in a hierarchical grid: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultvb.aspx.

I've made the open cell on double click in a hierarchical grid - but I can't seem the make it update using Enter - is this possible ??

Kind regards

Jan Vennike
Angel Petrov
Telerik team
 answered on 15 Aug 2013
3 answers
101 views

Are the asp.net ajax controls compatible with the mobi controls (see below link), or do they have built in features where mobi wouldn't be needed?

http://51degrees.mobi/Products/Framework/Designers/InputMethods.aspx

Genady Sergeev
Telerik team
 answered on 15 Aug 2013
1 answer
133 views
I use LinqDataSource:

<asp:LinqDataSource ID="linqDS" OnSelecting="linqDS_Selecting" runat="server" />
<telerik:RadGrid ID="gridProducts" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
                  AllowSorting="True" AutoGenerateColumns="False"  AllowMultiRowSelection="false"
                  CssClass="roundBorders fixedRBPadding" PageSize="10" GridLines="None"
                 DataSourceID="linqDS" EnableAJAX="True" EnableAJAXLoadingTemplate="True">
protected void linqDS_Selecting(object sender, LinqDataSourceSelectEventArgs e)
       {
                 ...creating context...
 
                  e.Result = from productRecord in db.Products
                                 where
                                  ...
 
            
       }


I want to implement caching in grids because grids usually show only the first page and no need to make query each time.
I can easily implement caching in linqDS_Selecting method.

The problem is that i dont think about pagination in linqDS_Selecting method, grid implements it instead of me.
so i can put all data in cache (i need to save in cache only the firsts pages which can be really navigated)

I tried to figure out how to hook the event when the grid passes data about its filtering and paging to linq, but i couldnt.

Does anybody know the ways how to do it?
   
Vasil
Telerik team
 answered on 15 Aug 2013
3 answers
114 views
I have added RadStyleSheetManager to my page to combine all of the embedded CSS emitted for various Telerik controls (menu, grid, combobox, etc.) into a single request.

Here's what the control looks like in the master page:

<telerik:radstylesheetmanager runat="server" EnableStyleSheetCombine="true"></telerik:radstylesheetmanager>

In my Web.config I have these:

<system.web> 
    <handlers>
        <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    </handlers>
</system.web>

and 

<system.webServer> 
    <handlers>
        <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
    </handlers>
</system.webServer>

Unfortunately when I look at HTTP requests in Fiddle or Dev Tools I still see a bunch of individual requests for Telerik control CSS, e.g.:


/WebResource.axd?d=s5NYJBI3nRAFreTQ7udQlKpAm2DSy9JAG88FYDPYUxF9i8rYngTROVT04Kc6cQFbg0elZBZAi-9MOFyZZXrIQPY8qxU7BLpExH2B449zx7DVia8sEcNgsjtoO2898ZLA7Ieljg2&t=635017187260000000

What am I doing wrong?
Ivan Zhekov
Telerik team
 answered on 15 Aug 2013
1 answer
155 views
Hi, I have a rad grid with some custom filters (multi-select drop down boxes).  I also have some custom filters which are boolean drop down types.  When I use the regular filters and then the custom filter, it will filter by the regular filters, and then filter by the custom filter.  But if I use the custom filter first and then any of the other filters, it wipes out all of the filters.  I could fix this by not using a filter type of "Custom", but if I use the regular string filtering offered by the rad grid, it does the comparison:

     ["Column"] Like '%value%' 

when what I actually want (since it is a multi-select dropdown, whose filter expression evaluates to String1, String2, String3) is

     Value Like '%[Column]%' 

Any help is much appreciated:

Here is how I do the custom filtering:

       
protected void MarkPickListResultGrid_ItemCommand(object source, GridCommandEventArgs e)
     {
         if (e.CommandName == RadGrid.FilterCommandName)
         {
             ListResultGrid.MasterTableView.CurrentPageIndex = 0;
             string columnUniqueName = (e.CommandArgument as Pair).Second.ToString();
              
             GridFilterColumn column = ListResultGrid.MasterTableView.Columns.FindByUniqueNameSafe("Type") as GridFilterColumn;
 
             if ((e.CommandArgument as Pair).First.ToString() == "Custom")
             {
                 List<string> filters = column.CurrentFilterValue.Split(',').ToList();
                 var predicate = PredicateBuilder.False<PickListMark>();
                 foreach (string filter in filters)
                 {
                     predicate = predicate.Or(r => filter.Contains(r.MarkType.MarkTypeName));
                 }
                 ListResultGrid.MasterTableView.DataSource = PickListMark.Where(predicate.Compile()).ToList();
                 ListResultGrid.MasterTableView.Rebind();
                 return;
             }
             
              
         }
     }


Edit:  Would it be a better idea to treat them all as custom and loop through all the columns in the above function and apply all the columns to the predicate and then filter the results?  
Eyup
Telerik team
 answered on 15 Aug 2013
3 answers
152 views
Hi
I am using a RadListView to display items of three similar object types (Member, Position, Substitute), and use code-behind to show/hide fields within the templates depending on the type of the object. So far, I have view and edit working fine, using a UserControl that detects the object type,and updates the display accordingly. My problem occurs when I try to add.

I have three buttons on the form, one for adding each object type, firing different commands for each type - AddMember, AddPosition, AddSubstitute. When the command is fired, I create an empty object of the required type, and use the RadListView's ShowInsertItem method with the object parameter overload.

My question is, how can I access this object from my asp.net markup, so I can pass it through to the UserControl that defines the fields to use?

In the EditTemplate, I can simply use something like:

<scid:EditControl runat="server" ID="EditObject" Member="<%# (BaseMemberCommon)Container.DataItem %>"/>

However, in the InsertTemplate, the Container object doesn't have a DataItem property.

Can anyone help?
Thanks




Angel Petrov
Telerik team
 answered on 15 Aug 2013
3 answers
112 views
Greetings,
I am trying to implement a work schedule using rad scheduler tool.
Everything went good so far until I tried to implement drag and drop on engineer schedule.
I use onAppointmentDataBound to color daily shifts, nothing else.
and to get the information of "start and end times" as well as task id..etc, I am using onAppointmentUpdate at code behind, however I am experiencing a problem such as change in the text of appointment and change the time and color of existing tasks and tooltips of the engineer.
Notice in the screenshots, i am trying to move a task to 17:00 for the same engineer, but scheduler places the task into 15:30 while changing the daily shift (blue task) to something else
In the demos, I couldn't find any examples to specifically handle the drag and drop to avoid such problems.
Any help would be appreciated
Kind regards
Emrah
Plamen
Telerik team
 answered on 15 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?