Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
319 views
Hello All,

Can we apply Mindate Property to GridDateTimeColumn in radgrid?
Please give me with example.....


vinod
Top achievements
Rank 1
 answered on 07 Oct 2008
2 answers
177 views
I've got a TreeView built up manually in code-behind by looping recursively through a custom XML document. Basically for each node in my XML document I create a new TreeView node and add it to the TreeView node collection, hierarchically. This works fine.

Clientside, I use a contextmenu to offer functionality to the user to build up the TreeView. One of those functions is called "Add a Subnode". What happens basically when clicking that function is a postback to the server where I create a new XML node in my custom document, at the right position based on the parameters and then reload the TreeView by calling the recursive function. This works fine.

What I'd like to do is the following: after adding a new subnode, automatically put the new node in edit mode when the page reloads so that the user can immediately start typing. Is there an easy way to do this? What I've come up with so far is registering a StartupScript or ScriptBlock that calls the following javascript function:

function editInit(nodeValue){
 var tree= $find("<%= RadTreeView1.ClientID %>"); 
 var node = tree.findNodeByValue(nodeValue); 
 tree._startEdit(node);
}

This does not work because I get javascript errors saying used methods are not supported on findNodeByValue due to the RadTreeView not being fully loaded yet. However, when i combine calling the editInit function with a setTimeout function (100 milliseconds), so that it waits a few milliseconds before calling the function, it works perfectly. However, I don't like this approach, because I don't know how reliable it's going to be once it's deployed online and the tree grows in size.

Isn't there an easier way to do this? Can't I set a property of a RadTreeNode which puts the node in Edit mode, the same way the property "Selected" works?

Bert Van der Auwera
Top achievements
Rank 1
 answered on 07 Oct 2008
3 answers
87 views
Hi, after much difficulty, managed to run the example of LoadOnDemand, however is not working 100%.
I mouse over the image not doing anything, that is, is not running ProductDetails.ascx ... Not error occurs, does not appear anything ... can someone help me? I am VERY needing emergency ...
Silderado
Top achievements
Rank 1
 answered on 07 Oct 2008
2 answers
119 views
I have set up a web site and i've tried to integrate sharepoint into it using <iframe>.  Something is being lost in the authentication process because i cannot authenticate to my sharepoint site through my .net site.  I attempted the same thing via a RadWindow, and the functionality would be perfect...if i can get it to authenticate.

I was wondering if anyone has ever tried this and was successful. Please help if you can.

Thanks.
Wack
Top achievements
Rank 1
 answered on 07 Oct 2008
1 answer
86 views
Hi,

When radgrid add new, edit, delete clicked then radpanelbar closed itself  closed itself (radgrid inside radpanelbar).

Below is the aspx code:

 

<radC:RadPanelBar ID="RadPanelBarPhysicianInformation" ExpandMode="SingleExpandedItem" Width="100%" runat="server" OnItemClick="RadPanelBarPhysicianInformation_ItemClick" >

 

 

<CollapseAnimation Duration="100" Type="None" />

 

 

<ExpandAnimation Duration="100" Type="None" />

 

 

<Items >

 

 

<radC:RadPanelItem Text="Constitution" >

 

 

<items>

 

 

<radC:RadPanelItem Value="PhysicianOptions" runat="server">

 

 

<ItemTemplate>

 

 

<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

 

<

Telerik:RadGrid ID="rgApptType1" EnableAJAX="True" runat="server" Skin="WebBlue" Width="100%" ShowStatusBar="True"

 

 

AutoGenerateColumns="False" PageSize="7" AllowSorting="True" AutoGenerateDeleteColumn="true"

 

 

ValidationSettings-CommandsToValidate="Insert" AutoGenerateEditColumn="True"

 

 

AllowPaging="True" GridLines="None" >

 

 

<PagerStyle Mode="NumericPages"></PagerStyle>

 

 

<MasterTableView CommandItemDisplay= "Top" EditMode="InPlace" DataKeyNames="ApptEncounterData_ID">

 

<

Columns >

 

 

 

<telerik:GridTemplateColumn HeaderText="AppointmentType Name" UniqueName="ApptType_ID">

 

<

ItemTemplate>

 

 

<asp:Label ID="lblApptType_ID" runat="server" Text='<%# Eval("ApptEncounterData_Field")%>'></asp:Label>

 

 

</ItemTemplate>

 

</

telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Display Order" UniqueName="ApptType_Name">

 

<

ItemTemplate>

 

<

asp:Label ID="lblApptType_Name" runat="server" Text='<%# Eval("ApptEncounterData_DisplayOrder")%>'></asp:Label>

 

</

ItemTemplate>

 

</

telerik:GridTemplateColumn>

 

</

Columns>

 

</

MasterTableView>

 

</

Telerik:RadGrid> </ItemTemplate>

how to stop to close the radpanel when click on radgrid?

Thanks,
Puru

 

Princy
Top achievements
Rank 2
 answered on 07 Oct 2008
2 answers
94 views
Hi,

I am using the tabstrip with the office2007 skin. I want to change the colors slightly. I would like the selected tab font color to be green and the unselected tab font color to be red. Simple request, but I cannot seem to do this.

I have tried: (SelectedCssClass property = 'selectedtab')

.RadTabStrip_Office2007 .rtsLevel1 .rtsLI,  
.RadTabStrip_Office2007 .rtsLevel1 .rtsLink  
{  
    colorred !important;  
}  
 
 
.RadTabStrip_Office2007 .selectedtab  
{  
    colorgreen !important;   
}  
 


However, the !important of my first style always overwrites the selected style. If I do not have !important then the default for the skin is used.

Any help much appreciated.

Thanks,
Martin

 

 

Martin
Top achievements
Rank 1
 answered on 07 Oct 2008
4 answers
140 views
Hi!

I have a script error when using RadTextBox and RadFormDecorator with decoratedcontrols set to all or textbox.

Here is the sample aspx code:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="InvestmentComparison.WebForm3" %>
<%@ 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 runat="server">
    <title></title>
</head>
<body>
   <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
        <telerik:RadFormDecorator id="Radformdecorator1" runat="server" decoratedcontrols="All"
            skin="Web20" />
    <div>
       
        <telerik:RadTextBox ID="RadTextBox1" runat="server">
        </telerik:RadTextBox>
    </div>
    </form>
</body>
</html>
The error I received is Invaid argurment:
_54.height=_4c+"px";


Thanks
fzanoni
Top achievements
Rank 1
 answered on 07 Oct 2008
2 answers
176 views
I've been trying to follow the template example from the RadCombo online demo.   Is there example on creating a RadCombo that contains a RadGrid that supports Type ahead?    I also need the grid to support sorting and paging. 

Thanks.
Randy
Top achievements
Rank 1
 answered on 07 Oct 2008
2 answers
118 views
Hi,

Could someone please give me a hint changing the selected date value appearing in the text? I would like to change it to steelBlue.

To elaborate more, user selected date from date picker and it appears in the text box. I want the forecolor of the textbox to be changed.

I tried changing the forecolor but no effect.

Thanks.
Milan G
Milan Gurung
Top achievements
Rank 1
 answered on 07 Oct 2008
4 answers
226 views
Hi All,

I wonder what am I doing wrong here.

All I want to do is to get a reference to a MasterTableView object on client side.  But it me a message saying "Undefined" when I tried to alert it.  When I tried to access its properties, it doesn't recognize them.  Shouldn't it be an Object though?

var grid = <%= rgDRFormASPPFCaseInfo.ClientID %>;

var tableView = grid.MasterTableView;

alert(tableView);



Please help

Thanks again
Ismail
Top achievements
Rank 1
 answered on 07 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?