Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
Hi

I feel this must be simple, but I haven't fixed it...

I have a page with a flash file(swf). (It is a map from Fusion Maps).

When a map element is clicked I am opening a RadWindow using javascript and passing a parameter.
Content comes from a database.

Everything works fine except that the part of the window that overlaps the map is in the layer below
the map instead of floating above it. I tried setting z-index="99000" as a window parameter but to no avail.

The flash map does not have an explicit z-index set.

Can you help me?

Thanks

Clive
Svetlina Anati
Telerik team
 answered on 30 Jun 2010
1 answer
150 views
Hi,

I've added a RadComboBox in the FilterTemplate of a RadGrid.

<FilterTemplate> 
    <telerik:RadComboBox  
        ID="filterNationalities"  
        DataSourceID="dbNationalities"  
        DataValueField="ID"  
        DataTextField="description"  
        AutoPostBack="false"  
        runat="server" 
        AppendDataBoundItems="true" 
        SelectedValue='<%#((GridItem)Container).OwnerTableView.GetColumn("NationalityID").CurrentFilterValue %>' 
                               OnClientSelectedIndexChanged="FilterByNationality"  
                                            OnItemCreated="TranslateNationalities" 
         Width="75" 
         ZIndex="10000000"> 
             <Items> 
                 <telerik:RadComboBoxItem /> 
             </Items> 
</telerik:RadComboBox> 
                                             
                                            <telerik:RadScriptBlock  ID="scriptFilterNationality"  runat="server"> 
                                                <script type="text/javascript"> 
                                                    function FilterByNationality(sender, args) { 
                                                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>"); 
                                                        tableView.filter("NationalityID", args.get_item().get_value(), "EqualTo"); 
                                                    } 
                                                </script> 
                                            </telerik:RadScriptBlock> 
                                        </FilterTemplate> 

This RadCombobox is bound to a <asp:SqlDataSource ID="dbNationalities" runat="server" />.
Everything works fine but I want to translate the items of the RadCombobox.
I'm using OnItemCreated:

protected void TranslateNationalities( object sender, RadComboBoxItemEventArgs e ) { 
        RadComboBoxItem dataItem = e.Item; 
        dataItem.Text = "translate text"; 
} 
 

But this doesn't work. Can I change the text of the items if this is bind to a datasource?
Thanks!
Shinu
Top achievements
Rank 2
 answered on 30 Jun 2010
7 answers
255 views


<telerik:GridTemplateColumn DataField="City" HeaderText="City" UniqueName="City">  
<EditItemTemplate> 
<telerik:RadComboBox ID="CB_City"  AppendDataBoundItems="true" Height="100px" runat="server" Skin="Black" 
DataTextField="CityName" DataValueField="CityName" DataSourceID="SqlDataSourceCity"  
SelectedValue='<%# Bind("City")%>' AutoPostBack="true">  
</telerik:RadComboBox> 
</EditItemTemplate> 
<ItemTemplate> 
<%# Eval("City")%> 
</ItemTemplate> 
</telerik:GridTemplateColumn>

		
<
asp:SqlDataSource
ID
="SqlDataSourceTown"
runat="server"
ConnectionString="<%$ ConnectionStrings:connectionString %>"
ProviderName
="System.Data.SqlClient"
SelectCommand
="sp_town_list"
SelectCommandType="StoredProcedure">
<SelectParameters>
     <asp:ControlParameter   
ControlID="??????????????????"     <<<<<<<< CB_City ControlID Doesnt work :((
DefaultValue="New York"   
Name="CityName" 
PropertyName="SelectedValue"   
Type="String" />
</SelectParameters>




kerim
Top achievements
Rank 1
 answered on 30 Jun 2010
2 answers
200 views

Hi All,

I have used telerik tree view control in my code to select users as info and to field.

<telerik:RadTreeView ID="tvToDirectorate" runat="server" CheckChildNodes="True" OnNodeClick="tvToDirectorate_NodeClick"

                    OnDataBinding="tvToDirectorate_DataBinding" OnNodeDataBound="tvToDirectorate_NodeDataBound1"

                    DataFieldParentID="lParentID" DataTextField="sDisplayName" DataValueField="lValueID"

                    DataFieldID="lValueID" OnNodeExpand="tvToDirectorate_NodeExpand" >

<NodeTemplate>

<table cellpadding="0" cellspacing="0" width="100%" align="right">

<tr>

<td style="width: 50%">

      <asp:CheckBox ID="rdTo" name='<%# Container.Value %>' runat="server" GroupName="toinfo" Visible="true" />

      </td>

      <td style="width: 50%">

      <asp:CheckBox ID="rdInfo" name='<%# Container.Value %>' runat="server" GroupName="toinfo" Visible="true"/>

       </td>

       </tr>

</table>

</NodeTemplate>

</telerik:RadTreeView>

The checkboxes are dynamically creating name with different IDs. Now I want following.

1.       I want to access name in JavaScript so that I would be able to select one checkbox as “Info” or “To”. Currently at a time both can be selected but that’s not good.

2.       Secondly if I am using radio button that is a good choice. But I want to deselect when double click radio button. And I cannot be able to access the radio button on run time.

On main window I am using telerik grid control where using

<EditFormSettings EditFormType="WebUserControl" PopUpSettings-Modal="true" PopUpSettings-Width="800px" UserControlName="~/UserControls/ucMailRecipient.ascx">

<PopUpSettings Modal="True" Width="800px" />

</EditFormSettings>

When click on “Add Recipients” popup window with “Modal=True” open where we selects the users.

We cannot use “document.getElementById("rdTo").checked;” since its dynamically creating.

And may be name should like “$ctl_TreeView_”  etc may be.

Please if anybody helps to tackle this problem. Many thanks for your help.

Thanks

Princy
Top achievements
Rank 2
 answered on 30 Jun 2010
1 answer
179 views
I have a RadGrid with paging property and GridClientSelectColumn.Checkbox selection is lost while moving on to the  next page in RadGrid.How can I solve this problem?Please help me. 
Pavlina
Telerik team
 answered on 30 Jun 2010
2 answers
121 views
This would be useful when working through a batch of items to keep track the last touched row item. I tried setting AllowRowSelect but that requires the user to click somewhere else on the row to change the style, and not on button nor links. Thanks for any help on this.
Princy
Top achievements
Rank 2
 answered on 30 Jun 2010
1 answer
118 views
i have some controls in page containing form. it also contains a radeditor. if i type some thing in the editor and press enter key for new line, it shows no problem. then if click on some other control in the same page and the control has autopostback=true, the new line in the editor is replaced by %0. THIS HAPPENS IN SAFARI BROWSER.

Ex.
Abcdfdfdkf
asdsakfl
dfdsfldf


this gets replaced as
Abcdfdfdkf%0asdsakfl%0dfdsfldf

plz suggest something on this, why it happens.
Lini
Telerik team
 answered on 30 Jun 2010
1 answer
104 views
I am usinge the Editor to create a form for data entry.

Do you have any code snippets to help me understand how I enter list items into a Select and create a group of radio buttons?

Your help would be much appreciated.

Thanking you in anticipation.

Roger
Rumen
Telerik team
 answered on 30 Jun 2010
1 answer
97 views
I am trying to find a way to attach event handler in javascript to completion of ajax response in radgrid. I cannot find a way to do it.

1. RadGrid does not recognize OnReponseEnd in ClientSettings>ClientEvents
2. RadAjaxManagerProxy does not expose ClientEvents at all

Can somebody enlighten me how to do it?
SamJ
Top achievements
Rank 1
 answered on 30 Jun 2010
1 answer
131 views

hi all,

i am new to ajax. i have downloaded AjaxControlToolkit 3.5 and right click on the toolkit and browse to the AjaxControlToolkit.dll

now i have all the ajax control in but i am not able to drag and drop AutoCompleteextender and some other controls to the design view

but at the same some controls can be draged and droped in to the design view
i have right click on the Textbox but i cant find "Add Extender" in the option

Please help

Kind  Regards

SamJ
Top achievements
Rank 1
 answered on 30 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?