Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
424 views
I am working on a website which is for IE only but it must run in ie 6 and up. We have a fixed header with CSS styles and in that header we have a rad menu. The only way we can get the rad menu drop down menu to display properly is by modifying the doc type from:

 

 



<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

 



to

<!

 

 

DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

What is happening is the menu drop down executs but it is hidden behind the main web content container. The main web content container is compised of a rad splitter. However, when we change the doc type to 4.0 so that the site works in IE8 with compatiblity mode turned on the page layout works but many of our other pieces are broken because then need the doc type to be xhtml.

Basically we have


fixed header
     rad menu
-------------
m| main
e| content
n|
u|


The CSS I am use to accomplish this is:

 

html{ 
  
height: 100%
margin: 0px
padding: 0px
  
  
* html html {
height: 100%
margin: 0px
padding: 0px
  
body { 
height:100%;
MAX-HEIGHT: 100%
border: 0px;
padding:0px;
margin: 0px
padding-top:94px
background:#fff
font-family:arial, verdana, sans-serif
font-size:76%;
overflow: hidden
}
  
* html body {
PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 99px;
  
}
  
#container {
width: 100%
height:100%;
top: 120px
right: 0px
left: 0px
text-align: left
overflow: auto
}
  
* HTML #contianer
{
height:100%;
}
  
#header {
position: absolute
height:90px
width:100%;
overflow: hidden
top: 0px
left: 0px;
border-bottom: #ccc 4px solid
  
}
  
* HTML #header 
{
overflow:visible;
HEIGHT: 90px
}


Any help you can offer would be much appreciated thanks.

 

 

 

 

 

Cori
Top achievements
Rank 2
 answered on 07 Sep 2010
1 answer
232 views
Good day!
I have such a structure of menu:

<telerik:RadMenu ID="RadMenu_Clients" runat="server" OnItemClick="RadMenu_Clients_ItemClick">
                                    <Items>
                                        <telerik:RadMenuItem Text="Профиль" Value="profile" ImageUrl="App_Themes/Theme1/Image/down.png">
                                            <GroupSettings ExpandDirection="Down"></GroupSettings>
                                            <Items>
                                                <telerik:RadMenuItem Text="Настройки аккаунта" Value="settings"  />
                                                <telerik:RadMenuItem Text="Данные предприятия" Value="data"/>
                                                <telerik:RadMenuItem Text="Объекты" Value="objects"/>
                                            </Items>
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem Text="Заказы" Value="order" ImageUrl="App_Themes/Theme1/Image/down.png">
                                            <GroupSettings ExpandDirection="Down"></GroupSettings>
                                            <Items>
                                                <telerik:RadMenuItem Text="Разместить заказ" Value="set_order"/>
                                                <telerik:RadMenuItem Text="Информация о моих заказах" Value="order_info"/>
                                            </Items>
                                        </telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadMenu>


when I click an MenuItem I want to get all of it's child items if it's a first level item and if it's a second level item I want to det it's parent and after that - all of the parent's children items and add them to enother RadMenu.

I try to do it using Owner and Items properties.
When I try to read First_Level_Item.Items using foreach I have an error "First_Level_Item.Items collection was changed " after first step in foreach =(
what can I do to solve this problem?
Cori
Top achievements
Rank 2
 answered on 07 Sep 2010
1 answer
148 views
Hello!

I have two "linked" comboboxes - Area (ddlArea) and Region (ddlRegion). When Area selection is changed, Region items need to be updated accordingly. Both comboboxes have "EnableAutomaticLoadOnDemand" set to true. I have a java-script handler assigned to OnClientSelectedIndexChanged of ddlArea combobox to avoid post back, because this is all done is a "colorbox" modal window, which needs to be reopened after each post-back.
function requestData(sender, eventArgs) {
            var ddlRegion = $find("<%=ddlRegion.ClientID %>");
            ddlRegion.requestItems(sender.get_value(), false);
        }

On the server side, in ItemsRequested handler I'm able to determine which value has been selected by processing "Text" property. of event arguments. However, with automatic LoadOnDemand feature enabled, binding needs to occur also on every post back, inside Page_Load method. But when I set a breakpoint inside Page_Load, I see that ddlArea.SelectedValue has it's old value and not the one that was just selected. ddlArea.SelectedValue becomes updated only after post-back from a button for example.

Could you please advise what's the best solution for my problem would be?
Thank you!
Cori
Top achievements
Rank 2
 answered on 07 Sep 2010
1 answer
121 views

The exception is "FormatException: String was not recognized as a valid DateTime"

The issue is fixed in build 2010.1.526 and later. A workaround is to include the following script below the ScriptManager/RadScriptManager instance on the page:

<script type="text/javascript">
Telerik.Web.UI.RadScheduler.prototype._onDateHeaderClick = function (e)
{
    $telerik.cancelRawEvent(e);
      
    var date = new Date();
    // Date headers have an href in the format #yyyy-MM-dd
    var dateMatch = e.eventMapTarget.href.match(/#(\d{4}-\d{2}-\d{2})/);
    if (dateMatch && dateMatch.length == 2)
    {
        var parts = $telerik.$.map(dateMatch[1].split("-"), function (part) { return parseInt(part, 10); });
        date = new Date(parts[0], parts[1] - 1, parts[2]);
    }
      
    return this._switchToSelectedDay(date);
};
</script>
pucsoftware
Top achievements
Rank 1
 answered on 07 Sep 2010
2 answers
381 views
Hi,

I've got a FormView (insert mode only) with an ObjectDataSource. I want to split the FormView into several "pages", controlled by a RadTabStrip (hiding panels, showing selected panel). Works perfectly! In the last panel I want to show the submit button for the FormView. The submit button should be not ajaxified doing a server postback.

How do I do a server-side postback inside an updated control?
Did I understand the concept of the RadAjaxManager right?

Thanks,
Toby

relevant code (ASPX):
<!-- form view --->
           <asp:FormView ID="QuestionnaireFormView" runat="server"  
                DataSourceID="QuestionnaireObjectDataSource" DefaultMode="Insert"
                DataKeyNames="Id">
                <InsertItemTemplate>
                <asp:Panel ID="Panel1" runat="server" CssClass="questionnairepanel">
                 [...]
                </asp:Panel>
                <asp:Panel ID="Panel2" runat="server" CssClass="questionnairepanel">
                 [...]
                </asp:Panel>
                </InsertItemTemplate>
            </asp:FormView>

<!-- submit button --->
            <div id="div_insertbutton" runat="server" class="div_buttons">
                <asp:Button ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" AlternateText="Submit" Text=Submit" CssClass="submitbutton" />
            </div>

<!-- tab strip --->
<telerik:RadTabStrip ID="RadTabStripQuestionnaire" runat="server" CssClass="rctabstrip"  
                    ontabclick="RadTabStripQuestionnaire_TabClick" AutoPostBack="True"
                    SelectedIndex="1">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="Question 1-3"  Value="1" CssClass="rctab" SelectedCssClass="rctab_selected" Selected="True">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Question 4-8" Value="2" CssClass="rctab" SelectedCssClass="rctab_selected">
                        </telerik:RadTab>
                        [...]
                    </Tabs>
</telerik:RadTabStrip>

<!-- ajax manager --->
    <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTabStripQuestionnaire">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTabStripQuestionnaire" />
                    <telerik:AjaxUpdatedControl ControlID="div_insertbutton" />
                    <telerik:AjaxUpdatedControl ControlID="Panel1" />
                    <telerik:AjaxUpdatedControl ControlID="Panel2" />
                     [...]
                 </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

relevant code (CS):
        protected void RadTabStripQuestionnaire_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
        {
            currentpanel = e.Tab.Value;
            HideShowPanels(currentpanel);
        }

        private void HideShowPanels(string currentpanel)
        {
            [...]
            // in last panel show submit button
            div_insertbutton.Visible = true;
        }


T
Top achievements
Rank 1
 answered on 07 Sep 2010
6 answers
228 views
Hi,

Attached are the screen shots of the issues I am having. The 3.png is how the html page looks. When I load the page in editor initially its looks like in "1.png"  and when I select something it changes to "2.png". Could you please help with as why it doesn't look the final output page then I load it into the editor. I can see all my styles being loaded into the dropdown but the layout looks awkward in the editor. I am using the default Tools.xml file
Dobromir
Telerik team
 answered on 07 Sep 2010
1 answer
77 views
I am aware of previous post;

http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-character-table-limit.aspx


The above thread mentions that RadEditor is not really recommended for documents over 100k for text and html.  Some work arounds included disabling undo/redo button, and filters.  To be fair this is a problem in every html based editor I've reviewed so far, perhaps to a  less extent text editors running under Chrome.  Even web based editors running under chrome eventually too, succumb to latency issues as the document size increases, and Chrome has some perceived phone home ad issues that my client would rather not deal with.

My question is, if you have documents, all much bigger than 100k, perhaps an order of magnitude greater, say 1-3 meg or so and you were hoping for a web solution what can one do?  I was groping around for perhaps a streaming/paging solution (where 100k or so at a time can be loaded), but RadEditor and the others don't seem to support this in their api's (I could be mistaken in this).  Another solution is to break documents up into 100k bits, or as it were "chapter or section" bits, not sure my customer will go for this since it greatly complicates search and replace and the like operations that need to be done across multiple sections.

Unfortunately, unless I can find a solution this problem I will have to punt on a web solution and go win64 native application, which I would rather not do. 
Dobromir
Telerik team
 answered on 07 Sep 2010
3 answers
77 views
HI

I have a full ASP .NET WEB Application.

I wan't write all code in silverlight ! Therefore, i would like to use for the beginning only  the radtree silverlight component in an aspx page, which cooparates with the rest of the asp .net page, is this possible ?

best regards
toprak
Hristo
Telerik team
 answered on 07 Sep 2010
1 answer
55 views
hi,

Im new with telerik grid. i am facing strange issue with radgird. im using grid with static header,real time resize, paging and scrolling.
When radgrid render, it put big blank area between grid header and rows. im attacing also screen shorts. stange this happen only when  i post back by telerikAjaxManager. it is working fine if not partial post back.

please help me as soon as possible. im stuck with this.

Regards,
Dimo
Telerik team
 answered on 07 Sep 2010
5 answers
632 views
Hi,
 I am using RadAsyncUpload of version 2010:1:309:0.Multiple files are being uploaded but the target folder where the files are stored is in the app_data directory of the project.Even though I gave the TargetFolder Property to a specified directory the files are being stored in app_data only.
Can any one please let me know how to resolve this issue with AsyncUpload?

<telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" Visible="false"
            OnFileUploaded="AsyncUpload1_OnFileUploaded" OnClientAdded="addTitle" MultipleFileSelection="Automatic" >
        </telerik:RadAsyncUpload>

protected void AsyncUpload1_OnFileUploaded(object sender, FileUploadedEventArgs e)
    {
      
        for (int i = 0; i < AsyncUpload1.UploadedFiles.Count; i++)
        {
            AsyncUpload1.TargetFolder = Server.MapPath("..\\..\\..\\Attachments\\");
            AsyncUpload1.TargetPhysicalFolder = Server.MapPath("..\\..\\..\\Attachments\\");
            AsyncUpload1.TemporaryFolder = Server.MapPath("..\\..\\..\\Attachments\\");

        }
    }

Thanks In Advance,
h@r!.
T. Tsonev
Telerik team
 answered on 07 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?