Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
93 views

In radeditor, in design view,
When i highlight a hyperlink and set the color, it does not change. This is not the case in IE.
radeditor in firefox adds a font tag on the outside of the hyperlink where IE adds the font tag to the inside of the hyperlink.
When the font tag is on the outside of the hyperlink it gets ignored by all browsers.

How can I use firefox to conveniently change the font color of a hyperlink???

FIREFOX

<font color="#92d050"><a href="http://www.google.com/">click here</a></font>


IE
<a href="http://www.google.com/"><font color="#92d050click here</font></a>

Trevor
Rumen
Telerik team
 answered on 17 May 2011
1 answer
87 views
Hi
I need to set some string values for my chart X-Axis, Is this possible? I'm using 2010 Q1 Components.
Would you please help me in that? 
Shinu
Top achievements
Rank 2
 answered on 17 May 2011
1 answer
50 views
Hello,

I've got a problem with filtering string field using "between" and "not between" options from the standard available filter list. It just throw exception like "Operator '>=' incompatible with operand types 'Object' and 'String' (at index 20)"
ne.
I looked around the forum and I found out it can be "EnableLinqExpression" issue. So I add to my radGrid ( on the aspx page)
EnableLinqExpression=false. And all works fine!

Unfortunately another filter for the datetime field stoped working with "between" and "not between" options. This particular field filtering is handled separately by "OnItemCommand" (to allow filtering date without time).

What could be the best solution for this problem?

My telerik version is: 2008.3.1125.35

Thanks in advance,
Tom
 
Pavlina
Telerik team
 answered on 17 May 2011
1 answer
132 views
Hello,

I am opening an aspx page from a hyperlink in a RadWindow with the following markup:

 

<telerik:RadWindowManager ID="rwmCustomer" runat="server" ReloadOnShow="true" EnableViewState="false">
<Windows>
<telerik:RadWindow ID="rwCustomer" runat="server" Title="Find a customer" OpenerElementID='<%# Me.lnkCustomer.ClientID %>' NavigateUrl='<%# Me.lnkCustomer.NavigateUrl %>' />

 

 

</Windows>

 

</telerik:RadWindowManager>

 

<asp:HyperLink ID="lnkCustomer" runat="server" ToolTip="Search for a customer" NavigateUrl="someurl.aspx" />

The RadWindow opens up correctly in both IE 7 and Firefox 4.0.1. However, in Firefox, despite having MaintainScrollPositionOnPostback set to "true", the page scrolls back to the top but the RadWindow opens however far down the page the lnkCustomer link is placed, which means that users only see the very top of the RadWindow. Because the original page cannot be scrolled while the RadWindow is open, users therefore cannot use the RadWindow properly.

I would be grateful for any assistance.

Thanks in advance.

Georgi Tunev
Telerik team
 answered on 17 May 2011
1 answer
92 views
hi,

    when i create a non recurrence Appointment ,i can get the edited value with the code


    description = e.ModifiedAppointment.Description.ToString();

how can i get the edited value of  Recurrence appointment when updated
Veronica
Telerik team
 answered on 17 May 2011
1 answer
230 views
hi
i have a problem with this.

i have this code in the code behind = 
string href = @"<a class='tituloGrisClaro' href=""javascript:__doPostBack('getProduct','";

and  
this in the page load. 
  string argument = Page.Request.Params["__EVENTARGUMENT"];
  string target = Page.Request.Params["__EVENTTARGET"];

but the argument  and target always is empty

is there a way to reconcile telerik whith this?
thk

Georgi Tunev
Telerik team
 answered on 17 May 2011
1 answer
138 views

I'm using the RadMenu to show different UserControls, which are basically forms, that cause a PostBack when the buttons within them are clicked.  I had been using RadToolTips for these, but thought the RadMenu treatment looked better.  Now I'm wondering if maybe RadMenus aren't meant to be used this way?

Anyways, the problem I'm having is that whenever I execute a PostBack in the usercontrol, which is embedded in a RadMenuItem, it doesn't do a PostBack, and there is some Javascript error in the ScriptResource.axd that causes the page to become unstable - none of the controls seem to work after that until I reload the page.  I do have all of the RadMenus within an UpdatePanel, so Ajax is enabled and being used.  When I replace these menu items with tooltips, with the same usercontrols embedded within them, the postbacks DO work, so I'm just wondering if there is something I need to do in the command for these buttons because they are embedded in a RadMenuItem?  Here's an example of the code I use to add the UserControl to the RadMenuItem:

var followUp = menuSourceControl.FindItemByText("FollowUpScreen");
if(followUp != null)
{
    var followUpForm = LoadControl("~/controls/popups/FollowUpForm.ascx");
    ((FollowUpForm)followUpForm).RID = rid;
    followUp.Controls.Add(followUpForm);                
}

I couldn't find any mention or example of this on the site, but would welcome any guidance on this.

Thanks!
Eddie

Kate
Telerik team
 answered on 17 May 2011
5 answers
225 views
How do I get the client id drop down in a grid from within a javascript function?

Thank you

Regards
Raj
Shinu
Top achievements
Rank 2
 answered on 17 May 2011
1 answer
116 views

Hi all,

Hi all,

I'm using client side data-binding in a master-detail grid scenario.  The two grids are within an asp:form where the key in the form is in a hidden field.  The form key I use to filter the master and then the master row selected to filter the detail.

The problem I'm having is the master databind is being called multiple times even if the page is fully loaded.  It happens when the page is loaded and when I selected a row from the master.

I'm using a web service as a datasource.

Here's the Jscript.

function RadGrid1_DataBinding(sender, args) {
     
  }
  function RadGrid1_Command(sender, args) {
      // Handle the RadGrid's Command event here  
  }
  function RadGrid2_Command(sender, args) {
      // Handle the RadGrid's Command event here  
  }
  var ponumber = "";
  function RadGrid1_RowSelected(sender, args) {
      ponumber = args.get_tableView().extractKeysFromItem(args.get_gridDataItem().get_element())["ponumber"];
      rdPODet = $find('<%= rlMOView.FindControl("RadGrid2").ClientID %>');
      rdPODet.get_masterTableView().filter("ponumber", ponumber, "EqualTo");
  }
function RadGrid1_DataBound(sender, args) {
    var tableView = sender.get_masterTableView();
    // pull the MO data key to bind the details
   // var mfgOrdID = parseInt(document.getElementById('ctl00_MainContent_hdnMfgKey').value);
    var mfgOrdID = parseInt(document.getElementById('ctl00_MainContent_rlMOView_hdnMfgKey2').value);
    tableView.filter("mfgorderid", mfgOrdID, "EqualTo", true);
    var dataItems = tableView.get_dataItems();
    if (dataItems.length == 0) {
        args.set_cancel(true);
    } else {
       tableView.selectItem(0);
    }
}
function RadGrid2_DataBinding(sender, args) {
    if (ponumber === "") {
        args.set_cancel(true);
    }
}



Here's the web Service:
using System;
using System.Linq;
using System.Runtime.Serialization;
using System.Web.Services;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Collections.Generic;
using System.Collections;
using Telerik.Web.UI;
using System.Reflection;
  
namespace DataContracts
{
    [DataContract]
    public class MO_POHdr
    {
         [DataMember]
        public int MfgAssocDocID { get; set; }
        [DataMember]
        public int mfgorderid { get; set; }
        [DataMember]
        public string ponumber { get; set; }
        [DataMember]
        public string vendname { get; set; }
        [DataMember]
        public string vendorid { get; set; }
        [DataMember]
        public string country { get; set; }
        [DataMember]
        public string vndclsid { get; set; }
        [DataMember]
        public DateTime? docdate { get; set; }
        [DataMember]
        public string hold { get; set; }
        [DataMember]
        public string shipmthd { get; set; }
    }
  
    [DataContract]
    public class PODet
    {
        [DataMember]
        public string ponumber { get; set; }
        [DataMember]
        public string itemnmbr { get; set; }
        [DataMember]
        public decimal? qtyorder { get; set; }
        [DataMember]
        public string itemdesc { get; set; }
        [DataMember]
        public string postatus { get; set; }
        [DataMember]
        public string shipmthd { get; set; }
        [DataMember]
        public DateTime? released_date { get; set; }
        [DataMember]
        public DateTime? prmshpdte { get; set; }
        [DataMember]
        public DateTime? reqdate { get; set; }
    }
}
  
public class MyData
{
    public int Count { get; set; }
    public IList Data { get; set; }
}
  
[ServiceContract]
[ServiceKnownType("GetKnownTypes")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class GridMasterDetailsService
{
    public static IEnumerable<Type> GetKnownTypes(ICustomAttributeProvider provider)
    {
        List<Type> knownTypes = new List<System.Type>();
  
        knownTypes.Add(typeof(DataContracts.MO_POHdr));
        knownTypes.Add(typeof(DataContracts.PODet));
        return knownTypes;
    }
  
    [OperationContract]
    public MyData GetMOPOHdrDataAndCount(int startRowIndex, int maximumRows, string sortExpression, string filterExpression)
    {
        string fe = "";
        if (filterExpression != "")
        {
            fe = filterExpression.Replace("\"", string.Empty);
        }
        GridBindingData data = RadGrid.GetBindingData("AppDataClassesDataContext", "MO_POHdrs", startRowIndex, maximumRows, sortExpression, fe);
        MyData result = new MyData();
        result.Data = data.Data.OfType<MO_POHdr>().Select(c => new DataContracts.MO_POHdr()
        {
            MfgAssocDocID = c.MfgAssocDocID,
            mfgorderid = c.MfgOrderID,
            ponumber = c.ponumber,
            vendname = c.vendname,
            vendorid = c.vendorid,
            country = c.country,
            vndclsid = c.vndclsid,
            docdate = c.docdate,
            hold = c.hold,
            shipmthd = c.shipmthd
        }).ToList();
        result.Count = data.Count;
        return result;
    }
  
    [OperationContract]
    public MyData GetPODetDataAndCount(int startRowIndex, int maximumRows, string sortExpression, string filterExpression)
    {
        GridBindingData data = RadGrid.GetBindingData("AppDataClassesDataContext", "PODets", startRowIndex, maximumRows, sortExpression, filterExpression);
        MyData result = new MyData();
        result.Data = data.Data.OfType<PODet>().Select(o => new DataContracts.PODet()
        {
            ponumber = o.ponumber,
            itemnmbr = o.itemnmbr,
            qtyorder = o.qtyorder,
            itemdesc = o.itemdesc,
            postatus = o.postatus,
            shipmthd = o.shipmthd,
            released_date = o.released_date,
            prmshpdte = o.prmshpdte,
            reqdate=o.reqdate
        }).ToList();
        result.Count = data.Count;
        return result;
    }
}

Here are the grids:

<div style="width:715px;margin-bottom:5px;position:relative;">
                   <telerik:RadGrid ID="RadGrid1" runat="server"  AllowPaging="false" AllowSorting="false"  Height="100px" pagesize="200"  
                         AllowFilteringByColumn="false" GridLines="None" EnableEmbeddedSkins="false" Skin="WebBlue" ItemStyle-Font-Names="'segoe ui',arial,sans-serif;" ItemStyle-Font-Size="10px"
                              AlternatingItemStyle-Font-Names="'segoe ui',arial,sans-serif;"  AlternatingItemStyle-Font-Size="10px" HeaderStyle-Font-Names="'segoe ui',arial,sans-serif;"  HeaderStyle-Font-Size="10px">            
                         <MasterTableView ClientDataKeyNames="mfgorderid, ponumber" AllowMultiColumnSorting="false">
                           <CommandItemStyle CssClass="commViewCommand" />
                                 <ItemStyle CssClass="comments" />
                                 <AlternatingItemStyle CssClass="comments" />
                              <NoRecordsTemplate>
                               <div style="width:710px;">
                                 No assigned po details to display.</div>
                            </NoRecordsTemplate>
                             <Columns>
                                 <telerik:GridBoundColumn DataField="mfgorderid" ItemStyle-Width="0px" HeaderStyle-Width="0px"></telerik:GridBoundColumn>
                                 <telerik:GridBoundColumn DataField="ponumber" HeaderText="PO#" ItemStyle-Width="40px"  HeaderStyle-Width="40px"/>
                                 <telerik:GridBoundColumn DataField="vendname" HeaderText="Vendor" ItemStyle-Width="400px"  HeaderStyle-Width="400px"/>
                                 <telerik:GridBoundColumn DataField="vendorid" HeaderText="VID" ItemStyle-Width="40px"  HeaderStyle-Width="40px"/>
                                 <telerik:GridBoundColumn DataField="docdate" HeaderText="Doc Dt" DataFormatString="{0:MM/dd/yy}" ItemStyle-Width="35px"  HeaderStyle-Width="35px"/>
                                 <telerik:GridBoundColumn DataField="shipmthd" HeaderText="Ship Via"  ItemStyle-Width="100px"  HeaderStyle-Width="100px"/>
                             </Columns>
                         </MasterTableView>
                         <ClientSettings>
                             <DataBinding Location="GridMasterDetailsService.svc"  FilterParameterType="Linq"  
                                 SelectMethod="GetMOPOHdrDataAndCount" SortParameterType="Linq"
                             </DataBinding>
                             <ClientEvents OnRowSelected="RadGrid1_RowSelected" OnDataBound="RadGrid1_DataBound"   />
                             <Selecting AllowRowSelect="true"/>
                               <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" />
                                 
                         </ClientSettings>
                     </telerik:RadGrid>
                     </div>
                    
                  <div style="width:715px;margin-bottom:5px;position:relative;">
                         <telerik:RadGrid ID="RadGrid2" runat="server" AllowPaging="false" AllowSorting="True" Height="100px"
                             AllowFilteringByColumn="false" GridLines="None" PageSize="5" Skin="WebBlue" ItemStyle-Font-Names="'segoe ui',arial,sans-serif;" ItemStyle-Font-Size="10px"
                              AlternatingItemStyle-Font-Names="'segoe ui',arial,sans-serif;"  AlternatingItemStyle-Font-Size="10px" HeaderStyle-Font-Names="'segoe ui',arial,sans-serif;"  HeaderStyle-Font-Size="10px">            
                             <MasterTableView AllowMultiColumnSorting="true" TableLayout="Fixed" ClientDataKeyNames="ponumber">
                             <CommandItemStyle CssClass="commViewCommand" />
                                 <ItemStyle CssClass="comments" />
                                 <AlternatingItemStyle CssClass="comments" />
                                              <NoRecordsTemplate>
                               <div style="width:710px;">
                                 No assigned non received po item details to display.</div>
                            </NoRecordsTemplate>
                                             <Columns>
                                              <telerik:GridBoundColumn DataField="ponumber" HeaderText="PO#" ItemStyle-Width="40px"  HeaderStyle-Width="40px"/>
                                 <telerik:GridBoundColumn DataField="itemnmbr" HeaderText="Item#" ItemStyle-Width="100px"  HeaderStyle-Width="100px"/>
                                 <telerik:GridBoundColumn DataField="qtyorder" HeaderText="Qty"  ItemStyle-Width="30px"  HeaderStyle-Width="30px"/>
                                 <telerik:GridBoundColumn DataField="itemdesc" HeaderText="Desc" ItemStyle-Width="410px"   HeaderStyle-Width="410px"/>
                                     <telerik:GridBoundColumn DataField="prmshpdte" HeaderText="PS Date"  DataFormatString="{0:MM/dd/yy}" ItemStyle-Width="35px"   HeaderStyle-Width="35px"/>
                                         </Columns>
                                     </MasterTableView>
                                     <ClientSettings>
                                       <DataBinding Location="GridMasterDetailsService.svc"  FilterParameterType="Linq"   
                                 SelectMethod="GetPODetDataAndCount" SortParameterType="Linq"
                             </DataBinding>
                                         <ClientEvents OnDataBinding="RadGrid2_DataBinding"   />
                                           <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
                                 </Scrolling>
                                     </ClientSettings>
                                 </telerik:RadGrid>
                 </div>


Any ideas??

Thanks, Jim..

Marin
Telerik team
 answered on 17 May 2011
1 answer
101 views
Hi,

We have been experimenting with Raddock controls for our portal look on a dash board page. One of the requirements is that each RadDockZone in the layout will have different skin. When a Raddock is dragged from one zone to another it should look like every other control in the zone. One of the approaches I have tried is to change the skin of the Raddock control in DockPositionChanged event on server side. But it is not working. Any hint on how this can be accomplished would be appreciated.

Thanks,
Rao
Pero
Telerik team
 answered on 17 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?