Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
162 views
Hi,

I am presented with an issue involving css font sizes in the RadEditor (Telerik.Web.UI version 2009.2.826.20) in use with a CMS site I'm developing - doctype is XHTML 1.0 Transitional. 

Font size is controlled by CSS settings of "small", "large", etc.

When the page's content is loaded into an instance of the RadEditor for editing, the font sizes all appear to be one larger than what is set by the CSS - small looks like medium, large looks like x-large, etc.  Colours, borders, etc all appear as intended.

Through trial and error it appears the cause of this issue is to do with the page's doctype.  When the doctype is XHTML 1.1 Transitional the issue is present, however when the doctype is changed to HTML 4.0 Transitional the font sizes on both the page and in the RadEditor are the same, albeit at the bigger size.

My question is, has anyone experienced this issue before or does anyone know what might be causing the problem and what steps to take to fix it?

Thanks in advance,

David.
David
Top achievements
Rank 1
 answered on 11 Oct 2010
5 answers
203 views
I have a telerik Radgrid. For all the columns I will attach the data using EMP object datasource. Only for one column I use itemTemplateColumn. For filling that column I have created a user control. Lets say I have Emp details in the grid. So, I need to get the Emp address details (other database table) into that template column. Now, I have to send the row specific  ID to the user control which has the paramter EMPID . Then in the user control, we connect to the table, use EmpID as parameter and retrieve the address details. We attach all the address details to the textbox which is present in the Usercontrol. So, this textbox should be present in all the rows under template column. Will it be possible to call the usercontrol in the aspx page.
Pams
Top achievements
Rank 1
 answered on 11 Oct 2010
2 answers
488 views

Given a ListView with an ItemTemplate, InsertItemTemplate, and EditItemTemplate, how can I access the controls in the EditItemTemplate before they are first displayed?

<telerik:RadListView ID="ContactsList" runat="server" DataSourceID="ContactsDataSource"   
            GroupItemCount="4"   
            DataKeyNames="EntityContactID" 
            OnItemEditing="ContactsList_ItemEditing" 
            AllowMultiItemEdit="false" 
            > 

ContactsDataSource is a LinqDataSource with EnableUpdate=true

            <ItemTemplate> 
                <asp:LinkButton ID="LinkButton1" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Name" ) %>'   
                        ForeColor="Blue" CommandName="Edit" CausesValidation="false" /> 
 


protected void ContactsList_ItemEditing(object sender, RadListViewCommandEventArgs e)  
    {  
        if (e.ListViewItem.ItemType == RadListViewItemType.DataItem)  
        {  
            RadListViewDataItem dataItem = (RadListViewDataItem)e.ListViewItem;  
             

Here, dataItem.DataItem is null, e.ListViewItem.FindControl() only finds controls in the ItemTemplate and not the EditItemTemplate and e.ListViewItem.IsInEditMode is false.

There is a LinkButton in the EditItemTemplate I need to access and modify before the edit form is shown to the user.
Erik
Top achievements
Rank 2
 answered on 10 Oct 2010
3 answers
722 views
I have a "Select Record" GridButtonColumn inside my grid.  I am hooking into the onclick event of that button to call a Javascript method, which works fine.  But in that method, I can't figure out how to determine which row was clicked.  SelectedItems is empty because my Javascript is being called before the grid selects the row.

And I can't use the onRowSelected event because I want my logic to occur only when they click on my grid button, not if they simply select a row by clicking the row in any area outside of my button.

In the server-side "ItemCreated" event, where my JavaScript call is constructed, I try passing the ClientRowIndex property of the GridButtonColumn data item, but it's always -1.

if (e.Item is GridDataItem)
{
    LinkButton lb = (LinkButton)(((GridDataItem)e.Item)["SelectRecord"].FindControl("ctl00"));
    lb.Attributes.Add("onclick", "return onSelectClient('" + LookupGrid.ClientID + "'," + e.Item.ClientRowIndex + ")");
}

Thanks.
Cory Benjamin
Top achievements
Rank 2
 answered on 10 Oct 2010
1 answer
74 views
hi
i want to use hierarchy property
in search i wrote these code:
  protected void btnSearch_Click(object sender, EventArgs e)
        {
            grdShareHolder.DataSource = ResultSearch().AsQueryable();
            grdShareHolder.DataBind();
            grdShareHolder.MasterTableView.DetailTables[0].DataSource = ResultNewSearch();
        }
 private IQueryable<CDSStockDataAccess.tS004RegistChange> ResultNewSearch()
        {
            IQueryable<CDSStockDataAccess.tS004RegistChange> shareHolders = CDSStockLogic.BusinessObjects.UI.RegistChanges.Retrieve(  ?????);
            return shareHolders;
        }

   private IQueryable ResultSearch()
        {
            CDSStockLogic.BusinessObjects.UI.MatchExpression expression = new CDSStockLogic.BusinessObjects.UI.MatchExpression();
            if (txtLastName.Text.Trim() != string.Empty)
                expression.FamilyExpression = string.Format("%{0}%", this.txtLastName.Text.Trim());
            if (txtBoorsCode.Text.Trim() != string.Empty)
                expression.BoorsCodeExpression = string.Format("%{0}%", this.txtBoorsCode.Text.Trim());
            if (txtFirstName.Text.Trim() != string.Empty)
                expression.NameExpression = string.Format("%{0}%", this.txtFirstName.Text.Trim());
            if (txtNationalCode.Text.Trim() != string.Empty)
                expression.NationalCode = string.Format("{0}", this.txtNationalCode.Text.Trim());
            if (txtID.Text.Trim() != string.Empty)
                expression.IDExpression = string.Format("{0}", this.txtID.Text.Trim());
            if (txtFatherName.Text.Trim() != string.Empty)
                expression.FatherNameExpression = string.Format("%{0}%", this.txtFatherName.Text.Trim());
            if (txtIdNo.Text.Trim() != string.Empty)
                expression.IdNo = string.Format("{0}", this.txtIdNo.Text.Trim());
            IQueryable shareHolders = CDSStockLogic.BusinessObjects.UI.ShareHolder.Retrieve(expression);
            return shareHolders;
        }
how can i get datakeyname in  ResultNewSearch?
please help
niloofar
Top achievements
Rank 1
 answered on 09 Oct 2010
0 answers
153 views
Hello all,

I have developed a publishing portal in sharepoint.I have a requirement wherein I need to create sitemap for the entire web application.

This should be dynamic, in the sense, whenever we update the contents of any given page in our web application, it should be reflected immediately in the sitemap page. What are the possible ways to achieve this and which is the best possible solution considering the scalability and easy configuration?

Thank you.
ramalingam
Top achievements
Rank 1
 asked on 09 Oct 2010
1 answer
80 views
Hello to all, can you help me please?
I want to show Panel after ComboBox is selected. I can't set AutoPostBack on Combo as True, so I always have -1 combo's SelectedIndex
How to check in PageLoad whether Combo is selected and then unhide Panel?
I found some example (http://www.telerik.com/community/forums/aspnet-ajax/combobox/combobox-not-firing-show-hide-panel.aspx) but can't adapt it (get some JavaScript code)
ToMa
Top achievements
Rank 1
 answered on 08 Oct 2010
5 answers
174 views
Hi,

I have problem for the decimal digits I have set.
Currently I have few setting for numerictextbox:
<telerik:radnumerictextbox skinid="Percentage" enableenbeddedskins="false" maxvalue="100" minvalue="0" numericformat-allowrounding="false" numericformat-decimaldigits="2"/>
<telerik:radnumerictextbox skinid="Decimal2Digits" enableenbeddedskins="false" maxvalue="100" minvalue="0" numericformat-allowrounding="false" numericformat-decimaldigits="2"/>
<telerik:radnumerictextbox skinid="Decimal4Digits" enableenbeddedskins="false" maxvalue="100" minvalue="0" numericformat-allowrounding="false" numericformat-decimaldigits="4"/>

The problem I face is that, even I have set numericformat-decimaldigits="2" or numericformat-decimaldigits="4", if I type 12.30, it will show me 12.3.

Is there a solution that it will show me exactly 2 decimaldigits (12.30) if I type, 12.3 or 12.30?
Or exactly 4 decimal digits (12.3330) if I type, 12.333 or 12.3330?

Carlos Contreras
Top achievements
Rank 1
 answered on 08 Oct 2010
0 answers
91 views
Can anybody tell me if there is a way to position the edit-form Popup for mvc grid to align to the center of the screen. Any help or suggestion is higly appreciated.

Thanks,
shabeer
Top achievements
Rank 1
 asked on 08 Oct 2010
1 answer
156 views

hi,

how to increase the radupload file size.
i am uploading file of 5 mb and it gives error.

please help.

please let me know how to increase file size so that it accept upto 25 mb file to attach.

waiting for your reply.

thanks in advance.
Cori
Top achievements
Rank 2
 answered on 08 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?