Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
81 views
Hi;
Just installed the new SP and when I start my app in IE9, I get the following error:
"Microsoft JScript runtime error: Unable to get value of the property 'Name': object is null or undefined"

The line # is 2099





And the following dialog pops up:
Sacha
Top achievements
Rank 1
 answered on 26 Jan 2012
1 answer
137 views
Hi,
   I have been trying to get this to work and need some help, I have a grid Template Column and have an expression to evaluate boolean values if its true or false in the Item Template, I need to filter on these values, how can I do this? In other Itemtemplate examples I have seen recommentdations to use Datafield but If i
use the
Datafield = "IsPrivateBank" ....it takes away the Filter from column header and just leaves a checkbox, since its taking it as a boolean value

and If I use the Expression in the datafield like

DataField = "<%# Convert.ToBoolean(Eval("IsPrivateBank")) == false ? "Federal" : "Private" %>"

this results in an error too. How can I filter on the values the user sees i.e "Federal" or "Private"  Please provide code example with your help, thanks in advance!!



<telerik:GridTemplateColumn HeaderText="Type" HeaderStyle-HorizontalAlign="Left" HeaderStyle-VerticalAlign="Bottom" ItemStyle-HorizontalAlign="Left" SortExpression="IsPrivateBank">   
    <ItemTemplate>   
        <asp:Label ID="lblBankType" runat="server" Text='<%# Convert.ToBoolean(Eval("IsPrivateBank")) == false ? "Federal" : "Private" %>'></asp:Label>   
    </ItemTemplate>   
</telerik:GridTemplateColumn>  
Jayesh Goyani
Top achievements
Rank 2
 answered on 26 Jan 2012
3 answers
107 views
Hi,

I have genuine Telerik controls. I added it to my Visual Studio and they're working fine. Now I want to add the Rad-Editor to SharePoint List as Rich Text  Field. I have come across with these instructions. It seems i.e I need wsp file to get  RadEditor in List Items .I searched in my installed folders of Telerik controls but I don't find any wsp file.Can any one tell me how can I get this wsp file or from where can I get this wsp file.
Rumen
Telerik team
 answered on 26 Jan 2012
1 answer
98 views
Hi,
 I need to to show the appointment count for each day (preferably in the day header area) in the month/week view. I don't see a template area for the day header and the resource header template won't suffice. I just wanted to know if it was possible using the RadScheduler.

Thanks,
Ximor.
Ivana
Telerik team
 answered on 26 Jan 2012
1 answer
121 views
Hi,

Im using Rad ajax manager, RadAjaxLoadingPanel in my webform.

I have two panels in my form, Panel1 is having Create account controls and  another Panel2 is for Thank you notes.

When user created an account successfully i need to hide Panel 1 and show Panel 2.
Im using ResponseEnd method to do make visible/hide using Javascript below method.

 function ResponseEnd(sender, arguments) {
  //hide the loading panel and clean up the global variables 
               
                if (currentLoadingPanel != null) {
                    currentLoadingPanel.hide(currentUpdatedControl);
                }
               ShowTY();
               currentUpdatedControl = null;
               currentLoadingPanel = null;
               
}

  function ShowTY(){
                   document.getElementById('<%= Panelty.ClientID %>').style.visibility = "visible";
                    document.getElementById('<%= Panelty.ClientID %>').style.display = "block";
                    document.getElementById('<%= Panelsu.ClientID %>').style.visibility = "false";
                    document.getElementById('<%= Panelsu.ClientID %>').style.display = "none";
  }

If user already exist or any db server error i need show Panel1 display error message in a Label 
For this I need to write a condition to check whether server response succeeded or not in the above method.

Please let me know how i can know the server response or how i can handle this issue.....
Please reply soon

Thanks

  

Andrey
Telerik team
 answered on 26 Jan 2012
1 answer
97 views
Hi,

I am having a problem with RadAjaxManager and when displaying an Ajaxified ToolTip in a rad grid.  It is based on this example http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx .  The OnAjaxUpdate event fires but the user control doesnt display in the tooltip (the tooltip just disappears).

I believe the issue is coming with the asp panel (we needed this as it didnt display a loading panel).

Regards

Can anyone help. Code is as follows.

<%@ Page Title="" Language="C#" MasterPageFile="~/App_Templates/Local/WorkforceLayoutContainer.Master" AutoEventWireup="true" CodeBehind="AllJobsNew.aspx.cs" Inherits="WorkforceManagementModule.orders.AllJobsNew" %>
<%@ Register Src="~/user_controls/FilterButtonsControl.ascx" TagName="FilterButtons"
    TagPrefix="user" %>
<%@ Register src="~/user_controls/LazyDropdown.ascx" tagname="LazyDropdown" tagprefix="user" %>
<asp:Content ID="Content1" ContentPlaceHolderID="InstanceHeader" runat="server">
    <title>PHJones | Pilot Portal</title>
    <link href="/styles/global.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
            $('#tablewrapper').width(($(window).width() - 240) + 'px');


            $('#GlobalContent_InstanceContent_filterButtons_btnFind').bind('click', function () { Validation(); });


            $('#navsliderbutton').bind('click', function () {




                if (menuHidden) {
                    $('#tablewrapper').animate({ width: ($(window).width() - 50) + 'px' }, 'slow');
                    $('#rgMasterTable').animate({ width: ($(window).width() - 50) + 'px' }, 'slow');
                }
                else {
                    $('#tablewrapper').animate({ width: ($(window).width() - 240) + 'px' }, 'slow');
                    $('#rgMasterTable').animate({ width: ($(window).width() - 240) + 'px' }, 'slow');
                }


            });


            $(window).resize(function () {
                if (menuHidden) {
                    $('#tablewrapper').animate({ width: ($(window).width() - 50) + 'px' }, 'slow');
                    $('#rgMasterTable').animate({ width: ($(window).width() - 50) + 'px' }, 'slow');
                }
                else {
                    $('#tablewrapper').animate({ width: ($(window).width() - 240) + 'px' }, 'slow');
                    $('#rgMasterTable').animate({ width: ($(window).width() - 240) + 'px' }, 'slow');
                }
            });


            var hdnValue = $("#<%= hdnShowAdvancedFilter.ClientID %>").val();


            if (hdnValue == 'false') {
                $('#advancedfilter').attr('class', 'advancedfilter-hidden');
            } else {
                $('#advancedfilter').attr('class', 'advancedfilter-shown');
            }


            function toggleAdvancedFilter() {
                if ($('#advancedfilter').attr('class') == 'advancedfilter-hidden') {
                    $('#advancedfilter').attr('class', 'advancedfilter-shown');
                }
                else {
                    $('#advancedfilter').attr('class', 'advancedfilter-hidden');
                }
            }


            function Validation() {




            }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="InstanceContent" runat="server"> 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Modal="true" Width="750"
        Height="550" Skin="WebBlue">
    </telerik:RadWindowManager>
    <telerik:RadWindow ID="RadWindow1" runat="server" Width="720" Height="580" VisibleOnPageLoad="false"
        ShowContentDuringLoad="false" KeepInScreenBounds="true">
    </telerik:RadWindow>


    <telerik:RadAjaxLoadingPanel ID="LoadPanel1" runat="server" Skin="WebBlue"></telerik:RadAjaxLoadingPanel>
   <telerik:RadToolTipManager ID="RadToolTipManager1" OffsetY="-1" HideEvent="ManualClose"
        Width="250" Height="350" runat="server" EnableShadow="true" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Element"
        Position="MiddleRight" Skin="WebBlue">
    </telerik:RadToolTipManager>
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pnlFilter">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlFilter" LoadingPanelID="LoadPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadGridJobNumber" />
                    <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                    <telerik:AjaxUpdatedControl ControlID="AllJobsLazyToolTip" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGridJobNumber">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGridJobNumber" LoadingPanelID="LoadPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                    <telerik:AjaxUpdatedControl ControlID="AllJobsLazyToolTip" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadToolTipManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGridJobNumber"/>
                    <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />
                    <telerik:AjaxUpdatedControl ControlID="AllJobsLazyToolTip" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function RequestStart(sender, eventArgs) {
            var eventTarget = eventArgs.get_eventTarget();
            alert(eventTarget);
        }
    </script>
</telerik:RadCodeBlock>


    <asp:Panel ID="pnlFilter" runat="server">
        <div class="SearchForm">
            <asp:HiddenField ID="hdnShowAdvancedFilter" runat="server" Value="false" />
            <div class="ContentLeft">
                <p>
                    <asp:Label ID="lblJobNumber" runat="server" Text="Job Number" CssClass="formLabel" />
                    <span class="commenttext">Enter the Pilot or Client Job Number</span>
                    <asp:TextBox ID="txtJobNumber" runat="server" CssClass="formFieldText" Style="width: 90%;" />
                </p>
            </div>
            <div class="ContentMiddle">
                <p>
                    <asp:Label ID="lblRepairOrderType" runat="server" Text="Work Order Type" CssClass="formLabel" />
                    <span class="commenttext">Select Job Type</span>
                    <user:LazyDropdown ID="ddlJobType1" runat="server" AllowCustomText="true" Filter="StartsWith" AutoPostBack="true"></user:LazyDropdown>
                   
                    <p>
                    </p>
                   
                </p>
            </div> 
            <div class="ContentMiddle"> 
                <p>
                    <asp:Label ID="lblJobStatus" runat="server" CssClass="formLabel" Text="Job Status" />
                    <span class="commenttext">Select Job Status</span>
                    <user:LazyDropdown ID="ddlJobStatus1" runat="server" AllowCustomText="true" Filter="StartsWith" AutoPostBack="true"></user:LazyDropdown>
                    <p>
                    </p>
                </p>
            </div>
            
        <div class="ContentMiddle" id="NALevel" runat="server" visible="false">
            <p>
                <asp:Label ID="lblNALevel" runat="server" CssClass="formLabel" Text="NA Level" />
                <span class="commenttext">Select NA Level</span>
                <user:LazyDropdown ID="ddlNALevel1" runat="server" AllowCustomText="true" Filter="StartsWith"></user:LazyDropdown>
                <p>
                </p>
            </p>
        </div>
        <div class="ContentRight">
            <p>
                <asp:Label ID="lblAddress" runat="server" Text="Search" CssClass="formLabel" />
                <span class="commenttext">Enter the Address, Postcode or Propref</span>
                <asp:TextBox ID="txtAddressSearch" runat="server" CssClass="formFieldText" Style="width: 90%;" />
            </p>
        </div>
       
        <a href="#" onclick="javascript:toggleAdvancedFilter();" class="advancedfilter-button">Advanced Filter</a>
    </div>
    <div id="advancedfilter" class="advancedfilter-hidden">
        <div class="ContentMiddle">
            <p>
                <asp:Label ID="Label1" runat="server" CssClass="formLabel" Text="Origin" />
                <span class="commenttext">Select Job Origin</span>
                <user:LazyDropdown ID="ddlOrigin1" runat="server" DataTextField="RepairOrigin" DataValueField="RepairOrigin" AllowCustomText="true" Filter="StartsWith" Width="100px"></user:LazyDropdown>
           
                <p>
                </p>
           
            </p>
        </div>
        <div class="ContentMiddle">
            <p>
                <asp:Label ID="Label2" runat="server" CssClass="formLabel" Text="Priority"></asp:Label>
                <span class="commenttext">Select Priority</span>
                <user:LazyDropdown ID="ddlPriority1" runat="server" AllowCustomText="true" DataTextField="Code" DataValueField="Code" Filter="StartsWith"></user:LazyDropdown>
               
                <p>
                </p>
               
            </p>
        </div>
        <div class="ContentMiddle">
            <p>
                <asp:Label ID="Label3" runat="server" CssClass="formLabel" Text="Trade Code" />
                <span class="commenttext">Select Trade Code</span>
                <user:LazyDropdown ID="ddlTradeCode1" runat="server" DataTextField="Description" DataValueField="Code" AllowCustomText="true" Filter="StartsWith"></user:LazyDropdown>
               
                <p>
                </p>
               
            </p>
        </div>
         <div class="ContentMiddle">
            <p>
                <asp:Label ID="lblPropClass" runat="server" CssClass="formLabel" Text="Property Class" />
                <span class="commenttext">Select Property Class</span>
                 <user:LazyDropdown ID="ddlPropClass1" runat="server" AllowCustomText="true" Filter="StartsWith"  Width="120px"></user:LazyDropdown>
             
                <p>
                </p>
             
            </p>
        </div>
        <div class="ContentMiddle">
            <p>
                <asp:Label ID="Label4" runat="server" CssClass="formLabel" Text="Date Booked" />
                <span class="commenttext">Select Date</span>
                <telerik:RadDatePicker ID="txtBookedDate" runat="server" Style="margin-left: 15px; margin-top:-15px !important;" Skin="WebBlue"/>
            </p>
        </div>
        <div class="ContentMiddle">
            <p>
                <asp:Label ID="Label5" runat="server" CssClass="formLabel" Text="Target From Date" />
                <span class="commenttext">Select From Date</span>
                <telerik:RadDatePicker ID="txtTargetDateFrom" runat="server" Style="margin-top:-15px !important; margin-left: 15px;" Skin="WebBlue"/>
            </p>
        </div>
        <div class="ContentMiddle">
            <p>
                <asp:Label ID="Label6" runat="server" CssClass="formLabel" Text="Target To Date" />
                <span class="commenttext">Select To Date</span>
                <div style="clear: both;"></div>
                <telerik:RadDatePicker ID="txtTargetDateTo" runat="server"  style="margin: -15px 0 0 14px;" Skin="WebBlue" />
                
                <p>
                </p>
                
            </p>
        </div>
        <div class="ContentMiddle">
            <p>
                <asp:Label ID="lblTargetCreate" runat="server" Text="Target Date" CssClass="formLabel" />
                <span class="commenttext">Select choice</span>
                <asp:RadioButtonList ID="rdTargetCreate" runat="server" style="margin: -15px 0 0 14px;">
                    <asp:ListItem Text="Attend By" Value="Near" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="Complete By" Value="Complete"></asp:ListItem>
                </asp:RadioButtonList>
            </p>
        </div>
        <div class="ContentMiddle">
            <p>
                <asp:Label ID="lblRaisedDate" runat="server" Text="Raised Date" CssClass="formLabel" />
                <span class="commenttext">Filter by raised date</span>
                <telerik:RadDatePicker ID="rdRaisedDate" runat="server"  style="margin: -15px 0 0 14px;" Skin="WebBlue" />
            </p>
        </div>
    </div>
  
    
    <user:FilterButtons ID="filterButtons" runat="Server" OnFindEvent="btnFind_Click" ShowClear="True" /></asp:Panel>    
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="WebBlue" />


    
    <telerik:RadGrid ID="RadGridJobNumber" runat="server" AllowSorting="true" AutoGenerateColumns="false"
            AllowCustomPaging="true" AllowPaging="True" PageSize="50" Skin="WebBlue" GridLines="None"
            OnNeedDataSource="RadGridJobNumber_NeedDataSource" OnItemDataBound="RadGridJobNumber_ItemDataBound"
            Width="100%">
            <GroupingSettings CaseSensitive="false" />
            <MasterTableView DataKeyNames="OrderID, Property.PropRef, Contract" OverrideDataSourceControlSorting="true">
                <Columns>
                    <telerik:GridButtonColumn CommandName="ViewProperty" ButtonType="ImageButton" ImageUrl="~/images/icons/house.png"
                        Text="View Property" HeaderText="" Reorderable="False">
                        <ItemStyle CssClass="ImageOptionGrid" />
                        <HeaderStyle Width="30" />
                    </telerik:GridButtonColumn>
                    <telerik:GridButtonColumn CommandName="Schedule" ButtonType="ImageButton" ImageUrl="~/images/icons/calendar_add.png"
                        Text="Schedule Job" HeaderText="" Reorderable="False" UniqueName="Schedule">
                        <ItemStyle CssClass="ImageOptionGrid" />
                        <HeaderStyle Width="30" />
                    </telerik:GridButtonColumn>
                    <telerik:GridButtonColumn CommandName="EditJob" ButtonType="ImageButton" ImageUrl="~/images/icons/application_form_edit.png"
                        Text="Edit Works Order" HeaderText="" Reorderable="False">
                        <ItemStyle CssClass="ImageOptionGrid" />
                        <HeaderStyle Width="30" />
                    </telerik:GridButtonColumn>
                    <telerik:GridTemplateColumn DataField="OrderID" AllowFiltering="false" HeaderText="Job No"
                        SortExpression="ORDERID" UniqueName="ORDERID">
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("OrderID","ViewOrderNew.aspx?OrderID={0}") %>'><%# DataBinder.Eval(Container, "DataItem.OrderID")%></asp:HyperLink>
                        </ItemTemplate>
                        <HeaderStyle Width="40" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="ClientRef" AllowFiltering="false" HeaderText="Client Job Number"
                        UniqueName="ClientJobNumber">
                        <HeaderStyle Width="80" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Property.FullAddress" HeaderText="Address" UniqueName="Address">
                        <HeaderStyle Width="100" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn FilterControlWidth="40" DataField="Status" HeaderText="Job Status" AllowFiltering="true" SortExpression="Status"
                        UniqueName="JobStatus">
                        <ItemTemplate>
                            <%#(string)Eval("Status")=="NA" ? string.Format("{0} {1}",Eval("Status"),Eval("NoAccessVisitCount")) : Eval("Status") %>
                        </ItemTemplate>
                        <HeaderStyle Width="80" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="Contract" AllowFiltering="false" HeaderText="Contract"
                        UniqueName="Contract">
                        <HeaderStyle Width="50" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="RaisedDate" AllowFiltering="false" HeaderText="Raised Date"
                        UniqueName="RAISEDDATE">
                        <HeaderStyle Width="50" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlWidth="20" DataField="RepairOrigin" HeaderText="Origin"
                        UniqueName="Origin">
                        <HeaderStyle Width="30" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlWidth="20" DataField="TradeCode" HeaderText="Trade"
                        UniqueName="TradeCode" >
                        <HeaderStyle Width="30" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FilterControlWidth="20" DataField="Priority" HeaderText="Priority"
                        UniqueName="PRIORITY">
                        <HeaderStyle Width="30" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Property.Postcode" HeaderText="Postcode" UniqueName="Postcode"
                        FilterControlWidth="40">
                        <HeaderStyle Width="40px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Engineer.ID" FilterControlWidth="50" HeaderText="Assigned To"
                        UniqueName="AssignedTo">
                        <HeaderStyle Width="100" />
                    </telerik:GridBoundColumn>                   
                    <telerik:GridBoundColumn DataField="BookedDate" HeaderText="Booked Date" SortExpression="BookedDate" FilterControlWidth="50"
                        UniqueName= "BookedDate" DataFormatString="{0:dd/MM/yyyy}">
                        <HeaderStyle Width="50" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn FilterControlWidth="40" UniqueName="TimeSlot" HeaderText="Time Slot">
                        <HeaderStyle Width="80" />
                        <ItemTemplate>
                            <%#String.IsNullOrEmpty(((string)Eval("TimeSlot"))) ? "N/A" : Eval("TimeSlot") %>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn FilterControlWidth="50" HeaderText="Target Date" UniqueName="TargetDate" SortExpression="CompleteDateTime">
                        <HeaderStyle Width="50" />
                        <ItemTemplate>
                           <%#(Eval("TargetDate","{0:d}"))%><br />
                           <%#(Eval("TargetDate","{0:t}"))%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            <PagerStyle AlwaysVisible="true"/></MasterTableView>
        </telerik:RadGrid>


</asp:Content>

protected void RadGridJobNumber_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            if (e.RebindReason.Equals(GridRebindReason.InitialLoad))
                return;


            var rg = ((RadGrid) sender);
            var r = GetRequest();
            r.pageIndex = rg.CurrentPageIndex;
            r.pageSize = rg.PageSize;
            rg.DataSource = svcWorkOrder.ListAllJobSearchRequest(r);
            rg.VirtualItemCount = svcWorkOrder.CountAllJobSearchRequest(r);


        }
        protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
        {
            this.UpdateToolTip(args.Value, args.UpdatePanel);
        }
        private void UpdateToolTip(string elementID, UpdatePanel panel)
        {
            Control ctrl = Page.LoadControl("../user_controls/AllJobsLazyToolTip.ascx");
            panel.ContentTemplateContainer.Controls.Add(ctrl);
            AllJobsLazyToolTip details = (AllJobsLazyToolTip)ctrl;
            details.OrderID = elementID;
        }
        protected void RadGridJobNumber_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
            {
                Control target = e.Item.FindControl("HyperLink1");
                if (!Object.Equals(target, null))
                {
                    if (!Object.Equals(this.RadToolTipManager1, null))
                    {
                        //Add the button (target) id to the tooltip manager
                        this.RadToolTipManager1.TargetControls.Add(target.ClientID, (e.Item as GridDataItem).GetDataKeyValue("OrderID").ToString(), true);
                    }
                }
            }
        }
Andrey
Telerik team
 answered on 26 Jan 2012
1 answer
59 views
Hi,
I have purchased new license for Telerik Ajax 2011 Q3 and my old one was 2010 Q3, i upgrade the current version from menu by selecting telerik tab and by clicking Upgrade wizard and then i configured the ajax also.
Now when send the set up file to the my site all the pop ups taking so much time to load and it is from when i upgraded the version.
How can i solve this problem please let me know.

Thanks & Regards,
Manoj Gupta.
Rumen
Telerik team
 answered on 26 Jan 2012
3 answers
108 views
I am new to Telerik. I have implemeted Telerik RadGrid, in that I have "Conatins" as the default Filtering option for all columns. But now I want it to be specific to some columns. Thats means for few columns I want "Contains" as the filtering option and for few I want "EqualTo" to be the filtering option. I have " Google Like " filtering, so no filter button next to the textbox feild to display the filter options. How can I achieve this ?

Please Help me out . Thanks.
Andrey
Telerik team
 answered on 26 Jan 2012
1 answer
137 views

I am working off of the demo code for Rad Grid drag and drop functionality, and I cannot seem to get any values in the DraggedItems collection on the RowDrop server event. 

In the following code, e.HtmlElement = "" and e.DraggedItems.Count = 0.  Has anyone run into the same issue?  Am I missing something here.  I do not need to use any of the client events, so nothing is being affected by OnRowDropping.  I am basically just dragging to reorder within the grid.  Any help would be appreciated.

 FYI, this grid is within a user control within an ASP.NET Ajax Tab Control, not the telerik tab control.  The UI does not reflect the item that I am dragging, when I am dragging it.  It just shows an thin line (like an empty row).  If I drag off of the grid, then select another item, and drag again, it will show an item being dragged and the code below works fine, then if I try again it does not.

 

Protected Sub grdQuoteDetails_RowDrop(ByVal sender As Object, ByVal e As GridDragDropEventArgs)
    If String.IsNullOrEmpty(e.HtmlElement) Then
        If e.DraggedItems(0).OwnerGridID = grdQuoteDetails.ClientID Then
            ' items are drag from quote details 
            If e.DestDataItem IsNot Nothing AndAlso e.DestDataItem.OwnerGridID = grdQuoteDetails.ClientID Then
                'reorder items in pending grid
                Dim pendingDetails As IList(Of Model.QuoteDetail)
                pendingDetails = PendingQuoteDetails
                Dim quoteDetail As Model.QuoteDetail = GetQuoteDetail(pendingDetails, DirectCast(e.DestDataItem.GetDataKeyValue("ID"), Integer))
                Dim destinationIndex As Integer = pendingDetails.IndexOf(quoteDetail)
                If ((e.DropPosition = GridItemDropPosition.Above) _
                        AndAlso (e.DestDataItem.ItemIndex > e.DraggedItems(0).ItemIndex)) Then
                    destinationIndex = (destinationIndex - 1)
                End If
                If ((e.DropPosition = GridItemDropPosition.Below) _
                        AndAlso (e.DestDataItem.ItemIndex < e.DraggedItems(0).ItemIndex)) Then
                    destinationIndex = (destinationIndex + 1)
                End If
                Dim detailsToMove As New List(Of Model.QuoteDetail)()
                For Each draggedItem As GridDataItem In e.DraggedItems
                    Dim tmpDetail As Model.QuoteDetail = GetQuoteDetail(pendingDetails, DirectCast(draggedItem.GetDataKeyValue("ID"), Integer))
                    If tmpDetail IsNot Nothing Then
                        detailsToMove.Add(tmpDetail)
                    End If
                Next
                For Each detailToMove As Model.QuoteDetail In detailsToMove
                    pendingDetails.Remove(detailToMove)
                    pendingDetails.Insert(destinationIndex, detailToMove)
                Next
                PendingQuoteDetails = pendingDetails
                grdQuoteDetails.Rebind()
            End If
        End If
    End If
End Sub

Andrey
Telerik team
 answered on 26 Jan 2012
2 answers
85 views
Hi,
Simple question. Is it possible to remove telerik styles? My purpose is to make it look with OS default style. Just like standard select element with not style enhancements. Sorry for my broken english. Thanks in advance.
Zÿm
Top achievements
Rank 1
 answered on 26 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?