Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
76 views
I have this editor on a page:

<telerik:RadEditor ID="editorPageContent" runat="server" EditModes="HTML"
Width="1000px" Height="550px" BorderStyle="None" Content='<%# Eval("PageContent") %>'
ToolsFile="~/Forms/EditorToolBar/SynopsisTools.xml" ContentFilters="None">
<ImageManager ViewPaths="~/PublicImages" UploadPaths="~/PublicImages" 
DeletePaths="~/PublicImages" EnableImageEditor="true" MaxUploadFileSize="20971520" />
<MediaManager  ViewPaths="~/PublicImages" UploadPaths="~/PublicImages" 
DeletePaths="~/PublicImages"  MaxUploadFileSize="20971520"/>
</telerik:RadEditor>

and when I upload this text:

<div class="hidden">
    <!-- Header -->
    <div id="header">
        <div class="area">
            <ul class="language">
                <li><a href="javascript:LoadPageContent('Home');"><img src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/UK.gif" alt="UK"/></a></li>
                <li><a href="javascript:LoadPageContent('HomeDE');"><img src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/germany.gif" alt="Germany"/></a></li>
            </ul>
        </div>
        <div class="relax"> </div>
        <div class="box">   
            <div class="area">
            <div class="title">
                <span class="gotham-bold">Mundipharma IT Services, Company launch</span>
                <span class="gotham-black">Winter 2011 | Wednesday 30 November to Friday 2 December</span>
            </div>
            <a href="#" class="logotype"><img src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/logotype.gif" alt="MITS Lauch"/></a>
            </div>
        </div>      
    </div>                                     
    <!-- Content -->
    <div id="content">
        <div class="area">
            <div class="main-pic">
                <div class="sidebar ">                      
                    <div class="pos-top"><h1><span>One vision.</span>Be a part of it.</h1></div>
                    <a href="#" class="pos-bottom"><img src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/mundi-pharma.png" alt="mundi pharma"/></a>                        
                </div>
                <div class="relax"> </div>
            </div>
            <div class="main-content">              
                <div class="quote">
                    <img src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/left-quote.gif" alt="left quote"/>
                    <span>From outdoor<br/>adventure to glitz and<br/>glamour, hold on tight<br/>as we take you on a<br/>winter wonderland<br/>journey through<br/>Switzerland</span>
                    <img src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/right-quote.gif" alt="right-quote"/> 
                    <div class="relax"> </div>
                </div>
                <div class="relax"> </div>
                <ul class="list">
                    <li><a href="javascript:LoadPageContent('FAQ');">Find out more about the event<span class="arrow"> </span></a></li>
                    <li><a href="javascript:openRadWinRegistration();">Register online now to attend the event<span class="arrow"> </span></a></li>
                    <li><a href="javascript:openRadWinDeclineInvite();">I cannot attend the event<span class="arrow"> </span></a></li>         
                </ul>           
            </div>
        </div>
    </div>
</div>

It is displayed as this:

<DIV class=hidden><!-- Header -->
<DIV id=header>
<DIV class=area>
<UL class=language>
<LI><A href="javascript:LoadPageContent('Home');"><IMG alt=UK src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/UK.gif"></A
<LI><A href="javascript:LoadPageContent('HomeDE');"><IMG alt=Germany src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/germany.gif"></A> </LI></UL></DIV>
<DIV class=relax> </DIV>
<DIV class=box>
<DIV class=area>
<DIV class=title><SPAN class=gotham-bold>Mundipharma IT Services, Company launch</SPAN> <SPAN class=gotham-black>Winter 2011 | Wednesday 30 November to Friday 2 December</SPAN> </DIV><A class=logotype href="#"><IMG alt="MITS Lauch" src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/logotype.gif"></A> </DIV></DIV></DIV><!-- Content -->
<DIV id=content>
<DIV class=area>
<DIV class=main-pic>
<DIV class="sidebar ">
<DIV class=pos-top>
<H1><SPAN>One vision.</SPAN>Be a part of it.</H1></DIV><A class=pos-bottom href="#"><IMG alt="mundi pharma" src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/mundi-pharma.png"></A> </DIV>
<DIV class=relax> </DIV></DIV>
<DIV class=main-content>
<DIV class=quote><IMG alt="left quote" src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/left-quote.gif"> <SPAN>From outdoor<BR>adventure to glitz and<BR>glamour, hold on tight<BR>as we take you on a<BR>winter wonderland<BR>journey through<BR>Switzerland</SPAN> <IMG alt=right-quote src="http://elenco.napp.co.uk/PublicImages/MITSLaunch/right-quote.gif"
<DIV class=relax> </DIV></DIV>
<DIV class=relax> </DIV>
<UL class=list>
<LI><A href="javascript:LoadPageContent('FAQ');">Find out more about the event<SPAN class=arrow> </SPAN></A
<LI><A href="javascript:openRadWinRegistration();">Register online now to attend the event<SPAN class=arrow> </SPAN></A
<LI><A href="javascript:openRadWinDeclineInvite();">I cannot attend the event<SPAN class=arrow> </SPAN></A> </LI></UL></DIV></DIV></DIV></DIV>

What is appears to have done is stripped out all the double quotes (") from all the class properties, which when I then insert the content into a web page causes the page not to work...

Any ideas?

Cheers
Cliff
Rumen
Telerik team
 answered on 05 Oct 2011
2 answers
219 views
Hi all,

We recently added 3 VMs  to our Sharepoint Farm and installed Sharepoint 2007 on each, so 2 are WFEs and 1 is the index. (Note: old VMs also had Sharepoint 2007, 2 WFE and 1 Index)

Now the problem we noticed is that the Calibri Font in the page template has disappeared from the drop down box in our sharepoint site.  I have added the following to the ToolsFile, but the radeditor version(4.5.6.0) is not picking up the Calibri Font.  Even when I remove the following from ToolsFile, i can still see the default fonts but not Calibri. Attached screenshot of the toolbar.

 <fontnames>
      <item name="Tahoma"/>
      <item name="Times New Roman"/>
      <item name="MS Sans Serif"/>
      <item name="Calibri"/>
      <item name="Verdana"/>
      <item name="Arial"/>
      <item name="Courier New"/>
    </fontnames>

I have also added the following to the CssEditor file (Note: this csseditor file i just copied from old farm)

BODY
{
    font-family:Calibri !important;
}


  I would really appreciate your help.  Thanks
Zack
Top achievements
Rank 1
 answered on 05 Oct 2011
5 answers
132 views
Hello,

I have a problem with RadComboBox control. In my project I have several of them with static Items list specified in aspx for each one. During the page load I'm supposed to set the selected item of those combo boxes according to data stored in a database (values of those radcomboboxes). This is where the problem begins. When I use RadComboBox.SelectedValue = somevalue; the radcombobox shows the Text of the 1st item in its list instead of the selected item's Text. If I click on the dropdown I can clearly see that for example a 3rd item in the list is selected but the actual Text value is coming from the 1st item in the list. Looking here: http://www.telerik.com/help/aspnet-ajax/combobox-items-server-side-code.html under SELECTING ITEMS it clearly says that I can select items using SelectedValue (which is the same behavior in standard ASP.NET controls) however RadComboBox gives me this issue which I'm not sure how to resolve.

Best regards.
Ivana
Telerik team
 answered on 05 Oct 2011
1 answer
108 views
I have a radgrid with all columns at template columns and grid is in editmode all the time. 
I need to capture row index changed event for each row so whenever user navigates from one row through other
I can validate existing row data before going to new row.
When I click through controls, onActiveRowChanged or onRowSelecting does not seem fire. How can I do that. Is there any client event to validate row
or something else like that.

Here is my client event markup on the grid.








   <ClientSettings Selecting-AllowRowSelect="true" KeyboardNavigationSettings-AllowActiveRowCycle="true">        <ClientEvents OnActiveRowChanged="RowChanged" OnRowSelected="RowChanged" />    </ClientSettings>










Mira
Telerik team
 answered on 05 Oct 2011
1 answer
105 views
Hello,

I have the below code and my combobox is getting disappeared on inline javascript call, but the aspx button has no any issue.

<

 

body>

 

 

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

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

 

 

<div>

 

 

<telerik:RadComboBox ID="ddlReportUserViews" runat="server" AutoPostBack="true" AllowCustomText="false"

 

 

AccessibilityMode="true" Skin="Outlook">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="1" Value="1" />

 

 

<telerik:RadComboBoxItem Text="2" Value="2" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

<asp:Button ID="btn1" runat="server" Text="Click" OnClientClick="alert('hi');" />

 

 

 

<script type="text/javascript" language="javascript">

 

alert(

'hi');

 

 

</script>

 

 

</div>

 

 

</form>

 

</

 

body>

Thanks

 

Kevin
Top achievements
Rank 2
 answered on 05 Oct 2011
3 answers
121 views
Hi. I'm looking for how to set the item demension at the bubble chart.
my datasource is like this.
Dim dataTableBubbleData = New DataTable()
    dataTableBubbleData.Columns.Add("Year")
    dataTableBubbleData.Columns.Add("Budget")
    dataTableBubbleData.Columns.Add("Profit")
 
    dataTableBubbleData.Rows.Add(New Object() {"2008", "7", "2"})
    dataTableBubbleData.Rows.Add(New Object() {"2009", "9", "4"})
    dataTableBubbleData.Rows.Add(New Object() {"2010", "7", "3"})
 
    GetBubbleData = dataTableBubbleData
End Function
 and i defined x , y axis on aspx page like this.
<telerik:RadChart ID="RadChartBubbleChart" SkinsOverrideStyles="true" runat="server"
                                    Width="800" Height="400">
                                    <ChartTitle>
                                        <TextBlock Text="Bubble Chart">
                                        </TextBlock>
                                    </ChartTitle>
                                    <PlotArea>
                                        <XAxis DataLabelsColumn="Year">
                                            <AxisLabel Visible="true">
                                                <Appearance Visible="True">
                                                </Appearance>
                                                <TextBlock Text="Year">
                                                </TextBlock>
                                            </AxisLabel>
                                        </XAxis>
                                        <YAxis AxisMode="Normal" MaxValue="12" AutoScale="false">
                                            <Appearance MinorTick-Visible="false" MinorGridLines-Visible="false">
                                                <MinorGridLines Visible="False"></MinorGridLines>
                                            </Appearance>
                                            <AxisLabel Visible="true">
                                                <Appearance Visible="True">
                                                </Appearance>
                                                <TextBlock Text="Budget">
                                                </TextBlock>
                                            </AxisLabel>
                                        </YAxis>
                                    </PlotArea>
                                    <Series>
                                        <telerik:ChartSeries DataYColumn="Budget" Type="Bubble" Name="money flow" Appearance-LabelAppearance-Visible="false">
                                            <Appearance>
                                                <LabelAppearance Visible="False">
                                                </LabelAppearance>
                                            </Appearance>
                                        </telerik:ChartSeries>
                                    </Series>
                                </telerik:RadChart>

ths code works fine indicating bubble. but  i don't know about setting each item's demension.
i wish to set demension value from "profit" datatable field.
Evgenia
Telerik team
 answered on 05 Oct 2011
1 answer
32 views
Hello Telerik Team,

The purpose of this Post is to have a clarification regarding my query.
As shown in the attachments(multiuserdayview and multiuserweekview) we can see that the users in radschedular in Multiuser view  are placed  horizontally but as per my requirement I want to display the users vertically as shown in the Required Day View and RequiredMultiUser MonthView attachments.
Is there any possible way to do so?
If yes in what way can we do it.
Request you to send  some sample code.                          

Wish you would reply to this mail as soon as possible.

Thanks & Regards,

A Ravi Kumar

Peter
Telerik team
 answered on 05 Oct 2011
1 answer
205 views

I am having a RadButton control placed outside the grid ,to delete the multiple selected rows from the grid ,
i have written Client side and Server Side Validation Functions to show Pop-Up if User clicks on Delete Button
without selecting any row from the grid saying "Please select item(s) to delete.!!" using Alert().

on doing so ,my Javascript Function gets executed and gives me the desired Alert PopUp ,on clicking ok button of the PopUp it does PostBack which causes Server Side Validation to fire,
Due to which i am getting 2 PopUps one from Client Side and another From Server Side Code one after the other.

Javascript Function is given below :-

function DeleteSelectedItems(sender, args) {
        var Count=0;
        var grid = $find("<%=grdSearchResults.ClientID %>");
        var masterTable = grid.get_masterTableView();
        for (var i = 0; i < masterTable.get_dataItems().length; i++) {
            var gridStatementElement = masterTable.get_dataItems()[i].findElement("chkSelect");
              
            if (gridStatementElement != null && gridStatementElement.checked==true) {
                Count = Count + 1;
            }
        }
        if (Count == 0) {     //This part is not working fine 
            alert("Please select item(s) to delete.!!") ;
            return false;
             
        }
        else if(Count>0){      //This is working Fine
            ConfirmDeletion(sender, args);
  
        }

Call to Javascript method from RadButton :-

<telerik:RadButton ID="btnDelete" runat="server" Visible="false"
                            Text="Delete"  OnClick="btnDelete_Click" OnClientClicking ="DeleteSelectedItems" >
                            <Icon PrimaryIconUrl="../Images/Common/Delete-icon.png" />
</telerik:RadButton>

I want to stop this additional PostBack so that my Server side validation will not fire.
Kevin
Top achievements
Rank 2
 answered on 05 Oct 2011
6 answers
253 views
Hi, I'm using NeedDataSource since I need to change the criteria according to selection in other controls. So I recreate a data source when conditions change and I do that in the NeedDataSource event handler. It works, but the pager does not update: if the previous criteria had, say, 25 records, it needed 3 pages, but if the new criteria returns 40 records, the pager sticks to 3, and only when I use it once, it updates to the new correct size of 4 pages.

I'm using the 3.5 version. How can I "help" the pager to make it update immediately?
Luciano Vernaschi
Top achievements
Rank 1
 answered on 05 Oct 2011
4 answers
55 views
Hello,

I have a problem.I Have 2 page and 1 usercontrol

Main.aspx
Gridview.aspx
Gridview.ascx


First page Main.aspx i have a html menu,onclick functions i call Gridview.aspx

Here :

callPage('Gridview.aspx','MENUID=" + MENUDT.Rows[j]["MENUID"].ToString() + "','contentdiv')

And my gridview.aspx:



 <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <uc1:Gridview ID="Gridview1" runat="server" />
    </div>


And gridview.ascx(User Control):


<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="gridList">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="gridList" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnGoster">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="lbl" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadGrid ID="gridList" runat="server" AllowFilteringByColumn="True" AllowSorting="True"
    EnableViewState="false" CellSpacing="0" GridLines="None" Culture="Turkish (Turkey)"
    Skin="Vista" AllowMultiRowSelection="True" AllowPaging="True" PageSize="30">
    <HeaderContextMenu>
    </HeaderContextMenu>
    <MasterTableView>
        <Columns>
            <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" />
        </Columns>
        <NoRecordsTemplate>
            Listelenecek kayıt bulunamadı.
        </NoRecordsTemplate>
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <ClientSettings EnableRowHoverStyle="True">
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <FilterMenu EnableImageSprites="False">
    </FilterMenu>
</telerik:RadGrid>
<asp:Button ID="btnGoster" runat="server" Text="RadButton" OnClick="btnGoster_Click">
</asp:Button>
<asp:Label ID="lbl" runat="server" Text="Label"></asp:Label>


Button click and radgrid functions not work but when i call the page localhost/MyProject/Gridview.aspx?MENUID=10

all functions work.

Thanks for helps.
Oguzhan
Top achievements
Rank 1
 answered on 05 Oct 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?