Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
Hello,
I have a template column which contains a lookup label. Label takes text from dictionary by ID contained in column. Column also has a templated filter which contains a combobox. When I select new item from dropdown, filter command fires and column must be filtered by combobox's ItemValue which is GUID. I  must say there is an extension method in my solution called ToGuid() which I use to convert string values. And now, when filtering command passes to server, I get the following error:

Sys.WebForms.PageRequestManagerServerErrorException: No applicable method 'ToGuid' exists in type 'Convert' (at index 9) в Telerik.Web.UI.ExpressionParser.ParseMemberAccess(Type type, Expression instance) в Telerik.Web.UI.ExpressionParser.ParseTypeAccess(Type type) в Telerik.Web.UI.ExpressionParser.ParseIdentifier() в Telerik.Web.UI.ExpressionParser.ParsePrimary() в Telerik.Web.UI.ExpressionParser.ParseUnary() в Telerik.Web.UI.ExpressionParser.ParseMultiplicative() в Telerik.Web.UI.ExpressionParser.ParseAdditive() в Telerik.Web.UI.ExpressionParser.ParseComparison() в Telerik.Web.UI.ExpressionParser.ParseLogicalAnd() в Telerik.Web.UI.ExpressionParser.ParseLogicalOr() в Telerik.Web.UI.ExpressionParser.ParseExpression() в Telerik.Web.UI.ExpressionParser.ParseParenExpression() в Telerik.Web.UI.ExpressionParser.ParsePrimary() в Telerik.Web.UI.ExpressionParser.ParseUnary() в Telerik.Web.UI.ExpressionParser.ParseMultiplicative() в Telerik.Web.UI.ExpressionParser.ParseAdditive() в Telerik.Web.UI.ExpressionParser.ParseComparison() в Telerik.Web.UI.ExpressionParser.ParseLogicalAnd() в Telerik.Web.UI.ExpressionParser.ParseLogicalOr() в Telerik.Web.UI.ExpressionParser.ParseExpression() в Telerik.Web.UI.ExpressionParser.Parse(Type resultType) в Telerik.Web.UI.GridDynamicQueryable.Where(IQueryable source, String predicate, Object[] values) в Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() в Telerik.Web.UI.GridDataTableFromEnumerable.FillData() в Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() в Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) в Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) в Telerik.Web.UI.GridTableView.get_ResolvedDataSource() в Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) в System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) в System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) в Telerik.Web.UI.GridTableView.PerformSelect() в Telerik.Web.UI.GridTableView.DataBind() в Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) в System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) в Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) в System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) в Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) в Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) в System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I'm not sure whether this is an error in your code or mine or whatever else. Can you please check this out?
Thank you.
Tsvetina
Telerik team
 answered on 31 Aug 2011
1 answer
96 views
I've added an ASP.NET required validator on a Telerik textbox.  I've noticed that the validator reports the contents of the textbox to be empty when the screen is first rendered, even though the textbox was prepopulated with text from a database.  Refreshing the screen seems to make the validator recognize the text again.

I know telerik textboxes render as three input controls.  Could the validator be trying to read the wrong input control?

<!-- FULL NAME -->
<div class="FixedBlockCtrl" style="top:10px;left:60px;">   
    <asp:Label ID="lblFullNameB" cssclass="standardLabel" runat="server" 
        Text="Name *" ></asp:Label>
</div
<div class="FixedBlockCtrl" style="top:10px;left:100px;">    
<telerik:RadTextBox ID="txtFullNameB" Label="" 
        cssclass="standardTextbox"   runat="server" 
        Width="200px" >
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="reqFullNameB" runat="server" EnableClientScript="False" ControlToValidate="txtFullNameB"
ToolTip="First and last names required" Display="Dynamic" Text="*" 
ErrorMessage="Enter the first and last names of the coordinator" Enabled="true" ></asp:RequiredFieldValidator>    
</div>
<!-- EOF FIRST NAME -->

Iana Tsolova
Telerik team
 answered on 31 Aug 2011
5 answers
215 views
Hello,

Can I create the following table?

 

 

A

B

C

D

E

I

F

G

H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 
I would like to merge some of the columns.

Can you show me a sample code?


Thank you for your help.
Minkyu Lee.

Jason
Top achievements
Rank 1
 answered on 31 Aug 2011
1 answer
155 views
I'm using the keyboard controls for the RadGrid, however, when i hit enter on a line to edit it, i need it to go to a column that i specify.

The RadGrid has AutoGenerated Columns, and editting is in place.

I've been looking through the forums & KB for the resolution and i see demos and answers if you use an edit form.

I tried to use the following code to set the focus, but the focus isn't really set on the text box, and causes a javascript error when you stop editting.

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item.IsInEditMode)
            {
                string script = String.Format("$get('{0}').focus(); $get('{0}').select();", ((TextBox)e.Item.FindControl("ctl01")).ClientID);
                ScriptManager.RegisterStartupScript(Page, typeof(Page), "myscript", script, true);
            }
        }
Corey
Top achievements
Rank 1
 answered on 30 Aug 2011
2 answers
112 views
Hi,

i'm adding validator through the ItemCreated for the datetime column. The grid is giving me
Unable to cast object of type 'System.Web.UI.WebControls.Panel' to type 'System.Web.UI.WebControls.TableCell'.

the following is my c# code.

 

 

GridDateTimeColumnEditor editorStartTime = (GridDateTimeColumnEditor)item.EditManager.GetColumnEditor("StartRunTimeColumn");

 

cell = (

 

TableCell)editorStartTime.SharedTimeView.Parent;

 

RequiredFieldValidator

 

 

Validator =

 

new RequiredFieldValidator();

 

editorStartTime.SharedTimeView.ID =

 

"StartRunTimeColumn";

 

Validator.ControlToValidate = editorStartTime.TextBoxControl.ID;

Validator.BackColor = System.Drawing.

 

Color.Red;

 

Validator.ErrorMessage =

 

"*";

 

cell.Controls.Add(Validator);

Elliott
Top achievements
Rank 2
 answered on 30 Aug 2011
1 answer
79 views

 

 

hi all,

<
telerik:RadGrid ID="grid1" runat="server" GridLines="Both" HeaderStyle-Width="100px"

 

 

 

Width="500px" OnItemDataBound="grid1_ItemDataBound" CssClass="rgTwoLines"

 

 

 

Skin="Outlook" ItemStyle-HorizontalAlign="Left" AlternatingItemStyle-HorizontalAlign="Left"

 

 

 

MasterTableView-TableLayout="Fixed" Style="overflow: auto" >

 

 

 

<ClientSettings>

 

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="1">

 

 

 

</Scrolling>

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

Above is my code. i am using this to freeze column and also for static header. one of the problem is that, even though grid has one row the height has still same and shows with unneccessary white space in height.
But if many rows then it is working fine as what i expected. Please see image for reference.
Any solution for this?

 

Jayesh Goyani
Top achievements
Rank 2
 answered on 30 Aug 2011
1 answer
190 views
Hi,

We have just purchased the RadControls for ASP.Net/Ajax, and I am working in .Net 3.5.

I have a radmenu nested in a splitter that's working fine in IE, but the dropdowns are not overlaying in Chrome.

aspx Code:

<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="PMRep._Default" %>

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 <html xmlns="http://www.w3.org/1999/xhtml">

 <head id="Head1" runat="server">

<title></title>

<link href="Styles.css" rel="stylesheet" type="text/css" />

<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="http://localhost/favicon.ico" />

<style type="text/css">

.menuPanes

{

overflow: visible !important;

}

.TelerikModalOverlay

{

filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=10) !important;

background: blue !important;

opacity: .1 !important;

-moz-opacity: .1 !important;

}

</style>

</head>

 <body>

 <form id="form1" runat="server">

 <telerik:RadScriptManager ID="RadScriptManagerDefault" runat="server">

<Scripts>

<%

--Needed for JavaScript IntelliSense in VS2010--%>

<%

--For VS2008 replace RadScriptManager with ScriptManager--%>

<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />

<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />

<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />

</Scripts>

</telerik:RadScriptManager>

<script type="text/javascript">

//Put your JavaScript code here.

</script>

<telerik:RadAjaxManager ID="RadAjaxManagerDefault" runat="server">

</telerik:RadAjaxManager>

<telerik:RadSkinManager ID="RadSkinManagerDefault" runat="server">

</telerik:RadSkinManager>

<div>

<telerik:RadSplitter ID="RadSplitterTop" runat="server" Orientation="Horizontal" Width="100%"

Height="32px">

<telerik:RadPane ID="RadPaneTop" runat="server">

<div style="position: relative; z-index: 100;">

<telerik:RadMenu ID="RadMenuHome" runat="server" Height="30px" Width="100%" Visible="True"

OnItemClick="RadMenuHome_ItemClick" OnItemCreated="RadMenuHome_ItemCreated"

OnItemDataBound="RadMenuHome_ItemDataBound" EnableShadows="true" ExpandDelay="5"

EnableOverlay="true" EnableTheming="true" EnableRoundedCorners="true">

</telerik:RadMenu>

</div>

</telerik:RadPane>

</telerik:RadSplitter>

<telerik:RadSplitter ID="RadSplitterMain" runat="server" Orientation="Vertical" Height="880px"

Width="100%">

<telerik:RadPane ID="MainPane" runat="server" Width="100%">

<telerik:RadMultiPage ID="RadMultiPageMainPane" runat="server" SelectedIndex="0">

<telerik:RadPageView ID="RadPageViewMain" runat="server" BackColor="Transparent" Height="800">

</telerik:RadPageView>

</telerik:RadMultiPage>

</telerik:RadPane>

</telerik:RadSplitter>

</div>

</form>

</body>

</html>

 

c#:
using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.HtmlControls;

using System.Windows.Forms;

using System.Web.Security;

using System.Data;

using System.Drawing;

using Telerik.Web.UI;

 

namespace

PMRep

{

public partial class _Default : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

FillRadMenuHome();

if (Request.QueryString["repGrp"] != null)

RadPageViewMain.ContentUrl = "/Reports/" + Request.QueryString["repGrp"].ToString() + "/Default.aspx";

if (Request.QueryString["repID"] != null)

Application["repID"] = Request.QueryString["repID"].ToString();

if (!IsPostBack)

{

RadSkinManagerDefault.Skin = RadSkinManagerDefault.GetSkinChooser().SelectedValue;

}

}

 

private void FillRadMenuHome()

{

PMRep.DataAccess.AppStructure.BuildMenu bm = new PMRep.DataAccess.AppStructure.BuildMenu();

DataTable dt = bm.DataSetMenuItems();

 

RadMenuHome.DataSource = dt;

RadMenuHome.DataTextField = "MenuItemText";

RadMenuHome.DataValueField = "MenuItemID";

RadMenuHome.DataNavigateUrlField = "MenuItemURL";

RadMenuHome.DataFieldID = "MenuItemID";

RadMenuHome.DataFieldParentID = "MenuItemParentID";

RadMenuHome.EnableShadows = true;

RadMenuHome.DataBind();

 

RadMenuItem btnHome = new RadMenuItem(); 

btnHome.Text = "Home";

btnHome.NavigateUrl = "../Default.aspx";

RadMenuHome.Items.Insert(0, btnHome);

 

RadMenuItem pmlogo = new RadMenuItem();

pmlogo.ImageUrl = "/Images/pmlogo.gif";

RadMenuHome.Items.Add(pmlogo);

 

RadMenuItem chooseritem = new RadMenuItem();

HtmlGenericControl div = new HtmlGenericControl("div");

RadSkinManagerDefault.ShowChooser = true;

div.Controls.Add(RadSkinManagerDefault);

chooseritem.Controls.Add(div);

RadMenuHome.Items.Insert(RadMenuHome.Items.Count, chooseritem);

 

RadMenuItem btnLogout = new RadMenuItem();

btnLogout.Text = "Log Out";

btnLogout.Style.Add("float", "right");

RadMenuHome.Items.Add(btnLogout);

}

 

protected void RadMenuHome_ItemCreated(object sender, RadMenuEventArgs e)

 

{

}

 

protected void RadMenuHome_ItemDataBound(object sender, RadMenuEventArgs e)

 

{

}

 

protected void RadMenuHome_ItemClick(object sender, RadMenuEventArgs e)

 

{
if (e.Item.Text == "Log Out")

{

 

FormsAuthentication.SignOut();

Response.Redirect(Request.RawUrl);

}

}

 

}

}


I've also noticed that the float: right doesn't seem to be rendering properly in chrome.  I'd actually like the logout and skin chooser menu items to be aligned to the right, but I'm having issues with that too.  I have tried palying with the z-index but that doesn't seem to help.

Any help would be greatly appreciated.  Thanks!
Dawn
Top achievements
Rank 2
 answered on 30 Aug 2011
7 answers
116 views
Hi!
I've written some code that will enable/disable buttons and context menu options based on certain conditions on the folders. I started out with the sample found here http://www.telerik.com/community/forums/aspnet-ajax/file-explorer/prevent-delete-of-top-folder.aspx but have refactored out the event hookups to javascript like this: (instead of hooking them in the aspx markup of the File Explorer control)

Sys.Application.add_load(function (sender, args) {   
    $('.RadFileExplorer_Default').each(function () {
        var id = $(this).attr('id');
        var oExplorer = $find(id);
 
        OnClientFolderChange(oExplorer);
        oExplorer.add_folderLoaded(OnClientFolderChange);
        oExplorer.add_folderChange(OnClientFolderChange);
        oExplorer.add_itemSelected(OnClientItemSelected);
 
        oExplorer.get_tree().add_contextMenuShown(OnClientContextMenuShown);
    });   
});

The problem I have is that after any kind of moving files and folders through drag and drop operations in the file explorer the ContextMenuShown event doesn't trigger any more so all options are available in the menu for all folders. The events for the File Explorer still works though.

Any help on this is appreciated.
Dobromir
Telerik team
 answered on 30 Aug 2011
1 answer
118 views
I have a C#.NET page setup with a left and right RadPane. The left pane contains several radgrids situated in a RadPanelBar. (similar to an Outlook layout). In the RadPanelBar i have three RadPanelItems: one RadPanelItem contains a customer RadGrid, the second contains a customer Query Builder Form with three buttons and the third RadPanelItem contains two Grids. Those two grids contain info about saved queries and any lookup results, respectively. Here are the grid names for easy reference going forward (code will be provided below).

customerGrid, existingQueryGrid, custQueryResultsGrid

I have a RadToolTipManger assigned to customerGrid on ItemDatabound to display customer info on mouseover. I also have a separate RadToolTipManager for existingQueryGrid (also assigned target controls on databound) so the user can mouseover the saved lookup by name and view the lookup filter details.

I also have two user controls setup in the right side RadPane which contain radgrids with their own RadToolTipManager connections working in a similar way.

Scenario 1) When one submits a lookup from the query form, it populates existingQueryGrid (tooltips are bound on page load) and/or the custQueryResultsGrid depending on the query request ("save", "save and lookup" or just "lookup").Upon completion of the AJAX, any grids that were not Rebound no longer have the RadToolTips working. For example if one hits the "save" command then only the existingQueryGrid  is updated (since they only wanted to save the query) and therefore ToolTips are recreated and include a new record (works fine); however, since the customerGrid was not rebound here, the ToolTip for that Target Control set is no longer working.

Scenario 2) When one clicks a record from customerGrid, it loads the contact information into the user controls in the right pane and all the ToolTips are initialized and working when the respective user control Radgrids for Accounting and Product info are first bound. At this point the ToolTIp on the customerGrid is no longer functioning, and if  any other type of command is performed on customerGrid  like paging or filtering, the user control RadGrid ToolTips for the Accounting and Product  are no longer functiong until they are paged or sorted (at which point it works again).

All RadGrids and their respective tooltips are placed in the RadAjaxManager (and RadAjaxManager Proxy for user controls) settings so when one updates, the tooltip also should update. I am providing some relevant code:

MAIN PAGE (CLIENT SIDE)


<telerik:RadToolTipManager ID="RadToolTipManagerCustomer" Skin="Windows7" Width="300"
      OffsetX="5" Height="120" ShowDelay="500" runat="server" RelativeTo="Mouse" Position="MiddleRight"
      HideEvent="LeaveTargetAndToolTip" OnClientBeforeShow="RadToolTipCustomerBeforeShow" EnableViewState="false">
  </telerik:RadToolTipManager>
   <telerik:RadToolTipManager ID="RadToolTipQueryInfo" Skin="Windows7" Width="300"
      OffsetX="5" Height="120" ShowDelay="500" runat="server" RelativeTo="Mouse" Position="MiddleRight"
      HideEvent="LeaveTargetAndToolTip" OnClientBeforeShow="RadToolTipQueryInfo"  EnableViewState="false">
  </telerik:RadToolTipManager>
  <telerik:RadAjaxManager ID="RadAjaxManagerCRM" runat="server" OnAjaxRequest="RadAjaxManagerCRM_AjaxRequest">
      <AjaxSettings>
          <telerik:AjaxSetting AjaxControlID="customerGrid">
              <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="customerGrid" LoadingPanelID="RadAjaxLoadingPanelCRM" />
                  <telerik:AjaxUpdatedControl ControlID="RadToolTipManagerCustomer" />
        </UpdatedControls>
          </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="existingQueriesGrid">
            <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="existingQueriesGrid" LoadingPanelID="RadAjaxLoadingPanelCRM"/>
                   <telerik:AjaxUpdatedControl ControlID="RadToolTipQueryInfo" />
            </UpdatedControls>
          </telerik:AjaxSetting>
          <telerik:AjaxSetting AjaxControlID="custQueryResultsGrid">
            <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="custQueryResultsGrid" LoadingPanelID="RadAjaxLoadingPanelCRM"/>
                   <telerik:AjaxUpdatedControl ControlID="RadToolTipManagerCustomer" />
            </UpdatedControls>
          </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="btnSaveQry">
             <UpdatedControls>
               <telerik:AjaxUpdatedControl ControlID="existingQueriesGrid" LoadingPanelID="RadAjaxLoadingPanelCRM"/>
               <telerik:AjaxUpdatedControl ControlID="RadToolTipQueryInfo" />
               <telerik:AjaxUpdatedControl ControlID="qryBuilderFormUpdate" LoadingPanelID="RadAjaxLoadingPanelCRM" />
             </UpdatedControls>
          </telerik:AjaxSetting>
          <telerik:AjaxSetting AjaxControlID="btnSaveAndLookup">
               <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="existingQueriesGrid" LoadingPanelID="RadAjaxLoadingPanelCRM"/>
                  <telerik:AjaxUpdatedControl ControlID="RadToolTipQueryInfo" />
                  <telerik:AjaxUpdatedControl ControlID="custQueryResultsGrid" LoadingPanelID="RadAjaxLoadingPanelCRM"/>
                  <telerik:AjaxUpdatedControl ControlID="RadToolTipManagerCustomer" />
                  <telerik:AjaxUpdatedControl ControlID="qryBuilderFormUpdate" LoadingPanelID="RadAjaxLoadingPanelCRM" />
               </UpdatedControls>
          </telerik:AjaxSetting>
          <telerik:AjaxSetting AjaxControlID="btnLookup">
           <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="custQueryResultsGrid" LoadingPanelID="RadAjaxLoadingPanelCRM"/>
                  <telerik:AjaxUpdatedControl ControlID="RadToolTipManagerCustomer" />
                  <telerik:AjaxUpdatedControl ControlID="qryBuilderFormUpdate" LoadingPanelID="RadAjaxLoadingPanelCRM" />
             </UpdatedControls>
          </telerik:AjaxSetting>
      <telerik:AjaxSetting AjaxControlID="RadAjaxManagerCRM">
              <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="customerGrid" LoadingPanelID="RadAjaxLoadingPanelCRM" />
                  <telerik:AjaxUpdatedControl ControlID="existingQueriesGrid" />
                  <telerik:AjaxUpdatedControl ControlID="custQueryResultsGrid" LoadingPanelID="RadAjaxLoadingPanelCRM" />
                  <telerik:AjaxUpdatedControl ControlID="qryBuilderFormUpdate" LoadingPanelID="RadAjaxLoadingPanelCRM" />
                  <telerik:AjaxUpdatedControl ControlID="RadToolTipManagerCustomer" />
                  <telerik:AjaxUpdatedControl ControlID="RadToolTipQueryInfo" />
         </UpdatedControls>
          </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
  <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelCRM" EnableSkinTransparency="true"
      OnClientShowing="ClientShowingLoadingPanel" runat="server" Skin="Windows7">
  </telerik:RadAjaxLoadingPanel>

MAIN PAGE (SERVER SIDE for customerGrid)

protected void customerGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
    {
        if (Session["CurRepId"] != null)
        {
            ((RadGrid)CustomerGridPanelItem.FindControl("customerGrid")).DataSource = GetCompanies().Items;
        }
    }
 
protected void customerGrid_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
        {
           
            RadToolTipManagerCustomer.TargetControls.Add(((Telerik.Web.UI.GridTableCell)(e.Item.Controls[5])).ClientID, argument, true);
       
        }
    }
 
protected void customerGrid_ItemCommand(object source, GridCommandEventArgs e)
    {
        if (e.CommandName == "Sort" || e.CommandName == "Page" || e.CommandName == "Filter")
        {
            RadToolTipManagerCustomer.TargetControls.Clear();
         }
      
        if ((e.CommandName == "Filter"))
        {
            foreach (GridColumn column in e.Item.OwnerTableView.Columns)
            {
                column.CurrentFilterValue = string.Empty;
                column.CurrentFilterFunction = GridKnownFunction.NoFilter;
            }
        }
    }

 

MAIN PAGE (SERVER SIDE for existingQueryGrid)

protected void existingQueriesGrid_ItemCommand(object source, GridCommandEventArgs e)
 {
      if (e.CommandName == "Sort" || e.CommandName == "Page" || e.CommandName == "Filter")
      {
          RadToolTipQueryInfo.TargetControls.Clear();
       }
  
      if (e.CommandName == "RemoveQry")
      {
          deleteCustomQuery(Convert.ToInt32(e.CommandArgument));
          ((RadGrid)existingQueries.FindControl("existingQueriesGrid")).MasterTableView.Rebind();
      }
  }
  
protected void existingQueriesGrid_ItemDataBound(object source, GridItemEventArgs e)
  {
      if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
      {
          
         RadToolTipQueryInfo.TargetControls.Add(((Telerik.Web.UI.GridTableCell)(e.Item.Controls[4])).ClientID,fltrArg,true);
      }
  }
 
Let me know if you need more information or code. The above code pertains to Scenario 1 but I believe once we solve (1),
we will solve (2).

Thanks in advance


Marin Bratanov
Telerik team
 answered on 30 Aug 2011
10 answers
273 views
I'm having an issue with style and formatting specifically with the docks - under localhost the style and formatting works as expected.  When I use my machine name to access the site under development the formatting goes out the door.

I've removed all css file references and put the style within the page and put inline style attributes to try and force the format.

Anything off the top of your head that might come to mind?

TIA,
-vic
Travis
Top achievements
Rank 1
 answered on 30 Aug 2011
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?