Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
474 views
Hello, my problem is that I can't write in the content area of the RadEditor.


The situation is that I've a RadWindow with a RadEditor inside it (ContentAreaMode='Div', custom skin, EditModes 'Design' only) and it works (lets the user write in) in Google Chrome, but not in Firefox (IE not tested). Is there any known reason for this?. An example of what I'm saying is (the page is a content page):

<asp:Content ContentPlaceHolderID="cphContenido" runat="server">

    <table width="100%">
        <thead>
            <tr class="rwContentTitle">
                <th>...</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <fieldset>
                        <rad:RadEditor ID="reTextoCampo" runat="server"
                            ContentAreaMode="Div"
                            EditModes="Design"
                            EnableEmbeddedBaseStylesheet="false"
                            EnableEmbeddedSkins="false"
                            Height="375"
                            MaxTextLength="500"
                            Skin="XXXX"
                            Width="100%">
                            <Tools>
                                <rad:EditorToolGroup>
                                    <rad:EditorTool Name="Cut" />
                                    <rad:EditorTool Name="Copy" />
                                    <rad:EditorTool Name="Paste" />
                                </rad:EditorToolGroup>
                            </Tools>
                            <Modules>
                                <rad:EditorModule Name="RadEditorStatistics" Visible="true" />
                            </Modules>
                        </rad:RadEditor>
                            
                    </fieldset>
....

Thanks in advance.

PD: I forgot to say that the page is the content of the RadWindow :D...
Slav
Telerik team
 answered on 25 Mar 2013
10 answers
264 views
Hi,

I am using combox which is loaded via webservice on demand. I am noticing that its very slow. From the moment i type something in a combo till it reaches webservice at server there is a delay of around 3 seconds. Even the "Loading.." text is not shown rapidly. 

Here is the code:

<telerik:RadComboBox ID="radList" Runat="server" EnableEmbeddedSkins="False" Skin="search" Width="120px" NoWrap="True" Height="200px" DropDownWidth="225px" EnableLoadOnDemand="true" 
OnClientItemsRequesting="OnClientItemsRequesting" ItemRequestTimeout="2000"   
OnClientSelectedIndexChanged="onChanged"   
EnableViewState="false" LoadingMessage="Loading..." EmptyMessage="Type to get results" 
>   
 
<WebServiceSettings Method="GetItems" Path="~/WebServices/Search.asmx" />   
</telerik:RadComboBox> 
 


And the javascript function called:

function OnClientItemsRequesting(sender, eventArgs)  
 
{   
 
 
var text = eventArgs.get_text();   
 
if( text.length < 3)   
 
{   
 
eventArgs.set_cancel(true);   
 
}  
 
else{   
 
var context = eventArgs.get_context();  
 
context["FilterString"] = text;   
 
}  
}

This is the only thing that I do for defining the conotrol. Is there any way to improve the perfomance, as 3  seconds just to get to server is really slow.

My second question is there a way to change mode of combo to textbox?

Thanks in advance for your help.

Best regards,

Khurram

Nencho
Telerik team
 answered on 25 Mar 2013
3 answers
133 views
Hi,

I have a RadCalendar control with AjaxManager on my page.  Everything seems to work fine.  I have one problem with Javascript error and it doesn't clear stated what it is.  All it said is "Unknown Runtime Error".  When I click on ASP.NET, it saved my changes and closed the window.  However, it also gave me a runtime error in Javascript from the following line of code in RadCalendar.js file.  Please let me know what am I missing here?

if

(_9==RadCalendarUtils.RENDERINCOLUMNS&&_c){

for

(i=0;i<this.Cols;i++){

var

_37=_2.rows[_36].cells[_14+i];

if

(this.isNumber(_37.innerHTML)){

_37.innerHTML=_15[i];    ///This is where I have the error. 

Radoslav
Telerik team
 answered on 25 Mar 2013
1 answer
199 views
Hey,

Help!! i need to disable the collapse in the pivot grid is that possible?!!
if not , can i customize the sum when i collapse to sum two columns only of three not all of them ?!

Thanks
Galin
Telerik team
 answered on 25 Mar 2013
4 answers
192 views
Hi,

I am trying to achive the splitter button as in the image file attached. Do i need to change the css for this
Vessy
Telerik team
 answered on 25 Mar 2013
1 answer
122 views
I am running into some strange issue with edit form in edititemtemplate of a grid.
Using edit form to insert new records and when the form appears its visible under the boundary of the grid only.
Or it will be under the grid which i will have to scroll to see because right under the grid is another grid.

This was working fine before i applied latest release of AJAX Controls but now the pop ups are hidden behind containers. and controls.


<telerik:RadGrid ID="CurrentSalesRepRadGrid" runat="server" CellSpacing="0" GridLines="None"
                            AllowAutomaticInserts="True" AutoGenerateColumns="False" DataSourceID="SalesRepSQLDS" style="z-index:9000">
                            <MasterTableView CommandItemDisplay="Top" DataSourceID="SalesRepSQLDS" EditMode="PopUp">
                                <CommandItemSettings ExportToPdfText="Export to PDF" AddNewRecordText="Take Over\Assign this Item" />
                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                                </ExpandCollapseColumn>
                                ...... Clolumns
                                <EditFormSettings EditFormType="Template" PopUpSettings-Width="700px">
                                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                    </EditColumn>
                                    <FormTemplate>
                                        <table border="1" style="width: 458px">
                                            <tr>
                                                <td class="style2">
                                                    Select SalesRep :
                                                </td>
                                                <td>
                                                    <telerik:RadComboBox ID="SalesRepRadComboBox" runat="server" AutoPostBack="True"
                                                        DropDownWidth="700px" EnableItemCaching="True" EnableLoadOnDemand="True" EnableVirtualScrolling="True"
                                                        Height="190px" HighlightTemplatedItems="True" ItemRequestTimeout="500" OnItemsRequested="SalesRepRadComboBox_ItemsRequested"
                                                        OnLoad="SalesRepRadComboBox_Load" Text='<%# Session["userId"] %>' ShowMoreResultsBox="True"
                                                        Width="330px" OnSelectedIndexChanged="SalesRepRadComboBox_SelectedIndexChanged">
                                                        <CollapseAnimation Duration="200" Type="OutQuint" />
                                                        <HeaderTemplate>
                                                            <ul>
                                                                <li class="col0">ID</li>
                                                                <li class="col1">Name</li>
                                                                <li class="col2">e-Mail</li>
                                                                <li class="col3">Company</li>
                                                            </ul>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <ul>
                                                                <li class="col0">
                                                                    <%# DataBinder.Eval(Container.DataItem, "UserId") %></li>
                                                                <li class="col1">
                                                                    <%# DataBinder.Eval(Container.DataItem, "FullName") %></li>
                                                                <li class="col2">
                                                                    <%# DataBinder.Eval(Container.DataItem, "email1") %></li>
                                                                <li class="col3">
                                                                    <%# DataBinder.Eval(Container.DataItem, "Account") %></li>
                                                            </ul>
                                                        </ItemTemplate>
                                                    </telerik:RadComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style2">
                                                    Selected As SalesRep :
                                                </td>
                                                <td class="style2">
                                                    <asp:Label ID="SalesRepSelectedLabel" runat="server" OnLoad="SalesRepSelectedLabel_Load"></asp:Label>
                                                    <br />
                                                    <asp:Label ID="SalesRepLabel" runat="server" Text='<%# Bind("userId") %>' OnLoad="SalesRepLabel_Load2"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style2">
                                                    Notes For Changing Sales Rep
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="SalesRepChangingNotesTextBox" runat="server" Text='<%# Bind("Note") %>'
                                                        Height="51px" TextMode="MultiLine" Width="330px"></asp:TextBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <asp:Button ID="Button1" runat="server" Text="Take over item" Width="100%" CommandName="PerformInsert"
                                            OnClick="Button1_Click2" />
                                        <br />
                                    </FormTemplate>
                                    <PopUpSettings Width="700px" />
                                </EditFormSettings>
                            </MasterTableView>
                            <FilterMenu EnableImageSprites="False">
                            </FilterMenu>
                        </telerik:RadGrid>

Milena
Telerik team
 answered on 25 Mar 2013
1 answer
240 views
I'm looking for an example on how to make  RadGrid Load on demand  in  Scroll.....

Thank You....
Galin
Telerik team
 answered on 25 Mar 2013
1 answer
129 views
I'm using version Q1 2013.

Skin the tool created a SkinBuilder with all components.

How best to deploy within my project?

Today I RadSkinManager - ShowChooser = "True" and he blames for all grids, panels etc. automatically.

I have to put this on the list of skins skin?

Saw a shape to generate an assembly, which is seen more laborious, since all modified components.

Thank you.
Galin
Telerik team
 answered on 25 Mar 2013
9 answers
379 views
I have a grid that uses a couple of calculated columns to show percentage calculations.

Expression

="(({0} - {1}) / {0}) * 100"


Some of the column values that i use in my calculation can under certain circumstances have zero values. This obviously raises a divide by zero exception. I want in these instances to display a percentage of zero.

I dont seem able to intercept or handle the exception and set the cell value to 0 ( i.e perhaps at item databound event or similar).

Any suggestions as to how i can perform this - if not, i presume I will have to make the calculations in the database and bind as normal boundcolumns.

Kostadin
Telerik team
 answered on 25 Mar 2013
11 answers
1.2K+ views

Hi,

I have a grid with a bound column "Sales" and need to add a calculated column "Percentage" which will be the result of  Sales/Sum(Sales)*100. How can I accomplish this?

I've tried different ways but I can't get it to work. Below is an example of what i am trying to do...  

<telerik:GridBoundColumn DataField="Sales" DataType="System.Decimal" HeaderText="Sales"
 SortExpression="Sales" UniqueName="Sales" Aggregate="Sum">                 
</telerik:GridBoundColumn>
<telerik:GridCalculatedColumn HeaderText="Sales %" UniqueName="Percentage"
DataFields ="Sales, sum(Sales)" Expression="{0}/{1}" DataType="System.Double" Aggregate="Sum" >
</telerik:GridCalculatedColumn>

Thanks in advance,

Regards,
Sigi Perez
Kostadin
Telerik team
 answered on 25 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?