Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
127 views
When using usestaticheaders="True" vertical scroll jumps below header. Is it possible to use staticheaders when scroll would still go to the top?

Result is that at upper right corner there is sometimes just blank box or sometimes when header contains more than one line there is area which height equals header when it`s only one line high. I`m it doesn`t scale that header background for multi line header. In that case there is one line header background and below that white empty are and below that the scroll bar.


Pavlina
Telerik team
 answered on 18 Nov 2009
1 answer
100 views
Hi,

If I paste the following content into the RadEditor HTML view:


<!-- Start of Brightcove Player --> 
 
<div style="display: none;"
 
</div> 
 
<!-- 
By use of this code snippet, I agree to the Brightcove Publisher T and C  
found at http://corp.brightcove.com/legal/terms_publisher.cfm.  
--> 
 
<script language="JavaScript" type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script> 
 
<object class="BrightcoveExperience" id="myExperience50110418001"
  <param name="bgcolor" value="#FFFFFF"
  <param name="width" value="411"
  <param name="height" value="308"
  <param name="playerID" value="49906927001"
  <param name="publisherID" value="21742339001"
  <param name="isVid" value="true"
     
  <param name="@videoPlayer" value="50110418001"
</object> 
 
<!-- End of Brightcove Player --> 

Then switch to Design view, then back to HTML view, it becomes this:

<!-- Start of Brightcove Player --><div style="display: none;"></div><!-- 
By use of this code snippet, I agree to the Brightcove Publisher T and C  
found at http://corp.brightcove.com/legal/terms_publisher.cfm.  
--><script language="JavaScript" type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script><!-- End of Brightcove Player --> 

This of course, breaks our video player you then save again.....any idea why this is happening?
Rumen
Telerik team
 answered on 18 Nov 2009
2 answers
412 views
I have a label in the radgrid command item template I want to change the text of the label to the text of the selected radtabstrip tab. However I can't seem to find the label after it is placed in the template can anyone tell me how to set the text of the label when the tabstrip is clicked. Thanks for any help.
Robert
Top achievements
Rank 1
 answered on 18 Nov 2009
3 answers
223 views
Hi!
I have my control with CheckBox <- this is my problem. I want to show panel when CheckBox is checked.
My control is used like this:

<EditFormSettings UserControlName="../UserControls/Process/StateAlert.ascx" EditFormType="WebUserControl"
     <EditColumn UniqueName="EditCommandColumn1"
     </EditColumn> 
</EditFormSettings>  

Inside control I have property:

public object DataItem 
        { 
            get 
            { 
                return dataItem; 
            } 
            set 
            { 
                if (value != null
                { 
                    if (value is StateJobTemplate) 
                    { 
                        StateJobTemplate template = (StateJobTemplate)value; 
                        ShowControl(true, (StateJobTypes)template.StateJobType, template); 
                        _sjtItem = template; 
                    } 
                    else 
                    { 
                        Telerik.Web.UI.GridInsertionObject newAlert = (Telerik.Web.UI.GridInsertionObject)value; 
                        StateJobTemplate template = newAlert.GetPropertyValue("JobTemplate"as StateJobTemplate; 
                        ShowControl(true, (StateJobTypes)template.StateJobType, template); 
                        _sjtItem = template; 
                    } 
                    btnCancel.Visible = true
                } 
                dataItem = value; 
            } 
        }  


Now, when I checked CheckBox, RadGrid and my control inside disappear.
If I place CheckBox inside UpdatePanel or AjaxPanel, I'll have fallowing error:

 
Sys.WebForms.PageRequestManagerServerErrorException: Nie mo|na wyrejestrowa elementu UpdatePanel o identyfikatorze uPanelDelay, poniewa| nie zostaB on zarejestrowany w elemencie ScriptManager. Ta sytuacja mo|e wystpi, je[li element UpdatePanel zostaB usunity z drzewa formantów, a nastpnie dodany ponownie, co nie jest obsBugiwan operacj. 
Nazwa parametru: updatePanel' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "JS frame :: chrome://firebug/content/spy.js :: onHTTPSpyReadyStateChange :: line 497"  data: no] 
http://localhost:9920/ScriptResource.axd?d=1B-MRZCEFwolhXDsshMf4JjZOQs3iq1lzhqE6bwgKqGK8lEWWx8KGThf_Rfugcg6TbxwknueZdk1ek5e3cT_FYN0GGs0HIzmvczdBTv9-1E1&t=ffffffff91beb05b Line 5 

It's in Polish so I'll try to explain. Error says that UpdatePanel can't be unregistered because it wasn't registered in ScriptManager.
Please, help ;)
Adrian
Top achievements
Rank 1
 answered on 18 Nov 2009
4 answers
285 views
I'm using a RadGrid control along with the RadToolTipManager control. If you click on the row header it sorts correctly. if you click on it again, it resorts in the opposite direction. However, if you click on the up/down resort image instead it fails with an "invalid postback or callback argument" error.

I've tried explicitly setting the sort expression, but it doesn't seem to help. Here's a sample of how it's configured:

<telerik:RadGrid ID="grdScoreCard" runat="server"  
        onneeddatasource="grdScoreCard_NeedDataSource" EnableViewState="False" 
        OnItemCommand="grdScoreCard_ItemCommand" 
        AutoGenerateColumns="False" GridLines="None"    
        onitemdatabound="grdScoreCard_ItemDataBound" AllowSorting="True"
        <headercontextmenu enabletheming="True"
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </headercontextmenu> 
        <mastertableview showfooter="True" AllowMultiColumnSorting="true" AllowSorting="true"
            <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <Columns>     
                <telerik:GridTemplateColumn> 
                    <ItemTemplate> 
                        <asp:HyperLink ID="lnkInfo" Text="Details" ToolTip="Info" NavigateUrl="#" runat="server"></asp:HyperLink> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn>   
<telerik:GridBoundColumn DataField="AvgContractAmount" DataFormatString="{0:c}" 
                    HeaderText="Avg. Contract $"  
                    SortExpression="AvgContractAmount" 
                    UniqueName="colAvgContractAmount"  Aggregate="Sum" FooterAggregateFormatString="{0:0,0}"
                    <FooterStyle HorizontalAlign="Right" /> 
                    <ItemStyle HorizontalAlign="Right" /> 
                </telerik:GridBoundColumn>           

Here's what the various bound events look like:

        protected void btnGenerate_Click(object sender, EventArgs e) 
        {            
            this.grdScoreCard.Rebind(); 
        } 
 
        protected void grdScoreCard_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) 
        { 
            if (e.CommandName == "Sort" || e.CommandName == "Page"
            { 
                this.RadToolTipManager1.TargetControls.Clear(); 
            } 
 
        } 
 
        protected void grdScoreCard_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) 
        { 
            this.Generate(); 
        } 
 
        protected void Generate() 
        { 
            DataTable table = this.GenerateData();          
            this.grdScoreCard.DataSource = table; 
        } 
 
        protected void grdScoreCard_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
        { 
            if (e.Item.ItemType == Telerik.Web.UI.GridItemType.Item || e.Item.ItemType == Telerik.Web.UI.GridItemType.AlternatingItem) 
            { 
                HyperLink link = e.Item.FindControl("lnkInfo"as HyperLink; 
                if (link != null
                { 
                    DataRowView view = (DataRowView)e.Item.DataItem; 
                    this.RadToolTipManager1.TargetControls.Add(link.ClientID, view.Row["LocationID"].ToString(), true); 
                } 
            } 
 
            if (e.Item is Telerik.Web.UI.GridDataItem) 
            {                 
                Telerik.Web.UI.GridDataItem item = e.Item as Telerik.Web.UI.GridDataItem; 
                if (item != null
                { 
                    int index = e.Item.ItemIndex + 1; 
                    item["colRank"].Text = index.ToString(); 
                }                 
            } 
          
            if (e.Item is Telerik.Web.UI.GridFooterItem) 
            { 
                DataTable table = this.grdScoreCard.DataSource as DataTable; 
                this.GenerateFooter(e, table); 
            } 
        } 


Any ideas about why this isn't working?
Iana Tsolova
Telerik team
 answered on 18 Nov 2009
1 answer
370 views
Hi,

I have a radtoolbar with aa combo-box (RadComboBox1) inside a template.  I want to input the value selected the combo-box to a datasource control parameter.  I'm not sure how to do it.  The combo-box control ID is not listed when I modify the datasource.

Thanks in advance for the help. 

Here's the code for the toolbar:

 

<telerik:RadToolBar ID="RadToolBar1" runat="server" Width="100%" 

 

BorderStyle="None" Skin="Sitefinity">

 

 

 

<Items 

 

 

<telerik:RadToolBarButton runat="server" Text="New">

 

</telerik:RadToolBarButton>

 

 

 

<telerik:RadToolBarButton runat="server" Text="Filter">

 

 

 

<ItemTemplate>

 

 

 

<telerik:RadComboBox ID="RadComboBox1" AutoPostBack="True" Runat="server">

 

 

 

<Items>

 

 

 

<telerik:RadComboBoxItem runat="server" Selected="True" Text="All" Value="0" />

 

 

 

<telerik:RadComboBoxItem runat="server" Text="All Open Requests" Value="1" />

 

 

 

<telerik:RadComboBoxItem runat="server" Text="My Open Requests" Value="2" />

 

 

 

<telerik:RadComboBoxItem runat="server" Text="My Closed Requests" Value="3" />

 

 

</Items>

 

</telerik:RadComboBox>
</ItemTemplate>
</telerik:RadToolBarButton>

 

 

 

<telerik:RadToolBarButton runat="server" Text="Edit">

 

 

 

</telerik:RadToolBarButton>

 

 

 

<telerik:RadToolBarButton runat="server" Text="Print">

 

 

 

</telerik:RadToolBarButton>

 

 

 

<telerik:RadToolBarButton runat="server" Text="Search">

 

 

 

</telerik:RadToolBarButton>

 

 

 

<telerik:RadToolBarButton runat="server" Text="Refresh">

 

 

 

</telerik:RadToolBarButton>

 

 

 

</Items>

 

 

 

</telerik:RadToolBar>

 

 

 

 

 

 


Here's the code for the datasource:

<

 

asp:SqlDataSource ID="sqldsRequestsFiltered" runat="server"

 

 

 

ConnectionString=""

 

 

 

SelectCommand="csp_ith_ssl_requests_filtered" SelectCommandType="StoredProcedure">

 

 

 

<SelectParameters>

 

 

 

<asp:ControlParameter ControlID="RadComboBox1" Name="selection"

 

 

 

PropertyName="SelectedValue" Type="Int32" />

 

 

 

<asp:ControlParameter ControlID="lblUserName" Name="userid" PropertyName="Text"

 

 

 

Type="String" />

 

 

 

</SelectParameters>

 

 

 

</asp:SqlDataSource>

 

 

 

 

 

Peter
Telerik team
 answered on 18 Nov 2009
1 answer
166 views
Hi,

I am using Telerik version Q2 2009. I have List box. it contains items. when i type a Text in Editor and select item from List box it will paste next to whatever i typed.

E.g  Test name : (someText)

In the above example,  I have typed "Test name"  manually in the editor and i have selected "some Text" from List box.

it should be paste next to "Test name"





Please give me the solution ASAP.

Regards

Rahul




 
Rumen
Telerik team
 answered on 18 Nov 2009
2 answers
190 views
Hello,

I have a problem with all RadComboBoxes that I use with property "AutoPostBack=true".
I can select an item in the list but after the postBack all controls of my page generate a WebPage error when I try to focus on one of them.

The first picture describe the window prompted when I try to give focus on another control of the page and the second picture is the detail showed by the script Debugger in IE.

Thank you for your help.


Quantesys IT
Top achievements
Rank 1
 answered on 18 Nov 2009
8 answers
230 views
Is it possible to get the value of an asp:TextBox that is a target of a RadInputManager in the OnBlur event?  Every thing I've tried, I get an empty string result.  These are methods I have tried:

                    function OnBlur(sender, eventArgs) { 
                        alert(eventArgs.get_targetInput().get_value()); 
                    } 

                    function OnBlur() { 
                        var manager = $find("<%= InputManager.ClientID %>"); 
                        var numericTextBox = manager.get_targetInput("<%= TestFees.ClientID %>"); 
                        alert(numericTextBox.get_value()); 
                    } 
Chris
Top achievements
Rank 1
 answered on 18 Nov 2009
0 answers
112 views
I am using RadScheduler in Radsplitter (as per Telerik WebMail demo) and I want to remove some of the borders that would otherwise lay adjecent to RadSplitBar. I managed to remove the top, left & right border from RadScheduler by using a custom skin, but when I do this, the advanced input form does not work as expected: resources dropdown has no background and the items cannot be selected. Please help.
Thanks
Tomas von Peltzer
Top achievements
Rank 1
 asked on 18 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?