Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
398 views
I am using a rad window to display a web url, setting what I want specifically through the css as far as the size of it. This however is not working.

MarkUp
<telerik:RadWindow ID="ViewOurCatalogsRadWindow" runat="server" Behaviors="Close"
    BorderStyle="None" KeepInScreenBounds="true" IconUrl="/Images/JJIcon16x16.jpg"
    CssClass="view-our-jewelry-catalog-window" VisibleStatusbar="false" Animation="Slide"
    Style="z-index: 9000;">
</telerik:RadWindow>

Css
.view-our-jewelry-catalog-window
{
    width:600px !important;
    height:600px !important;
}

If I set the width/height through the markup, I am able to get the desired effect. As I am building this with responsive design, this will not work for me. I thought it could possibly be the the Url links I was pointing to, but have tried it with many other outside sources and it is not working with them as well.

Firebug shows that my css is rending, however, it looks to still be applying the default css (not class name or style page show either for this, just a straight element). Here is what it is showing.

element.style {
    height: 300px;
    left: 491px;
    position: absolute;
    top: 85px;
    visibility: visible;
    width: 300px;
    z-index: 9000;
}

Any insight would be appreciated.


Marin Bratanov
Telerik team
 answered on 11 Dec 2013
3 answers
171 views
Hi,

I'm simply trying to add spacing/margins between the data-bound tiles.  Is there a way to do this? 
Marin Bratanov
Telerik team
 answered on 11 Dec 2013
11 answers
1.3K+ views
I am trying to open a Rad Window via client-side script upon taking some server-side action.

I have a function:

function

ShowUpdateForm()

{

window.radopen("REPUpdate.aspx","RW1");

return false;

}

I call this function from an update on the server side by using the "InjectScriptLabel" solution.

InjectScriptLabel.Text =

"<script>ShowUpdateForm();</script>"

When the page goes to run my function I get this script error:

Error:  "object expected."

My window manager and window are defined as follows:

<

telerik:RadWindowManager ID="rwm1" runat="server" Skin="Office2007" Behavior="Default"

InitialBehavior="None" Left="" Top="">

<Windows>

<telerik:RadWindow ID="RW1" runat="server" Behavior="Default" InitialBehavior="None"

Left="" NavigateUrl="" Style="display: none;" Top="" Title="REP Code Changes"

Height="200px" Width="450px" Modal="True" ReloadOnShow="true" >

</telerik:RadWindow>

</Windows>

</telerik:RadWindowManager>

It seems to me the window.radopen command is not being recgonized.

Any thoughts?

Marin Bratanov
Telerik team
 answered on 11 Dec 2013
1 answer
91 views
hi,,

can i show the notification from several buttons without close previous notification, from server side 
like this example 

http://demos.telerik.com/aspnet-ajax/notification/examples/overview/defaultcs.aspx

i used one notification control and call it from server side.

thanx
Marin Bratanov
Telerik team
 answered on 11 Dec 2013
13 answers
607 views
Hai..

           Iam using radhtml chart when i select rad combo box value, page is postbacking when page is postback HTML Chart is diaappearing(that means Empty space is showing) even i set Enable viewstate= true, still i have the problem. iam using radajax loading panel in the masterpage.


thanks
siva sankar
Marin Bratanov
Telerik team
 answered on 11 Dec 2013
5 answers
313 views
Hi All,

i have a requirement here. Need to Export the RadHTMLChart to jpg. Is there any option to do that?

please Let me know.

regards

Suresh
Marin Bratanov
Telerik team
 answered on 11 Dec 2013
2 answers
106 views
Hi,

Having this piece of code:

var selectedNode = embeddedTree.get_selectedNode();

Is there any way to know if the selectedNode is expanded or collapsed?


Regards
César
Top achievements
Rank 1
 answered on 11 Dec 2013
1 answer
189 views
Hi Telerik Team,

My telerik version is - Version=2008.1.619.20.

I want to display some custom text and a button inside a Radwindow. "CustomTemplate" attribute is not working. Please help in providing me an alternative way to achieve the requirement, as I don't have the scope of upgrading to latest version as of now.
Marin Bratanov
Telerik team
 answered on 11 Dec 2013
11 answers
1.0K+ views

I am using Normal telerik radgrid bind.

on OnLoad Event i called load grid functionality.

 

   
  
private void OnLoad()
  
{
  
uxUserList.DataSource = Model.UsersModelList;
  
uxUserList.DataBind();
  
  
}

 

 

it's working fine.

but when i enabled AllowPaging="true" i get the following error.

i am using RadScriptManager on My master page. and Perticular code block is
called inside a user control.

 

 

 

 


 

Server Error in '/Baker.IssueTrackingSystem.Web' Application.

Script controls may not be registered after PreRender.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Script controls may not be registered after PreRender.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: Script controls may not be registered after PreRender.]
   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +348527
   System.Web.UI.ScriptManager.RegisterScriptControl(TScriptControl scriptControl) +66
   Telerik.Web.UI.RadDataBoundControl.RegisterScriptControl() +43
   Telerik.Web.UI.RadDataBoundControl.ControlPreRender() +15
   Telerik.Web.UI.RadComboBox.OnPreRender(EventArgs e) +25
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +8682853
   System.Web.UI.ControlCollection.Add(Control child) +80
   Telerik.Web.UI.RadGrid.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +238
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.RadGrid.DataBind() +21
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   WebFormsMvp.Web.<>c__DisplayClassa`1.<Register>b__9(Object sender, EventArgs e) +15
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8699938
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1029

 

 

 

 

 


 

 

Ashraf
Top achievements
Rank 1
 answered on 11 Dec 2013
3 answers
200 views
I have a page with multiple buttons in an ajaxpanel and when I click any buttons after the first button, the page scrolls back to the top. if I click the very first button (updateFormButton) it keeps the scroll position. Any ideas why? Here's my code

<%@ Page Title="" Language="VB" MaintainScrollPositionOnPostback="true" MasterPageFile="~/Main.master" AutoEventWireup="false" CodeFile="EditSafetyForm.aspx.vb" Inherits="admin_EditSafetyForm" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
 
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentPlaceHolder" Runat="Server">
     
    <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="success">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="formTypeDrop">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="defaultTextInput">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="updateContentButton">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="questionInput">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="updateQuestion">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="deleteQuestionButton">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="answerTypeDrop">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="addQuestionButton">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="answerItemsPanel">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="questionsGrid">
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
     
    <telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" HorizontalAlign="NotSet">
    <telerik:RadToolTip runat="server" ID="success" Height="60px" Width="250px" Position="Center"
        RelativeTo="BrowserWindow" AutoCloseDelay="6000">
    </telerik:RadToolTip>
    <h2><asp:Label ID="nameOutput" runat="server"></asp:Label></h2>
    <h3>Form Type</h3>
    <telerik:RadComboBox ID="formTypeDrop" runat="server" AutoPostBack="true">
            <Items>
                <telerik:RadComboBoxItem Value="1" Text="OSHA" />
                <telerik:RadComboBoxItem Value="2" Text="Personal" />
            </Items>
            <CollapseAnimation Duration="1000" Type="InBack" />
        </telerik:RadComboBox>
    <h3>Description</h3>
    <div class="safeItem">
    <telerik:RadEditor ID="defaultTextInput" runat="server" Width="800" Height="500px">
    </telerik:RadEditor><br />
    <asp:Button ID="updateContentButton" runat="server" Text="Update Form" /> <br /><br />
        <div style="clear: both;"></div>
        </div>
    <div style="clear: both;"></div>
    <br />
    <h3>Add Questions</h3>
    <div class="safeLabel">Question Text:</div>
    <div class="safeItem"><asp:TextBox ID="questionInput" runat="server" Width="450"></asp:TextBox>
           <asp:Button ID="updateQuestion" runat="server" Text="Update Question" />   
        <asp:Button ID="deleteQuestionButton" runat="server" Text="Delete" />
    </div>
    <div class="safeLabel">Answer Type:</div>
    <div class="safeItem">
        <telerik:RadComboBox ID="answerTypeDrop" runat="server" AutoPostBack="true">
            <Items>
                <telerik:RadComboBoxItem Value="Text" Text="Text" />
                <telerik:RadComboBoxItem Value="Drop" Text="Dropdown" />
                <telerik:RadComboBoxItem Value="List" Text="List" />
            </Items>
            <CollapseAnimation Duration="1000" Type="InBack" />
        </telerik:RadComboBox>
            
        <asp:Button ID="addQuestionButton" runat="server" Text="Add New Question" />
    </div>
    <asp:Panel ID="answerItemsPanel" runat="server" Visible="false">
        <div class="safeLabel">Available Items:</div>
        <div class="safeItem">
            <asp:TextBox ID="answerItemInput" runat="server" Width="450"></asp:TextBox>   
            <asp:Button ID="addAnswerButton" runat="server" Text="Add" />
        </div>
         
        <div class="safeLabel"><br /><br /><b>Existing Answers:</b></div>
        <div class="safeItem">
            <telerik:RadGrid ID="answersGrid" runat="server" GridLines="None" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="false" PageSize="50" Width="800" AutoGenerateDeleteColumn="true">
                <MasterTableView DataKeyNames="SafetyFormQuestionAnswersId" AutoGenerateColumns="false">
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="SafetyFormQuestionAnswersId" HeaderText="SafetyFormQuestionAnswersId" SortExpression="SafetyFormQuestionAnswersId"
                            UniqueName="SafetyFormQuestionAnswersId" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="AnswerText" HeaderStyle-Width="400" HeaderText="Text" SortExpression="AnswerText"
                            UniqueName="AnswerText">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </div>
    </asp:Panel>
    <br />
    <h3 style="clear: both;"><br />Edit Existing Questions</h3>
    <div class="safeLabel"> </div>
    <div class="safeItem">
        <telerik:RadGrid ID="questionsGrid" runat="server" GridLines="None" AllowPaging="True"
        AllowSorting="True" AutoGenerateColumns="false" PageSize="50" AllowFilteringByColumn="true" Width="800" AutoGenerateDeleteColumn="true">
            <MasterTableView DataKeyNames="SafetyFormQuestionsId" AutoGenerateColumns="false">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridEditCommandColumn EditText="Edit" HeaderStyle-Width="50"></telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn DataField="SafetyFormQuestionsId" HeaderText="SafetyFormQuestionsId" SortExpression="SafetyFormQuestionsId"
                        UniqueName="SafetyFormQuestionsId" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="QuestionText" HeaderText="Question" HeaderStyle-Width="250" SortExpression="QuestionText"
                        UniqueName="QuestionText">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="QuestionType" AllowFiltering="false" HeaderText="Answer Type" HeaderStyle-Width="95" SortExpression="QuestionType"
                        UniqueName="QuestionType">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="AnsList" AllowFiltering="false" HeaderText="Possible Answers" HeaderStyle-Width="250" SortExpression="AnsList"
                        UniqueName="AnsList">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <br /><br />
    </div>
        </telerik:RadAjaxPanel>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" SkinID="Hay"
            Height="25px" Transparency="1" BackgroundPosition="Center" >
            <img alt="Loading..." src="../login.gif" height="200" width="200" style="border: 0px;" />
        </telerik:RadAjaxLoadingPanel>
     
</asp:Content>
Eyup
Telerik team
 answered on 11 Dec 2013
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?