Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
162 views
I have a form where the user selects a value on a Radcombobox that has a PostbackUrl that is a different webpage.  The new webpage uses the information on the previouspage variable as the source of parameters for its Sqlserverdata sources.  The issue I'm having is that the process of opening the new webpage destroys the old one.  I don't see a target property on the Radcombobox.  Is there a way to get the webpage specified by the PostbackUrl to open as a new webpage?

Thanks,
William Corry
Top achievements
Rank 1
 answered on 15 Apr 2009
2 answers
75 views
Hi!
We're using Rad Editor Lite (v4.5.4) and we're encountering problem with Paste functionnality on IE 7 (no problem with FF or IE6).
To simply explain :
you copy a word, press shift enter (or enter) , paste your word, the word is copied after the current text, not on the new line /paragraph.
Doing the same with a space, or an other new line, 'solve' the problem. 
Is there a LF/CR problem with IE7?
regards

J.
Top achievements
Rank 1
 answered on 14 Apr 2009
1 answer
63 views
If anyone can offer assistance, I'd appreciate it very much.

I want to have a selected value chosen on page load for the Rad Editor FontName and FontSize.  However, even when I limit the FontName or FontSize collection manually to "Arial" and "7", for example, the default FontName is still Georgia on load of the control, and the FontSize is "3".

Any ideas?  Thank you!
Michael
Top achievements
Rank 1
 answered on 14 Apr 2009
2 answers
93 views
I have a multi-select combo box using checkboxes.

I have this code in the click event of the checkbox to set the text of the combo:

function

stopPropagation(e)

 

{

e.cancelBubble =

true;

 

 

if (e.stopPropagation)

 

{

e.stopPropagation();

}

 

 

var combo = $find("<%= RadComboBoxType.ClientID %>");

 

 

var selectedItemsTexts = "";

 

 

var selectedItemsValues = "";

 

 

 

var items = combo.get_items();

 

 

for (var i = 0; i < items.get_count(); i++)

 

{

 

var item = items.getItem(i);

 

 

var checkbox = item.get_element().getElementsByTagName("input")[0];

 

 

if (checkbox.checked)

 

{

selectedItemsTexts += item.get_text() +

", ";

 

selectedItemsValues += item.get_value() +

", ";

 

}

}

 

selectedItemsTexts = selectedItemsTexts.substring(0, selectedItemsTexts.length - 2);

selectedItemsValues = selectedItemsValues.substring(0, selectedItemsValues.length - 2);

 

 

combo.set_text(selectedItemsTexts);

 

 

//Clear the selection that RadComboBox has made internally.

 

 

if (selectedItemsValues == "")

 

{

combo.clearSelection();

}

}



I have multiple multi-select combos on my page and therefore I want to identify the sender combo and set text in that combo accordingly, instead of hardcoding the RadComboBox name.

How can I do that?
newbie
Top achievements
Rank 1
 answered on 14 Apr 2009
1 answer
138 views
Hi,

1) When i click on the date number in "month view", it will redirect me to day view page. 
Was it possible to disable this?  And also if it is possible to set the page that i want to be redirected to instead of day view page.

2) Currently when i click on the "subject /appointment" (hyperlink) in "month view" it will open a new window. If there will be always one appointment shown, was it possible to make the whole cell hyperlink itself? So that user can click the whole cell instead of just clicking on the "subject /appointment" (text).

http://server3.uploadit.org/files/carion-Queries.jpg 
Highlighted in Red refer to question 1)
Highlighted in Green refer to question 2)



T. Tsonev
Telerik team
 answered on 14 Apr 2009
3 answers
137 views
bool setIt = myLogic;  
var behavior = RadInputManager1.GetSettingByBehaviorID("BlankTest");  
foreach (Telerik.Web.UI.TargetInput item in behavior.TargetControls)  
{  
  if (item.ControlID == "medlemsnummer")  
    {  
    item.Enabled = setIt;  
    }  

Are there a "short hand", tried with LINQ - but no go?
Nikolay Rusev
Telerik team
 answered on 14 Apr 2009
2 answers
129 views
Hi

Like others in this forum I just can't get the progress area to show.
I have the simplest possible page:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="upload-test.aspx.vb" Inherits="admin_upload_test" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        <telerik:RadUpload ID="RadUpload1" runat="server" TargetFolder="~/sermons/"   
            Skin="Gray">  
        </telerik:RadUpload> 
          
            <asp:button ID="button1" runat="server" Text="Submit" OnClick="button1_Click" /> 
              
            <telerik:RadProgressManager id="Radprogressmanager1" skin="Gray" runat="server" /> 
              
            <telerik:RadProgressArea id="RadProgressArea1" skin="Gray" runat="server" /> 
    </div> 
    </form> 
</body> 
</html> 
The code behind is as recomended in the getting started docs
Imports Telerik.Web.UI  
Partial Class admin_upload_test  
    Inherits System.Web.UI.Page  
 
    Protected Sub Button1_Click(ByVal sender As ObjectByVal e As System.EventArgs) Handles Button1.Click  
 
        If RadUpload1.UploadedFiles.Count > 0 Then 
            RadProgressArea1.Visible = True 
            System.Threading.Thread.Sleep(6000)  
        End If 
    End Sub 
End Class 

and I have followed the full getting started procedure to modify the web.config file.

The result is that the file is uploaded to the requisite folder, but the progress area is never visible.

There are no error messages, so I am stuck for knowing where to check for the problem.
Can you suggest where to start looking?
 
I really thought this was going be easier than writing a classic asp script ands using aspUpload
the old-fashioned way!

Thanks

Clive
Clive Hoggar
Top achievements
Rank 1
 answered on 14 Apr 2009
3 answers
101 views
Hello,

I would like to select tabstrip with its linked multipage throw this:

var

 

tab = RadTabStripObj.findTabByValue(segments[2]);

 

 

if (tab) {

 

    tab.select();

}

unfortunatly its not syncronazing radmultipage.
so I'm added this:

var RadMultiPage = $get(sender.get_multiPageID());   // "sender.get_multiPageID()" returns the right id of the control, but sender.get_multiPage() returns null. Is this a bug ?

// and then select the Page by Index, but SelectPageByIndex is gone, not in the list of methods anymore.
How to do that now ?

Regards.

Paul
Telerik team
 answered on 14 Apr 2009
4 answers
94 views
Hi everybody

I have an issue with my brand new telerik asp.net ajax radeditor.

I use this one in a moss-environment on a highly customized website.
Telerik works (the output is correct), but in edit-mode, it doesn't use the styles it is supposed to.
In fact, it doesn't use any styles at all but displays the text "nude".

I want either telerik to use the styles, that are used around him, or at least style the content-area in edit-mode seperatly with NO EFFECT on the rest of the page in non-edit mode.

I was able to do the latter when using telerik 4.5.2.. RadEditor lite, by adding the following code to the file:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.1.0__1f131a624888eeed\RadControls\Editor\Skin\<skin name>\EditorContentArea.css 

BODY
{
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
    color:#53361b !important;
 background:#efe9d3 !important;
}

Now, with the new version, the folder doesn't exist anymore and I haven't found a way to style the content-area.
I'm a bit lost in the jungle of different approaches in different telerik versions which are used in different environments.

I hope someone can help.

Tia
Alexander
Alexander
Top achievements
Rank 1
 answered on 14 Apr 2009
4 answers
344 views
Dear ,
I use 2 user control :header and item user control .Item user control contain another user control name :dayshift
In Firefox it work true.But in IE ,this is 2 issue :First,height table can set fit 100% container(in item template).Second, Header and Item align wrong although I set HeaderStyle.Width and ItemStyle.Width is the same value(I try set both on design and on code).
Please help me.I'm using Rad Controls for Asp.net Ajax Q3
This is my code
dayshift:
   <table cellpadding="0" cellspacing="0" style="border: none; margin: 0px; padding: 0px;text-align: center; width: 100%">
    <tr>
                    <td align="center">                        
                        <asp:Panel ID="pShift" runat="server" HorizontalAlign="Center">                        
                            <asp:CheckBox ID="UR017001chkShift" runat="server" />
                        </asp:Panel>                        
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:ImageButton ID="UR017001ibAccept" ImageUrl="~/Images/accept.png" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:ImageButton ID="UR017001ibCancel" ImageUrl="~/Images/remove.png" runat="server"
                            OnClick="UR017001ibCancel_Click" />
            </td>
        
    </tr>
</table>
User control Header:
<table cellspacing='0' cellpadding='0' border='0' width='100%'>
    <tr>
        <td class='ShiftShopping-header-top'>
            <asp:Literal ID="lithDay" runat="server" />
        </td>
    </tr>
    <tr>
        <td>
            <table cellspacing='0' cellpadding='0' border='0' width='100%'>
                <tr>
                        <asp:Repeater ID="repHeaderLeft" runat="server">
                            <ItemTemplate>
                                <td class="ShiftShopping-header-bot-left" style="width: <%# DataBinder.Eval(Container.DataItem, "Percent")%>%;">
                                    <%# DataBinder.Eval(Container.DataItem, "WorkShiftCode")%>
                                </td>
                            </ItemTemplate>
                        </asp:Repeater>
                          
                        <td class="ShiftShopping-header-bot-right">
                        <asp:Literal runat ="server" Text="<%$Resources:Strings,UR017001Timer %>" />
                        </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
User control for Item template:
<table cellspacing='0' cellpadding='0' border='0' width='100%' style="height:100%">
    <tr style="height:100%">
        <asp:Repeater ID="repItemLeft" runat="server"
            onitemdatabound="repItemLeft_ItemDataBound">
            <ItemTemplate>
                <td class="ShiftShopping-item-left" style="width: <%# DataBinder.Eval(Container.DataItem, "Percent")%>%;">
          <uc1:DayShift ID="DayShiftLeft" runat="server"   />
                      
                </td>
            </ItemTemplate>
        </asp:Repeater>
        
        <td class="ShiftShopping-item-right">
            <asp:Literal ID="litTimer" runat="server" />
        </td>
    </tr>
</table>

 CSS:
 <style type="text/css">
      .ShiftShopping-wrap-header tr td
    {       
        
    }
    .ShiftShopping-wrap-header
    {                
        padding: 0px !important;
        margin: none !important;        
    }
    .ShiftShopping-wrap-cell td
    {
        padding: 0px !important;
        margin: none !important;       
    }
    .ShiftShopping-wrap-cell
    {
        height:100%;
    }
    .ShiftShopping-header-top
    {      
        border-bottom: 1px solid #9EB6CE !important;
        text-align: center;
    }
    .ShiftShopping-header-bot-left
    {
        text-align: center;
        border-right:1px solid #9EB6CE !important;
    }
    .ShiftShopping-header-bot-right
    {          
        
        
        text-align: center;
    }
    .ShiftShopping-item-left
    {        
    height:100%;    
        text-align: center;
        border-right:1px solid #d0d7e5 !important;

    }
    .ShiftShopping-item-right
    {
        height:100%;
        text-align: center;
            }
    
     .ShiftShopping-wrap-header td
    {        
            
        padding: 0px !important;
        margin: none !important;  
             height:100%;
    }
    .ShiftShopping-wrap-cell td td
    {
        padding: 0px !important;
        margin: none !important;    
        border:none;
    }
</style>
At last,my RadGrid:
 <telerik:RadGrid ID="UR009001rgShipShopping" AllowPaging="true" PageSize="10" runat="server"
    AutoGenerateColumns="False" CellPadding="0" CellSpacing="0" Width="98%" OnItemDataBound="UR009001rgShipShopping_ItemDataBound"
    OnNeedDataSource="UR009001rgShipShopping_NeedDataSource"
    onitemcreated="UR009001rgShipShopping_ItemCreated">
    <HeaderContextMenu EnableTheming="True">
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
    </HeaderContextMenu>
    <ClientSettings>
        <Scrolling AllowScroll="true" UseStaticHeaders="True" ScrollHeight="235px" />
    </ClientSettings>
    <FilterMenu EnableTheming="True">
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
    </FilterMenu>
    <MasterTableView DataKeyNames="EmployeeID" TableLayout="Fixed">
        <HeaderStyle CssClass="ShiftShopping-wrap-header" />
        <ItemStyle CssClass="ShiftShopping-wrap-cell"/>
        <AlternatingItemStyle CssClass="ShiftShopping-wrap-cell"/>
        <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridTemplateColumn ItemStyle-HorizontalAlign="center" HeaderText="<%$ Resources:Strings, UR000001grvhEmployeeInfo %>"
                HeaderStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <table cellpadding="0" border="0px" cellspacing="0" width="100%" style="overflow: hidden">
                        <tr>
                            <td align="center" style="overflow: hidden">
                                <asp:Literal ID="UR009001litEmployeeInfo" runat="server" />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" Width="80px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" Wrap="true">
                </ItemStyle>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn>
                <HeaderTemplate>
                 <uc4:HeaderShiftShopping ID="dshMonday" runat="server" />  
                </HeaderTemplate>
                <ItemTemplate>
                    <uc5:ItemShiftShopping ID="dsMonday" runat="server" />
                </ItemTemplate>
                <HeaderStyle  />
                <ItemStyle />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn>
                <HeaderStyle />
                <HeaderTemplate>
               
                    <uc4:HeaderShiftShopping ID="dshTuesday" runat="server" />  
                </HeaderTemplate>
                <ItemTemplate>
                  <uc5:ItemShiftShopping ID="dsTuesday" runat="server" />
                </ItemTemplate>
                <HeaderStyle  />
                <ItemStyle  />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn>
                <HeaderTemplate>
                 <uc4:HeaderShiftShopping ID="dshWednesday" runat="server" />
                </HeaderTemplate>
                <ItemTemplate>
                    <uc5:ItemShiftShopping ID="dsWednesday" runat="server" />
                </ItemTemplate>
                <HeaderStyle />
                <ItemStyle />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn>
                <HeaderTemplate>
                    <uc4:HeaderShiftShopping ID="dshThursday" runat="server" />
                </HeaderTemplate>
                <ItemTemplate>
                   <uc5:ItemShiftShopping ID="dsThursday" runat="server" />
                </ItemTemplate>
                <HeaderStyle  />
                <ItemStyle  />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn>
                <HeaderTemplate>
                    <uc4:HeaderShiftShopping ID="dshFriday" runat="server" />
                </HeaderTemplate>
                <ItemTemplate>
                     <uc5:ItemShiftShopping ID="dsFriday" runat="server" />
                </ItemTemplate>
                <HeaderStyle  />
                <ItemStyle  />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn>
                <HeaderTemplate>
                  <uc4:HeaderShiftShopping ID="dshSaturday" runat="server" />
                </HeaderTemplate>
                <ItemTemplate>
                <uc5:ItemShiftShopping ID="dsSaturday" runat="server" />
                </ItemTemplate>
                <HeaderStyle  />
                <ItemStyle />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn>
                <HeaderTemplate>
                  <uc4:HeaderShiftShopping ID="dshSunday" runat="server" />
                </HeaderTemplate>
                <ItemTemplate>
                    <uc5:ItemShiftShopping ID="dsSunday" runat="server" />
                </ItemTemplate>
                <HeaderStyle />
                <ItemStyle />
            </telerik:GridTemplateColumn>
            
              <telerik:GridTemplateColumn ItemStyle-HorizontalAlign="center" HeaderText="<%$ Resources:Strings, UR017001Total %>"
                HeaderStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <table cellpadding="0" border="0px" cellspacing="0" width="100%">
                        <tr>
                            <td align="center" style="width: 100%">
                                <asp:Literal ID="litTotalWeek" runat="server" />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" Width="32px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="32px" Wrap="False">
                </ItemStyle>
            </telerik:GridTemplateColumn>
        </Columns>
        <ItemStyle BorderStyle="None" />
    </MasterTableView>
</telerik:RadGrid>



Dimo
Telerik team
 answered on 14 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?