Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
114 views
Hi,
I am trying to get all RadDock and RadDockZone objects. Code goes like this:

First I get all IDs from a page since controls are generatet from code behind:

$('.RadDockingZone').each(function() {
            var testZone = this;
            zoneIDs.push(testZone.id);
        });

$('.RadDockableObjectFixed').each(function() {
          var testDock = this;
          dockIDs.push(testDock.id);
 });

This is a part of code that creates problems:

for (i = 0; i < dockIDs.length - 1; i++) {
        var zone = $find(zoneIDs[i]);
        var dock = $find(dockIDs[i]);        
}

These lines always returns nulls
var zone = $find(zoneIDs[i]);
var dock = $find(dockIDs[i]);     

Any ideas what is causing a problem?
skinflint
Top achievements
Rank 1
 answered on 19 Jan 2010
1 answer
96 views
Hi,

this is am doing one project . I am using rad Ajax controls ,My requirement is RadComboBox SelectedIndexChanged event popup the Radgridview it's ok but when ever click the edit buttton and insertbutton it's refresh and clear the gridview, it,s doesn't working in edit and insert so please send any example it's argent .how to reduce the postback .In this application .am using PreRender event also.

please help me it's argent 



thanks and regards
shanker.b
Daniel
Telerik team
 answered on 19 Jan 2010
3 answers
55 views
dear sir/s,

I am using RadControls for asp.net AJAX 2008 Q3 (2008.3.1314.20)

when using with firefox it works perfectly well but when i viewed same on ie8 submenus are not opening

dont know whats the reason

i am using xml file as menu source

and i am a newbie in this

thanks
Yana
Telerik team
 answered on 19 Jan 2010
3 answers
130 views
I am using a <FormTemplate> to insert rows into a grid. The form by default opens above the existing rows, and directly below the grid column headers. Is it possible to have the edit form open below the last row in the Grid, this way while the edit form is visible, existing rows would appear directly below the grid column headers.
Princy
Top achievements
Rank 2
 answered on 19 Jan 2010
2 answers
122 views
I have created a user control to act as a placeholder for a number of common dialogs and it works just as you would expect.

Except...

One of the windows needs a OnClientClose function and, each calling page is going to need to do something different. So, in my CommonDialogs control I have this ...
    function OpenCommonGroupSubscription(OnClientClose) { 
      var manager = $find("<%= wmCommonDialogs.ClientID %>"); 
      var wnd = manager.getWindowById("<%= winGroupSubscription.ClientID %>"); 
      if (OnClientClose != null && OnClientClose != "") { 
        wnd.add_close(OnClientClose); 
      } 
      wnd.show(); 
      return false; 
    } 

My calling code looks, called from the codebehind of the main page, looks like this ...
LocalManager.ResponseScripts.Add("OpenCommonGroupSubscription('SubscribeToGroups_ClientClose');"); 

And this is the definition of the function in the markup of the main page ...
      function SubscribeToGroups_ClientClose(sender, args) { 
        setTimeout(function() { 
          AjaxRequestWithTarget("<%= btnHiddenPostback.UniqueID %>", "SubscribeToGroups;"); 
        }, 500); 
      }

Now, if I have the definition of the GroupSubscription window on the main page and I have the OnClientClose function name in the <RadWindow> definition, everything works, but the set up described above when the GroupSubscription window closes, I get a JavaScript error ...

a[b] is not a function
http://localhost/v1.1/MyApplication/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-GB%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1208.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-GB%3a6ed19be3-4ef3-4060-9b74-4985886ad7d9%3a16e4e7cd%3aed16cbdc%3af7645509%3a86526ba7%3a874f8ea2%3a11a04f7e%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3a8e6f0d33%3a6a6d718d%3aa7e79140%3ae524c98b%3a4cacbc31%3ab7778d6c%3aaa288e2d%3a58366029%3a19620875%3a33108d14%3abd8f85e4%3a39040b5c%3af85f9819
Line 6

If anyone can shed any light on this, I'd be grateful.
--
Stuart







Stuart Hemming
Top achievements
Rank 2
 answered on 19 Jan 2010
1 answer
98 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
134 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
121 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
131 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"> 
    <a runat="server"></a> 
    <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
69 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
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?