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><a href="http://www.google.com/"><font color="#92d050click here</font></a>
<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.
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
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);
}
}
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..