Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
95 views
How to append values in a hiddenfield and assign it to the worklink in customised dialog page.How to get thaese values in default.aspx page in Radeditor.
Rumen
Telerik team
 answered on 19 Jan 2010
2 answers
132 views

Hi
I am unable to get the row on client side event with the telserik.web.UI version 2009.2.826.35
below is the code which i am using

please povide help on this

Regards,
Roshin

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectionList.aspx.cs" Inherits="SelectionList" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
 
<head id="Head1" runat="server">  
 
<title>Select Member</title> 
 
<style type="text/css">  
 
.FilterTable td  
 
{  
 
font: normal 10px Arial, Verdana, Sans-serif;  
 
}  
 
</style> 
 
</head> 
 
<body> 
 
<form id="form1" runat="server">  
 
<telerik:RadScriptManager runat="server" ID="ScMng1">  
 
</telerik:RadScriptManager> 
 
<div> 
 
<telerik:RadGrid ID="GridMember" CssClass="RadGrid" AllowSorting="True" AllowCustomPaging="True" 
 
ShowFooter="True" AllowPaging="True" runat="server" OnNeedDataSource="GridMember_NeedDataSource" 
 
AllowFilteringByColumn="True" AutoGenerateColumns="False" GridLines="None"  
 
Width="100%" BorderStyle="Dotted" CellPadding="0" PageSize="15" GroupingEnabled="False" 
 
OnPreRender="GridMember_PreRender">  
 
<MasterTableView CssClass="MasterTable" DataKeyNames="user_id,last_name,first_name" 
 
BorderColor="#999999" BorderWidth="0px" CellPadding="1" GridLines="Vertical">  
 
<Columns> 
 
<telerik:GridBoundColumn DataField="user_id" HeaderText="User ID" UniqueName="UserID">  
 
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 
 
Font-Underline="False" Wrap="True" /> 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn DataField="last_name" HeaderText="Last Name" UniqueName="LastName">  
 
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 
 
Font-Underline="False" Wrap="True" /> 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn DataField="first_name" HeaderText="First Name" UniqueName="FirstName">  
 
<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 
 
Font-Underline="False" Wrap="True" /> 
 
</telerik:GridBoundColumn> 
 
</Columns> 
 
<ExpandCollapseColumn Visible="False">  
 
<HeaderStyle Width="19px" /> 
 
</ExpandCollapseColumn> 
 
<RowIndicatorColumn Visible="False">  
 
<HeaderStyle Width="20px" /> 
 
</RowIndicatorColumn> 
 
</MasterTableView> 
 
<HeaderStyle CssClass="GridHeader"></HeaderStyle> 
 
<GroupHeaderItemStyle CssClass="GroupHeader"></GroupHeaderItemStyle> 
 
<ItemStyle CssClass="GridRow" BorderStyle="None" BorderWidth="0px"></ItemStyle> 
 
<AlternatingItemStyle CssClass="GridRow"></AlternatingItemStyle> 
 
<FooterStyle CssClass="GridFooter"></FooterStyle> 
 
<PagerStyle CssClass="GridPager" Mode="NextPrevAndNumeric"></PagerStyle> 
 
<ClientSettings> 
 
<Scrolling UseStaticHeaders="True" ScrollHeight="" SaveScrollPosition="False"></Scrolling> 
 
<Selecting AllowRowSelect="True" /> 
 
<ClientEvents OnRowClick="MemberSelected" OnRowMouseOver="SelectRow" /> 
 
</ClientSettings> 
 
<GroupPanel> 
 
<PanelItemsStyle CssClass="GroupPanelItems"></PanelItemsStyle> 
 
<PanelStyle CssClass="GroupPanel"></PanelStyle> 
 
</GroupPanel> 
 
<SelectedItemStyle Font-Bold="True" BackColor="LightSteelBlue" /> 
 
<FilterMenu CssClass="FilterTable" EnableViewState="False" HoverBorderColor="LightGray" 
 
SelectColumnBackColor="DarkGray" TextColumnBackColor="WhiteSmoke">  
 
</FilterMenu> 
 
</telerik:RadGrid> 
 
</div> 
 
<script type="text/javascript">  
 
var selected_member = "";  
 
var oWnd = GetRadWindow();  
 
function GetRadWindow() {  
 
var oWindow = null;  
 
if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog  
 
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)  
 
return oWindow;  
 
}  
 
function CloseAndReload() {  
 
oWnd.BrowserWindow.document.forms[0].selected_member.value = selected_member;  
 
oWnd.BrowserWindow.document.forms[0].submit();  
 
oWnd.Close();  
 
}  
 
function MemberSelected(rowIndex) {  
 
CloseAndReload();  
 
}  
 
function SelectRow(rowIndex) {  
 
var row = window["<%= GridMember.ClientID %>"].MasterTableView.Rows[rowIndex];  
 
selected_member = row.KeyValues["user_id"] + ";" + row.KeyValues["last_name"] + ";" + row.KeyValues["first_name"] + ";";  
 
window["<%= GridMember.ClientID %>"].MasterTableView.SelectRow(row.Control, true);  
 
}  
 
</script> 
 
</form> 
 
</body> 
 
</html> 
 

 

 

roshin
Top achievements
Rank 1
 answered on 19 Jan 2010
1 answer
113 views
In my application i am fixing appointment for all Mondays in Jan using recurrence rules if i make allow edit is false for one Monday that rules is applying to reaming Mondays but according to my requirement the allow edit is false property is only applicable to one monday how can i achive this
Peter
Telerik team
 answered on 19 Jan 2010
5 answers
128 views
Hey everyone,

We tend to have this dilemma with most upgrades from each quarter, but the RadPanelBar First-Level template does not seem to be working correctly after upgrading to Q3 2009.  We position:relative a div up and overlay the contents across the PanelBar header with negative positioning.  While the actual positioning looks correct, the header is rendered un-clickable.

The code that is in the first level template control:
<div> 
  <div class="goToTopDiv"
    <runat="server"></a> 
    <href="#top" id="goToTop" class="goToTop"
      <asp:Literal ID="ltlGoToTopText" runat="server"  
                Text='Go To Top'
      </asp:Literal> 
    </a> 
  </div> 
</div> 

The CSS classes:
.RadPanelBar .goToTopDiv 
    position:relative
    margin-top:-32px
    margin-left:950px
    width:60px
 
.RadPanelBar .goToTop 
    font-size:.88em; 
    text-decoration:none
    color:Black;  
    z-index:2; 

Thanks for the help,
Adam.g

Kamen Bundev
Telerik team
 answered on 19 Jan 2010
1 answer
66 views
I do not know why, but even when the skin of the editor is not assined and when i do use it as default the web page get dameged and all my asp.net menu controls opens. when i do  EnableEmbeddedSkins="false" every thing goes normal but in this way there is no skin for the editor. the project is huge and we are using telerik in most part of it. the dll ver. is 2009.3.1314.35
Rumen
Telerik team
 answered on 19 Jan 2010
1 answer
285 views
Hi,
I'm currently having a problem setting enable or disable a raddatepicker from server side.
First my datePicker is enable due to certain condition in my page. But most of the time he's disable when the page first load and should be enable after some item are selected.

I'm not using javascript to enable or disable the control only using postback and verify the condition that need to be respect.

The thing is when i click the button to show the calendar it doesn't show but i can write date in the dateinput and when the control is disable it works properly.

Also when i remove all those validation my calendar is showing correctly and i'm not having any problem with.

Thx for your time,
Guillaume
Tsvetoslav
Telerik team
 answered on 19 Jan 2010
5 answers
298 views
Hi

In this example:
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultcs.aspx?product=treeview

When you hit submit the text value is sent back, how do I get the ID of the treeview node into the ID of the combo box.

I need the ID of the tree view node when I send the page to the server.

I have code that does this on postback, but I'd like to do it client side if possible.

Andy
Yana
Telerik team
 answered on 19 Jan 2010
1 answer
121 views
how to enable the drag facility for an appointment with out  enabling the Allow Edit property.
Peter
Telerik team
 answered on 19 Jan 2010
1 answer
59 views

Hi

I have a windowManager with 3 windows. Each window is opened using Javascript. My problem is that the Page_Load event is not fired after the window open in IE8. In Firefox and in Google Chorme is it working properly. Thank you for any advice.



<telerik:RadWindowManager ID="RadWindowManager1" runat="server" ReloadOnShow="true" 
        ShowContentDuringLoad="false"
        <Windows> 
            <telerik:RadWindow Behaviors="Close, Move, Minimize" VisibleStatusbar="false" ID="HodnoceniDetail" 
                OnClientClose="HodnoceniDetalil_Close" runat="server" Height="500px" Width="720px" 
                Left="150px" ReloadOnShow="false" ShowContentDuringLoad="false" Modal="true" /> 
            <telerik:RadWindow Behaviors="Close, Move, Minimize, Maximize" VisibleStatusbar="false" ID="IdentifikaceDetail" 
                runat="server" Height="500px" Width="1000px" OnClientClose="IdentifikaceDetalil_Close" 
                Left="150px" ReloadOnShow="false" ShowContentDuringLoad="false" Modal="false" /> 
            <telerik:RadWindow Behaviors="Close, Move, Minimize, Maximize" VisibleStatusbar="false" ID="NovyKontaktDetail" 
                runat="server" Height="700px" Width="870px" OnClientClose="NovyKontaktDetail_Close" 
                Left="150px" ReloadOnShow="False" ShowContentDuringLoad="false" Modal="true" /> 
        </Windows> 
    </telerik:RadWindowManager> 

function openNewKontakt(sender, args) { 
                var jmeno = document.getElementById("<%= hdJmeno.ClientID %>").value; 
                var prijmeni = document.getElementById("<%= hdPrijemi.ClientID %>").value; 
                var spolecnost = document.getElementById("<%= hdSpolecnost.ClientID %>").value; 
 
                var urlparameter = ''
                if (sender) { 
                    jmeno = args.getDataKeyValue('FirstName'); 
                    prijmeni = args.getDataKeyValue('Surname'); 
                    spolecnost = args.getDataKeyValue('Spolecnost'); 
 
                    var idSpolecnsot = args.getDataKeyValue('idSpolecnsot'); 
                    var PersonID = args.getDataKeyValue('id'); 
                    var ContactID = args.getDataKeyValue('idContact'); 
 
                    urlparameter += 'RowID=' + ContactID + '' + '&IdSpolecnost=' + idSpolecnsot + '' + '&IdPerson=' + PersonID + ''
                } 
                urlparameter += '&jmeno=' + jmeno + '' + '&prijmeni=' + prijmeni + '' + '&spolecnost=' + spolecnost + ''
                if (!sender || (sender && args.get_tableView().get_name() != 'DetailTable')) { 
                    OpenWindows(GetRadWindow().get_windowManager(), 'NovyKontaktDetail''NovyKontaktDetail.aspx', urlparameter); 
                } 
            } 

function OpenWindows(radWidnowManager, windowName, windowUrl, urlParameter) { 
                /// alert('OpenWindows'); 
                var userWindow1 = radWidnowManager.getWindowByName(windowName); 
                ///alert(userWindow1); 
                userWindow1.setUrl(windowUrl+'?'+ encodeURI(urlParameter)); 
                 
                var isClosed = userWindow1.isClosed(); 
                userWindow1.show(); 
                if (isClosed) userWindow1.center(); 
                return false
            } 
Georgi Tunev
Telerik team
 answered on 19 Jan 2010
1 answer
106 views
I want to change the word appointment every where that it appears.
What's an easy way to get into the localization text?

I also want to modify the text in the header of the recurrence action dialog. it too uses the term appointment.

thanks
Peter
Telerik team
 answered on 19 Jan 2010
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?