Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
254 views
With a RadTabStrip in a page that uses a master page, the code
$find( "<%= RadTabStrip1.ClientID %>") 
returns 'null' is null or not an object.  I have tried variations on this as well, using $get, or changing <%= to <%#.  It works fine as above if the tab strip is not in a page that uses a master page.

Any suggestions?
Ivan Ruiz
Top achievements
Rank 1
 answered on 05 Sep 2009
2 answers
138 views
Having a scrollable horizontal tab, which is scrolled as far right as possible, will show the last tab completely with the right scroll button next to it. However, if you resize just a bit, or trigger a tabstrip resize event from code, the tabs will immediately scroll to the left appr. 20px. This is causing parts of the last tab to be hidden behind the right scroll button. In particular this is annoying when I have added close buttons on each tab and this is hidden behinf the scroll button... Any quick and easy fix I can do (or you will do)?

Regds.
Sigmund Lunde
Sigmund Lunde
Top achievements
Rank 1
 answered on 05 Sep 2009
2 answers
205 views
I have a rather large scale application where I'd like to do the following:

1. Create a "Load on Demand" Multipage - controlled by a radTabStrip

2. AJAX-ify the TabStrip/MultiPage so that the new page views are loaded via callback (not postback)

3. Let the loaded PageViews determine how to handle submissions (postback/callback)

I can do #1 & #2 (albeit w/ some lingering viewstate issues) but the end result is a loaded pageview/form that always uses the tabstrip/multipage AJAX (where I'd prefer to be able to make selective AJAX calls or, in some cases postbacks from the loaded elements.)

Is what I'm looking to do even possible?

Bill
nilesh
Top achievements
Rank 1
 answered on 05 Sep 2009
0 answers
131 views
Hi
i have radupload in my page and some comboboxes;
now whenever the page got ajax cal through the selected index  change of combobox or full postback by clicking the button then the selected file get cleared from the radupload control.
i want to keep the selected file until and unless user closes the page.
thanks for the help in advance
DK
Top achievements
Rank 2
 asked on 05 Sep 2009
1 answer
203 views
Greetings,

Here's a strange thing: I have a RadTabStrip with a RadMultiPage all set up and working.
Moving from one tab to another creates always a new PageView (a userControl).
Usually all works beautifully. But when we go back a tab, correct certain form data and resubmitting in order to ahead again (recreacting the next PageView), we get the following error message:

Script control '' is not a registered script control. Script controls must be registered using 
RegisterScriptControl() before calling RegisterScriptDescriptors().  
Parameter name: scriptControl 

This happens only on opening one tab. No problem with any other. The tab in question includes
- a RadGrid
- a RadWindowManager (required for editing RadGrid items
- RadAjaxManager
- RadAjaxLoadingPanel

A RadScriptManager is placed in the WebForm (.aspx) page that contains the RadTabStrip.

As mentioned, when you just move forward from one tab to another there are no problems. That problem happens only when going back one tab and clicking submit again to move forward.

Any clue?
Thanks much.
Chanan Zass
Top achievements
Rank 1
 answered on 04 Sep 2009
0 answers
71 views
I am not a user of Telerik controls but I have been asked to find the answer to the following question......

We have a combo box that is passed a name. We want to retrieve from an MSSQL database the name passed plus the next 100 names (either before or after the input name). We also want to be able to navigate forward and backward through the list of names.

For example......
Suppose the database has the 300 names with name number 100 being Allan, name number 200 being King, and name number 300 being Zion.
Suppose I pass in the name King, I would expect the list to start with the name King and end with the name Zion (100 entries after King). If I were to use the down arrow I would expect to add the next 100 names from Zion onward (assuming there are more names) to the list.

Now suppose I pass in the name King, I would expect the list to start with the name King and end with the name Zion (100 entries from King to Zion). If I were to use the up arrow I would expect to add the names from Allan to King in the list (the 100 name preceeding King).

Can anyone tell me is this possible to do with Telerik Controls. I would not ask for a code snippit but some indicaiton of how it would be done would be helpful. Please understand I do not use Telerik controls, I am just trying to gather the information.
Steve Heidel
Top achievements
Rank 1
 asked on 04 Sep 2009
6 answers
301 views
Hi there,

The project I am working on has licensed teleric control suite. I am looking at making the RadGrid keep expanded rows expanded whilst using simple binding (i.e. not NeedDataSource event).

Is this possible?

Or do I need to stick to advanced data binding?

Thanks in advance,
Ron
Nicolaï
Top achievements
Rank 2
 answered on 04 Sep 2009
2 answers
256 views
Hi,

I have  a drop down and a rad combo box.  While running the application, I go into edit mode, click on the drop down and change the selected value.  I then click on the "update" link next to the line.  

I get the handle on the dropdown list or rad combo box in UpdateCommand event, but when I examine the SelectedValue, it is still the same as before.  How can I access the changed value in this case?  What am I missing?

Thanks.

Suresh

Here is the code I am using:

 

<telerik:GridTemplateColumn DataField="CostCenterName" HeaderText="Adj Cost Center Name" UniqueName="CostCenterName">

 

 

<ItemTemplate>

 

<%

#DataBinder.Eval(Container.DataItem, "CostCenterName")%>

 

 

</ItemTemplate>

 

 

<ItemStyle Width="300px" />

 

 

<EditItemTemplate>

 

 

<telerik:RadComboBox DataTextField="CostCenterName"

 

 

DataValueField="CostCenterName"

 

 

OnTextChanged="RadComboBoxAdjustedCC_TextChanged"

 

 

OnItemsRequested="RadComboBoxAdjustedCC_ItemsRequested"

 

 

EnableLoadOnDemand="True"

 

 

ID="RadComboBoxAdjustedCC"

 

 

runat="server"

 

 

Height="140px"

 

 

Width="220px"

 

 

SelectedValue='<%#Bind("CostCenterName")%>'

 

 

DataSourceID="ObjectDataSourceGetCostCenters">

 

 

</telerik:RadComboBox>

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn DataField="Site" HeaderText="Site" UniqueName="Site">

 

 

<ItemTemplate>

 

<%

#DataBinder.Eval(Container.DataItem, "Site")%>

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<asp:DropDownList ID="DropDownListSite" runat="server"

 

 

SelectedValue='<%#DataBinder.Eval(Container.DataItem, "Site")%>' >

 

 

<asp:ListItem Value="C">BAH</asp:ListItem>

 

 

<asp:ListItem Value="G">Govt.</asp:ListItem>

 

 

</asp:DropDownList>

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 


VB Code: 

 

Protected Sub RadGridEmpData_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridEmpData.UpdateCommand

 

 

Dim s As String

 

s =

""

 

 

Dim objDDL As DropDownList

 

objDDL =

CType(e.Item.FindControl("DropDownListSite"), DropDownList)

 

s = objDDL.SelectedValue

 

Dim objRComb As RadComboBox

 

objRComb = e.Item.FindControl(

"RadComboBoxAdjustedCC")

 

s = objRComb.SelectedValue

 

 

End Sub

 


Suresh Mishra
Top achievements
Rank 1
 answered on 04 Sep 2009
0 answers
172 views
 


 Hello,
I am using RadGrid version 2008.2.826.20.
I am trying to update the record with 'InPlace' editmode. I have following two problems:
1) I want to show Record updated or Inserted message on top of the page instead of adding control in Radgrid. Therefor, I am using label control and once the record is updated trying to show it. With all surprise it assigns the text to label but label doesn't showup!
2) RadAjxLoadingPanel doesn't show up so, as a workaround I set the EnableAJAXLoadingTemplate="true". 

 

Now loading icon comes up but not as shown as on Telerik site. It's not over the grid nor grid becomes transparent. In the grid's box all records disappears and only loading icon shows.

Any ideas?

<radG:RadGrid ID="RGChoiceItems" allowMultiRowEdit="True" AllowMultiRowSelection="True" Skin="Office2007" EnableAJAXLoadingTemplate="true"   
                                    GridLines="None" EnableAJAX="true" runat="server"  AutoGenerateColumns="False" Width="900">  
                                    <HeaderStyle CssClass="BVSmallText" Font-Bold="True" /> 
                                    <ItemStyle CssClass="ItemStyle" VerticalAlign="Top" /> 
                                    <AlternatingItemStyle CssClass="AlternateItemStyle" VerticalAlign="Top"/>  
                                    <PagerStyle Mode="NextPrevAndNumeric" /> 
                                    <MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" EditMode="InPlace" DataKeyNames="Id" HorizontalAlign="NotSet" > 
                                        <Columns> 
<radG:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" UpdateImageUrl="~\RadControls\Grid\Skins\Update.gif" 
                                               EditImageUrl="~\RadControls\Grid\Skins\Edit.gif" InsertImageUrl="~\RadControls\Grid\Skins\Update.gif" CancelImageUrl="~\RadControls\Grid\Skins\Cancel.gif">  
                                               <ItemStyle CssClass="MyImageButton" />                                             
                                            </radG:GridEditCommandColumn> 
                                              
                                            <radG:GridBoundColumn HeaderText="Display Text" UniqueName="Text" MaxLength="50" DataField="DisplayText">  
                                                 <ItemStyle HorizontalAlign="Left" /> 
                                                 <HeaderStyle HorizontalAlign="Left" /> 
                                            </radG:GridBoundColumn> 
 </Columns>                   
                                                                      
                                 </MasterTableView> 
                             </radG:RadGrid>    
 
<radA:RadAjaxManager ID="radManager" runat="server" > 
                           <AjaxSettings> 
                                   <radA:AjaxSetting AjaxControlID="RGChoiceItems">  
                                    <UpdatedControls> 
                                        <radA:AjaxUpdatedControl ControlID="WebpageMessageHolder" LoadingPanelID="RadLoadingPanel1"/>               
                                        <radA:AjaxUpdatedControl ControlID="RGChoiceItems"/>                                          
                                    </UpdatedControls> 
                               </radA:AjaxSetting> 
                                
                          </AjaxSettings> 
                        </radA:RadAjaxManager>   
 
                        <radA:AjaxLoadingPanel ID="RadLoadingPanel1" style="width: 300px; height: 300px; background-color: #DCDCDC;" runat="server" Transparency="5" IsSticky="true">  
                              <asp:Image ID="imgUpdating" runat="server" AlternateText="Updating..."  />    
                        </radA:AjaxLoadingPanel>  

 

K
Top achievements
Rank 1
 asked on 04 Sep 2009
2 answers
330 views
The Editor's Indent/Outdent feature is a crime against HTML, as has been discussed before in this forum.

I'm trying to fix this myself and would like some help coming up with a solution that anyone using RadEditor can implement.


The Problem:
The Indent button simply wraps the selected elements in a <blockquote> tag. In most web browsers, this looks like you're indenting the text. However, those of us that respect HTML know well that the blockquote element is intended for quoting other people's text, not indenting.

To a screen reader for the blind, a search engine or any other semantic parser of HTML, using a blockquote tag has a much different meaning than indenting.


The Solution:
Personally, I approach indenting a section of content by wrapping it in a <div> with a margin-left style applied to it. I create a CSS class called "indent" for that purpose.

Others might add a margin-left to each element to be indented, rather than wrapping the section.


Achieving the Solution in RadEditor:
Here's where I'm stuck.

Approach #1:
My preferred approach is to obtain an array of the DOM elements selected in the Editor. That way, I can simply add a <div> before the first element and make the selected elements children of the indention <div>.

The problem: I don't know how to retrieve an array of the selected elements. editor.getSelectedElement() gives me the last of the selected elements but there's no editor.getAllSelectedElements(). If more than one line of text is selected, editor.getSelectedElement() will not work.


Approach #2:
Another approach is editing the HTML as a string. editor.getSelection().getHtml() gives me all the HTML that is selected in the Editor. editor.pasteHTML() puts the modified HTML back. Like approach #1, wrapping the HTML in <div> tags could achieve the desired result.

The problem: If the opening or closing <p> tag is not part of the selection (i.e. partial line selected), the resulting <div>-wrapped HTML is malformed.

This might work if I had a way to read ahead to the closing tag and read behind to the opening tag. But I haven't found an obvious way to do this.


Does anyone have any ideas on solving approach #1 or #2? How about a different approach that I haven't considered?

I appreciate your input.

Jeff
Jeff
Top achievements
Rank 1
 answered on 04 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?