Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
118 views
I have the following rotator
<telerik:RadRotator ID="RadRotator1b" runat="server"  Height="190px" width="880px" BackColor="#a6ce39"    
                                                              RotatorType="ButtonsOver" ItemHeight="100px" ItemWidth="165px"  Skin=""   cssclass="RadRotator_rotatorSkin"  ScrollDuration="350"  FrameDuration="800" > 
                                                        <ItemTemplate> 
                                                          <div class="itemTemplate">  
                                                             
                                                             <table style='margin:1px 1px 1px 1px;background-color:transparent;padding:0;border:none;cursor:pointer;width:100%;-moz-border-radius:1px;-webkit-border-radius:1px;' > 
                                                                            <tr><td  style="width:10%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td  style="width:80%"><a href='<%# XPath("link") %>' target="_blank" style="width:100%">  
                                                                                 <img src='<%# XPath("src") %>'  border='0' hspace='0' width='90' height='130' align='center'/>  </a></td>  
                                                                              <td  style="width:10%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>  
                                                                          <tr><td style="width:100%" colspan='3' align="center">    
                                                                              <a href='<%# XPath("link") %>' style='font-weight: bold; font-size: 8pt; color: #484849;'><%# XPath("title") %> </a></font> </td></tr>  
                                                                           <tr><td style="width:100%; color:White; " colspan='3' align="center">    
                                                                          <%#XPath("t")%>&nbsp;</asp:Label><a href='http://www.neelwafurat.com/locate.aspx?mode=1&search=author1&entry=<%# XPath("author") %>' style='font-size: 8pt; color: white;'><%#XPath("author")%> </a></font>   
                                                                             </td></tr>  
                                                                        </table> 
                                                       
                                                                   
                                                                
                                                        </div> 
                                                        </ItemTemplate> 
                                                    </telerik:RadRotator> 
                                                    <asp:XmlDataSource ID="XmlDataSourceb1" runat="server" XPath="books/book"  DataFile="~/generated_files/bitems.xml" ></asp:XmlDataSource> 

I am not setting the datasourceid to be XmlDatasourceb1 because i want to set it from javascript function.I need the items to load on tabclick event.This rotator is inside a pageview of a tab.How can i do that?Is it possible to set datasourceid from javascript?
maha
Top achievements
Rank 1
 answered on 28 Jun 2010
1 answer
251 views
Is it possible to alter the text that appears in the Group Panel? ("Drag a column header and drop it here to group by that column")?
Shinu
Top achievements
Rank 2
 answered on 28 Jun 2010
2 answers
116 views
hi telerik, click the button event, RadComboBox a value is selected, the server code
soft
Top achievements
Rank 1
 answered on 28 Jun 2010
4 answers
106 views
Hi. We use masterpages and the form decorator. On the masterpage we use the default skin and in the content pages the Windows7 skin. It renders okay on IE7 & IE8 but in IE6 some controls (not all) like buttons and scrollbars seem to keep the default skin. We only use zones and don't ever decorate entire pages. Is this a bug or behavior of IE6. Thanks.

Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 28 Jun 2010
4 answers
200 views

I have to set the insert paramaters through the InsertCommand Event of the radgrid and need to get the value of the texbox that shows after you click "Add New Record".  How do I get the value from the textbox?
ejb
Top achievements
Rank 2
 answered on 26 Jun 2010
3 answers
144 views
Hi,

After searching through the forums I couldn't find this particular question posed or answered anywhere.
What I'd like to do is on a paste (preferred) or save event in the RadEditor, search the html content for deprecated tags like <b> and <i> and replace them with <strong> and <em> (respectively).

I believe this would be some kind of javascript code I need to add. I just need to know where to add it and what event listener to make it part of. Not looking for the entire code to be written for me, just would like to find out if it's possible and be pointed in the right direction.

Thank you.
Rumen Jekov
Top achievements
Rank 1
 answered on 26 Jun 2010
1 answer
123 views
Hi,
   Is image editor with free hand drawing facility available with telerik.
Waiting for early reply.
Rumen Jekov
Top achievements
Rank 1
 answered on 26 Jun 2010
1 answer
290 views
I've got two comboboxes with two objectdatasources:
<telerik:RadComboBox ID="RadComboBoxConnection" runat="server" Height="200px" Width="300px" 
        Filter="Contains" MarkFirstMatch="true" ChangeTextOnKeyBoardNavigation="false" AllowCustomText="false" 
        DataSourceID="ObjectDataSourceConnection" DataTextField="DatabaseFriendlyName" DataValueField="ImportConnectionId" AutoPostBack="true" EnableViewState="true"> 
</telerik:RadComboBox> 
 
<telerik:RadComboBox ID="RadComboBoxObject" runat="server" Height="200px" Width="300px" 
        Filter="Contains" MarkFirstMatch="true" ChangeTextOnKeyBoardNavigation="false" AllowCustomText="false" 
        DataSourceID="ObjectDataSourceObject" DataTextField="ObjectName" DataValueField="ImportObjectId" AutoPostBack="true" EnableViewState="true" OnSelectedIndexChanged="RadComboBoxObject_OnSelectedIndexChanged"> 
</telerik:RadComboBox> 
 
<asp:Literal ID="litMessage" runat="server" /> 
 
<asp:ObjectDataSource ID="ObjectDataSourceConnection" runat="server"  
    TypeName="Ams.Web.BackOffice.ImportConnectionAdapter"  
    DataObjectTypeName="Ams.Core.DomainObject.ImportConnection"  
    OldValuesParameterFormatString="original_{0}" 
    ConflictDetection="CompareAllValues" 
    SelectMethod="SelectImportConnection" /> 
 
<asp:ObjectDataSource ID="ObjectDataSourceObject" runat="server"  
    TypeName="Ams.Web.BackOffice.ImportObjectAdapter"  
    DataObjectTypeName="Ams.Core.DomainObject.ImportObject"  
    OldValuesParameterFormatString="original_{0}" 
    ConflictDetection="CompareAllValues" 
    SelectMethod="SelectImportObject"> 
        <SELECTPARAMETERS> 
            <asp:ControlParameter Name="aImportConnectionId" PropertyName="SelectedValue" ControlID="RadComboBoxConnection" /> 
        </SELECTPARAMETERS> 
    </asp:ObjectDataSource> 

The first combobox I have no problems with. I can selected any entry, and on postback it retains its values.
The second combobox however, when selecting a new item, it loses its value every time. Page_Init its SelectedIndex is -1. Page_Load, always 0!! Even when declaring OnSelectedIndexChanged, still 0. ALWAYS 0 or -1!
Any ideas? Thanks in advance.
PS. Also found something really quirky. I can select an entry, then if I deselect (lose the focus of the second combobox) it reverts to the SelectedIndex = 0.

Tim
Top achievements
Rank 1
 answered on 26 Jun 2010
0 answers
117 views
Hi,

i doing one application .i taking this example demo http://demos.telerik.com/aspnet-ajax/grid/examples/programming/accessingcellsandrows/defaultcs.aspx.i wrote pro-grammatically my code is 
  protected void maintaintimetablegrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) 
        { 
            if (e.Item is GridEditFormItem && e.Item is GridEditableItem && e.Item.IsInEditMode) 
            { 
                RadComboBox formRadclass = e.Item.FindControl("formRadclass") as RadComboBox; 
                if (formRadclass != null) 
                { 
                    formRadclass.AutoPostBack = true; 
                    formRadclass.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(formRadclass_SelectedIndexChanged); 
                } 
                RadComboBox formRadSubject = e.Item.FindControl("formRadSubject") as RadComboBox; 
                if (formRadSubject != null) 
                { 
                    formRadSubject.AutoPostBack = true; 
                    formRadSubject.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(formRadSubject_SelectedIndexChanged); 
                } 
 
            } 
 
        } 
        void formRadclass_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) 
        { 
            //first reference the edited grid item through the NamingContainer attribute 
            GridEditableItem editedItem = (sender as RadComboBox).NamingContainer as GridEditableItem; 
            RadComboBox formRadroom = editedItem.FindControl("formRadroom") as RadComboBox; 
            if (formRadroom != null) 
            { 
                formRadroom.Items.Clear(); 
                RadComboBoxItem item1 = new RadComboBoxItem(); 
                item1.Text = "Select Room"; 
                formRadroom.Items.Add(item1); 
                formRadroom.DataSource = Calendermanager.sch_view_class_default_room((editedItem.FindControl("formRadclass") as RadComboBox).SelectedValue.GetInteger()); 
               formRadroom.DataBind(); 
            } 
            RadComboBox formRadSubject = editedItem.FindControl("formRadSubject") as RadComboBox; 
            if (formRadSubject != null) 
            { 
                formRadSubject.Items.Clear(); 
                RadComboBoxItem item2 = new RadComboBoxItem(); 
                item2.Text = "Select Subject"; 
                formRadSubject.Items.Add(item2); 
                int? faciltyid = LogonDetails.Instance.sys_lclvar_default_facility_id; 
                formRadSubject.DataSource = classmarksheetmanager.sch_view_class_subject_lookup((editedItem.FindControl("formRadclass") as RadComboBox).SelectedValue.GetInteger(), faciltyid); 
                formRadSubject.DataBind(); 
            } 
            
        } 
        void formRadSubject_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) 
        { 
            //first reference the edited grid item through the NamingContainer attribute 
            GridEditableItem editedItem = (sender as RadComboBox).NamingContainer as GridEditableItem; 
            RadComboBox formRadTeacher = editedItem.FindControl("formRadTeacher") as RadComboBox; 
            if (formRadTeacher != null) 
            { 
                formRadTeacher.Items.Clear(); 
                RadComboBoxItem item1 = new RadComboBoxItem(); 
                item1.Text = "Select Teacher"; 
                formRadTeacher.Items.Add(item1); 
                formRadTeacher.DataSource = Calendermanager.sch_view_class_subject_teacher_lookup((editedItem.FindControl("formRadclass") as RadComboBox).SelectedValue.GetInteger(), (editedItem.FindControl("formRadSubject") as RadComboBox).SelectedValue.GetInteger()); 
                formRadTeacher.DataBind(); 
            } 
            
 
        } 
 

how to display the dropdownseleted text value  in edit mode .above example take drodowncloumns but am taking in editmode directly dropdowns.How to write the code pro-grammatically above example 
shanker bangari
Top achievements
Rank 1
 asked on 26 Jun 2010
4 answers
106 views
We've updated the ToolsFile.xml to include the following class and css Files.
 <classes>
   
    <class name = "Table- Download" value=".table" />
    <class name = "Bullet" value=".bullet" />
  </classes>

  <cssFiles>
    <item name="/Style Library/styles.css" />
    <!-- temp for phase 1-->
    <item name="/Style Library/ToolsFile.css" />
  </cssFiles>

Everything works fine in IE, but when we test it in Firefox and Chrome the "Table- Download" style is not available from the drop down.

Hope to hear from you soon.
Thanks,
Fu Yuen

Thanks.
Fu Yuen So
Top achievements
Rank 1
 answered on 26 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?