Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 views
In the change timings.jpg figure...inscheduler i given interval 10 min.in alldays 8 can repeated 3 times...how can i change it like 8:20,8:40 like that....
T. Tsonev
Telerik team
 answered on 15 Mar 2010
1 answer
148 views
Hello,

i have a radgrid bound to a list of complex objects. the binding on client side will not show the value of the complex property.
C# class:
public class BladderInstillation : BaseIdentifier  
{  
    public DateTime Date { getset; }  
    public decimal Dosage { getset; }  
    public Agent Agent { getset; }  
}  
 
public class Agent : BaseIdentifier  
{  
    public string Name { getset; }  
    public string AtcCode { getset; }  

Grid column:
<telerik:GridBoundColumn HeaderText="Agent" UniqueName="Agent" DataField="Agent.Name" /> 

Javascript:
$.ajax({  
    type: "POST",  
    url: "MyPage.aspx/Save",  
    data: "{'instillation' : " + Sys.Serialization.JavaScriptSerializer.serialize(instillation) + "}",  
    contentType: "application/json; charset=utf-8",  
    dataType: "json",  
    success: function(data) {  
        for (var i = 0; i < data.d.length; i++) {  
            data.d[i].Date = jsonParseDate(data.d[i].Date).format("dd.MM.yyyy");  
        }  
        var tableView = $find("<%= radGrid.ClientID %>").get_masterTableView();  
        tableView.set_dataSource(data.d);  
        tableView.dataBind();  
        var grid = $find("<%= radGrid.ClientID %>");  
        grid.repaint();  
    }  
}); 

The date and dosage properties will be shown but not the Agent.Name property. How can i achieve this?

Regards,
Dominic
Nikolay Rusev
Telerik team
 answered on 15 Mar 2010
3 answers
132 views
I have setup a radPanel with 3 panel items. No skin is set and each item has its backcolor set to a light gray (#eeeeee). When an item is clicked, the color goes from light grey to dark grey. If the item is collasped, the color stays dark gray. How do I get the backcolor for the item to go back to light grey. I have tried using the item click event and set the backcolor to the color I want when the "Expanded" property = false. The code fires but the color never changes. I also tried creating a css and assigning the cssclass and that didn't work either. What am I doing wrong?

This is my ItemClick code.
    Private Sub radPanelBar1_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles radPanelBar1.ItemClick  
 
        If e.Item.Expanded = False Then  
            e.Item.BackColor = System.Drawing.ColorTranslator.FromHtml("#eeeeee")  
        End If  
 
    End Sub 
 
This is the shell for the PanelBar
<telerik:RadPanelBar ID="radPanelBar1" runat="server" Width="100%" ExpandMode="SingleExpandedItem" AllowCollapseAllItems="true">  
    <Items> 
       <telerik:RadPanelItem Text="Primary Subscriber's Provider Details" CssClass="gridLabelText" 
                Font-Bold="true" Font-Underline="false" BackColor="#eeeeee" ForeColor="#996699">  
             <Items> 
                <telerik:RadPanelItem> 
                    <ItemTemplate> 
 
Each panel item contains a table with multiple hyperlinks.
Yana
Telerik team
 answered on 15 Mar 2010
4 answers
298 views
What is wrong with this filterexpression:

selectConditon = "([IMP_MATCHINGFELD_WERT] = 'NGEE010041')" 
m_G1.MasterTableView.FilterExpression = selectConditon  
m_G1.MasterTableView.DataBind() 

I get the error: "Expression expected"

thanks

Christian
Yavor
Telerik team
 answered on 15 Mar 2010
4 answers
140 views
I have two radEditor on one content page. The markup for the first is:
            <telerik:RadEditor ID="reEditor" Width="965px" Height="225px"   
                EditModes="Design, Html" ToolsFile="~/BasicTools.xml" ToolbarMode="ShowOnFocus" ToolsWidth="450px"   
                EnableResize="False" OnClientLoad="OnClientLoad2" EnableViewState="False" runat="server" > 
                <ImageManager ViewPaths="~/pictures/" /> 
            </telerik:RadEditor> 
 
This editor is for editing content. The next edior is just for showing content written by an other user. The markup looks like this:
        <telerik:RadEditor ID="reDeveloper" Width="965px" Height="175px"   
            EditModes="Preview" ToolbarMode="ShowOnFocus" EnableResize="False" EnableViewState="False"   
            OnClientLoad="OnClientLoad" runat="server" ToolsWidth="10px">  
        </telerik:RadEditor> 
 
The functions OnClientLoad and OnClientLoad2 is like this:
<script type="text/javascript" > 
<!--  
    function OnClientLoad(editor, args) {  
        editor.get_toolContainer().style.display = 'none'; // Hide ToolBar  
    }  
 
    function OnClientLoad2(editor, args) {  
        var style = editor.get_contentArea().style;  
        style.fontFamily = 'Verdana';  
        style.fontSize = 13 + 'px';  
    }    
 
--> 
</script> 
When I run this page there is a gray area on the bottom of the readonly editor as shown in the enclosed attachement.
How do I get rid of it?

Erling Ervik
Top achievements
Rank 1
 answered on 15 Mar 2010
2 answers
110 views
I have an asp.net page that has
  <telerik:RadWindow runat="server" Width="700px" Height="560px" VisibleStatusbar="false" 
                NavigateUrl="Explorer.aspx" ID="ExplorerWindow" Modal="true" Behaviors="Close,Move"  > 
            </telerik:RadWindow> 
  function OpenFileExplorerDialog()  
        {  
            var wnd = $find("<%= ExplorerWindow.ClientID %>");  
            wnd.show();  
        } 
  it will open a RadFileExplorer.  I ahve the code set up to not open the file, but whn they double click the file I want it to select the file, close the radwindow and update the textbox on the parent page.
 <asp:TextBox ID="fileName" runat="server" Width="250px"></asp:TextBox> 


How can I do this?
Lini
Telerik team
 answered on 15 Mar 2010
1 answer
135 views
Hi,

Title should read RadWindow open from URL - sorry

I have a image gallery app. Thumnails are inside a DataList and the full image is shown in a tooltip.

What I would like to do is be able to share links to specific images - so for example something like this

http://www.site.com/123/65342/image.aspx

Where 123 would be read and open up that album but then also 65432 would be read and open up RadWindow with that image in it on top.
I hope this makes sense but is it possible?

Cheers,

Jon
Georgi Tunev
Telerik team
 answered on 15 Mar 2010
1 answer
297 views

Hi,

My program was working fine until I create a Master content page. I need to set values of some controls on a content page load using javascript and I am not able to find the controls on the content page. I am using a external .js file for the javascript funtion. Following is my Master Page code.

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!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>
    <title>Untitled Page</title>
     <link rel="Stylesheet" type="text/css" href="StyleSheet/calendar-blue.css" />
    <link rel="Stylesheet" type="text/css" href="StyleSheet/template.css" />
    <script type="text/javascript" src="JS/JScript.js"></script>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <div id="divMasterPageContent">
   
   <!-- START Page Body -->
   <table id="tblCenterContent">
    <tr valign="top" height="100%">
     <!-- START Page Body - Left Panel -->
     <td>
         <asp:ContentPlaceHolder id="cntContent" runat="server">        
          </asp:ContentPlaceHolder>
     </td>
     <!-- END Page Body - Right Panel -->
    </tr>    
   </table>
   <!-- END Page Body -->   
  </div>   
    </form>
</body>
</html>

Below is my Content page code.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default1.aspx.cs" Inherits="_Default1"
    MasterPageFile="~/MasterPage/MasterPage.master" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content runat="server" ID="Default2" ContentPlaceHolderID="cntContent">
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="LoadingPanel1">
            <div style="float: left; width: 500px">
    <asp:TextBox ID="txtTest" runat="server" Text="abc"></asp:TextBox>
</div>
</telerik:RadAjaxPanel>
</asp:Content>

My Js code is

 

function

 

getTextValuevalue()

 

{

 

if(document.getElementById('<%=TransID.ClientID%>')!=null)

 

{
}

}

It is returning me null value.

 

 

T. Tsonev
Telerik team
 answered on 15 Mar 2010
1 answer
137 views
Hi,

I've just upgraded to Telerik Ajax 2010.Q1 and on NodeClick event, this code:

Page.Response.Redirect("<url>", false);

also tried:
Server.Transfer("<url>");

no longer works.. The page seems to postback but does not go to destination like it did before upgrade.

Best Regards
Eduardo Barbosa

Veselin Vasilev
Telerik team
 answered on 15 Mar 2010
2 answers
179 views
I've try Postback after OnClientItemClicking in my ContextMenuItem but it doesn't work, function confirmCallBackFn always run after function onClientContextMenuItemClicking  so allowPosback aslways is FALSE,  Please help


        <cc3:RadContextMenu ID="RadContextMenu1" runat="server" OnClientItemClicking="onClientContextMenuItemClicking" 
            OnItemClick="RadContextMenu1_ItemClick" OnInit="RadContextMenu1_OnInit"
            <Items> 
                <telerik:RadMenuItem Value="AddNick" Text="" /> 
                <telerik:RadMenuItem Value="Edit" Text="" /> 
                <telerik:RadMenuItem Value="Delete" Text="" Font-Bold="true" /> 
            </Items> 
        </cc3:RadContextMenu> 


var allowPosback = false
function confirmCallBackFn(arg, eventArgs) { 
                    if (arg) { 
                        allowPosback = true
                    } 
 
function onClientContextMenuItemClicking(sender, eventArgs) { 
                    var item = eventArgs.get_item(); 
                    item.get_menu().hide(); 
                     
                    switch (item.get_value()) { 
                        case "Delete"
                            //var result = confirm('<%= LanguageManager.GetGlobalString(MessageUtility.ConfirmDialog_ConfirmDeleteMessage) %>'); 
                            var message = "<%= LanguageManager.GetGlobalString(MessageUtility.ConfirmDialog_ConfirmDeleteMessage) %>"
                            var event = "event"
                            var width = 300; 
                            var height = 100; 
                            var title = "<%=LanguageManager.GetGlobalString(MessageUtility.ConfirmDialog_CustomTitle)%>"
                            radconfirm(message, confirmCallBackFn, width, height, null, title); 
                            eventArgs.set_cancel(allowPosback); 
                            break
                    } 
                } 



Georgi Tunev
Telerik team
 answered on 15 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?