Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
164 views
I was wondering if there is an example on how to use a pop up calendar without the date picker control? I basically have a label/hyperlink that is a date. I want the user to be able to click on the label and have the calendar appear underneath (and right-aligned) with the label. Then from there i want to take the date selected and put it in the label.

So in other words, I want to have the calendar drop down just like with the date picker control, but i'm not using a text box, etc. I've seen examples on choosing a different location for the pop up but not how to use the pop up without the standard text box and calendar icon, etc.

Any ideas?

Thanks,
Levi
Levi
Top achievements
Rank 1
 answered on 06 Apr 2009
4 answers
215 views
Is there a way to hide the toolbar in the editor from print in window.onbeforeprint() ?
I cannot find any API to do so, thanks for the help.

<table id="txtNewCommentWrapper" cellpadding="0" cellspacing="0" style="table-layout:auto;width:100%;height:100%;">

Tried these but no effects under IE7.

document.getElementById("txtNewCommentWrapper").style.display = "none";
document.getElementById("txtNewCommentWrapper").style.visibility = "hidden";
Lenny_shp
Top achievements
Rank 2
 answered on 06 Apr 2009
0 answers
152 views
Hello I have tried for many hours

1) set radtoolbar to 

 

EnableEmbeddedBaseStylesheet=false EnableEmbeddedskin=false

 

set skin to my skin name
registered on aspx page both base css and skin.css in orderly fashion.

2) Toolbar response to new skin but not the new base css (toolbar.css)

This is Q1 2009, i looked in forum but these are pretty much steps... what am i missing?
Ifdev02
Top achievements
Rank 1
 asked on 06 Apr 2009
9 answers
263 views
hi all,
i m trying to bind grid from client side and i have an issue..
i m useing PageMethods and loading business object from IList, in IList i have custom objects like this;

class A
{
    ..
    public strng x {get..set..}
    public B b {get..set..}
    ..
}

so the data source is like IList<A> ..

on client side, i can see all of values each A object  (while debugging javascript) but grid can not show B.Name
i m using bound column like this;

<

 

telerik:GridBoundColumn DataField="B.Name" HeaderText="Name" UniqueName="B.Name">  

 

</telerik:GridBoundColumn>

how can i solve this problem?

thanks in advance..

 

 

Pavlina
Telerik team
 answered on 06 Apr 2009
1 answer
97 views
Hello,

i have a page with a formview in DefaultMode="Edit" and a RadAjaxManager. If i click the first time on the update button everything works fine. Now i click the second time on the update button, no new values will be updated. The NewValues property in the UpdatingEvent contains the values from the first update but not the currently control values.
If i use a normal PostBack or the Microsoft UpdatePanel, everything works fine.
Is this a known problem or is there a solution?

Best Regards,
Dominic
Georgi Krustev
Telerik team
 answered on 06 Apr 2009
5 answers
338 views

When I export  my grid which contains some GridDropDownColumn to Excel, the DataField of the GridDropDownColumn is exported, and not the ListTextField.

Is it possible to change this behavior?

Thanks

Eric

itmanager@malibuboats.com
Top achievements
Rank 1
 answered on 06 Apr 2009
1 answer
184 views
Hi Everyone,

Our website allows the user to change their culture on the fly.
For example one user may be set to "fr-FR" while another set to "en-GB".

I have a radgrid with GridNumeric columns and I would like to format the numbers based on the user 's selected culture.
All the examples I can find on this site set the DataFormatString manually on each column, surely there is a way to specify the Culture for the grid which would then automatically format numbers accordingly?
If this is not the case how do I proceed as the DataFormatString will change depending on the culture as many cultures have different decimal and grouping separators?
Yes I could create a switch statement but then the code would have to be changed each time we support a new language.

Just for information purposes I am creating the grid completely in code behind in the Page_Init.

Many thanks
Antony







Daniel
Telerik team
 answered on 06 Apr 2009
1 answer
132 views
Hi
I am working on RADGRID.
My Requirement is like this
In My Grid in the all the coloumns contains(int) values from database
I alreaddy made a grid with cell Selection
My Problem is
I can any Cell in Grid(multipule)Selection ineed to get that Seleted Cell values.
I have to send the sum of all the selected values to the tooltip
Plz help to solve the issue
Thanks in Advanace
My code is like this
Gotit.Aspx

<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="gotit.aspx.cs" Inherits="dgtooltip.gotit" %>

 

<%

@ 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>

 

 

<style type="text/css">

 

 

.HoverClass

 

{

 

background-color: aqua;

 

 

}

 

.DefaultClass

 

{

 

background-color: white;

 

 

}

 

.ClickClass

 

{

 

background-color: blue;

 

}

</

 

style>

 

</

 

head>

 

<

 

script type="text/javascript">

 

 

function HandleCellClick(sender, args) {

 

 

var targetCell = args.get_domEvent().target;

 

sender.get_masterTableView().fireCommand(

"CellClick", args.get_itemIndexHierarchical() + "|" + targetCell.innerHTML);

 

}

 

 

function RowCreated(sender, eventArgs)

 

{

 

var dataItem = eventArgs.get_gridDataItem();

 

 

 

for (var i = 0; i < dataItem.get_element().cells.length; i++) {

 

dataItem._element.cells[i].onmouseover =

function() {

 

 

this.className = "HoverClass";

 

};

dataItem.get_element().cells[i].onmouseout =

function() {

 

 

var cssName = this.selected ? "HoverClass" : "DefaultClass"

 

 

this.className = cssName;

 

 

return;

 

};

dataItem.get_element().cells[i].onclick =

function() {

 

 

this.selected = this.selected == true ? false : true;

 

 

this.className = "ClickClass";

 

};

}

}

</

 

script>

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

 

<telerik:RadScriptManager runat="server">

 

 

</telerik:RadScriptManager>

 

 

 

<div>

 

<%

-- <asp:HiddenField ID="HiddenField1" runat="server" />--%>

 

 

 

<asp:SqlDataSource ID="SqlDataSource1" runat="server"

 

 

ConnectionString="<%$ ConnectionStrings:ULTIMATE_NEWConnectionString2 %>"

 

 

SelectCommand="select id,id,id,ID from CustomerMaster"></asp:SqlDataSource>

 

 

<asp:Label ID="Label1" runat="server"

 

 

style="z-index: 1; left: 280px; top: 47px; position: absolute; height: 39px; width: 262px"

 

 

Text="Label"></asp:Label>

 

 

</div>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"

 

 

GridLines="Both"

 

 

style="z-index: 1; left: 10px; top: 88px; position: absolute; height: 105px; width: 531px">

 

 

<ClientSettings>

 

 

 

<ClientEvents OnRowCreated = "RowCreated" ></ClientEvents>

 

</

 

ClientSettings>

 

<

 

HeaderContextMenu>

 

<

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

</

 

HeaderContextMenu>

 

<

 

MasterTableView AutoGenerateColumns="False" DataKeyNames="id,id1,id2,ID3"

 

 

DataSourceID="SqlDataSource1">

 

<

 

RowIndicatorColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

RowIndicatorColumn>

 

<

 

ExpandCollapseColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="id" DataType="System.Int16" HeaderText="id"

 

 

ReadOnly="True" SortExpression="id" UniqueName="id">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="id1" DataType="System.Int16"

 

 

HeaderText="id1" ReadOnly="True" SortExpression="id1" UniqueName="id1">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="id2" DataType="System.Int16"

 

 

HeaderText="id2" ReadOnly="True" SortExpression="id2" UniqueName="id2">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="ID3" DataType="System.Int16"

 

 

HeaderText="ID3" ReadOnly="True" SortExpression="ID3" UniqueName="ID3">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

</

 

MasterTableView>

 

<

 

FilterMenu>

 

<

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

</

 

FilterMenu>

 

 

</telerik:RadGrid>

 

 

</form>

 

</

 

body>

 

</

 

html>

Gotit.CS File

 

using

 

System;

 

 

 

using

 

System.Collections.Generic;

 

 

 

using

 

System.Linq;

 

 

 

using

 

System.Web;

 

 

 

using

 

System.Web.UI;

 

 

 

using

 

System.Web.UI.WebControls;

 

 

 

using

 

Telerik.Web.UI;

 

 

 

using

 

System.Windows.Forms;

 

 

 

using

 

System.Data;

 

 

 

using

 

System.Collections;

 

 

 

 

namespace

 

dgtooltip

 

{

 

 

public partial class gotit : System.Web.UI.Page

 

 

 

 

{

 

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

}

 

protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)

 

{

 

 

if (e.Item is GridDataItem)

 

{

 

foreach (GridTableCell cell in e.Item.Cells)

 

{

cell.ToolTip = cell.Text;

}

}

}

 

 

protected void RadGrid1_SelectedIndexChanged(object sender, EventArgs e)

 

{

Label1.Text = RadGrid1.SelectedItems.ToString();

}

 

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

if (e.CommandName == "CellClick")

 

{

 

string[] args = e.CommandArgument.ToString().Split('|');

 

RadGrid1.Items[

int.Parse(args[0])].Selected = true;

 

RadAjaxManager1.Alert(

"Cell contents: \n" + args[1]);

 

}

}

}

}

Georgi Krustev
Telerik team
 answered on 06 Apr 2009
1 answer
108 views
Hi

We are upgrading to Q3 2008 RadGrid (from Q3 2007). We have grid with Filter columns and enabled reorder on client. When I reorder column the Filter menu does not get reorder along with Column. Is this supported? How can I make sure that Filter Menu also get reorder with the Column. For example, DateTime Column have filter menu (Equal To) and Text Column have filter Menu (Contains), When I move DateTime Column before Text Column the DateTime column filter menu changes to (Contains).

Also, In Q3 2007 RadGrid, the DateTime column has 'Contain' filter, but look like it has being removed from Q3 2008 RadGrid.

Thanks
Manoj

 
Georgi Krustev
Telerik team
 answered on 06 Apr 2009
4 answers
182 views
Hi Telerik Support.

I am using the Tabstrip with pageviews, I am following the example Load on Demand RadPageview...

In my case I am loading child tabs with the associated page view, then dynamically adding controls to the page view.

When the page first loads I can click on all the child tabs and see my content rendered. 
So here is the problem, I can click on child page 1 it renders.. then I click on other child tabs (child page 2) it renders.  When I go back and click on child page 1, my content is gone. 
I know this must be a view state issue...
So any help would be appreciated.
Thanks
Julie
Julie
Top achievements
Rank 1
 answered on 06 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?