Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
147 views

<%

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

 

 

<%

@ Register Assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

 

 

 

Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

 

 <%

@ Register Assembly="Infragistics35.WebUI.WebCombo.v9.1, Version=9.1.20091.2067, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.WebUI.WebCombo" TagPrefix="igcmbo" %>

 

 

<!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">

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>

 

 

<div>

 

 

<table>
<tr>

 

 

</tr>

 

 

<tr>

 

<td width="110px">

 

</td>

 

 

<td>

 

 

<igcmbo:WebCombo ID="WebCombo1" runat="server">

 

 

<ClientSideEvents AfterDropDown="test" />

 

 

</igcmbo:WebCombo>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

<telerik:RadToolTip ID="RadToolTip1" Text="test" TargetControlID="WebCombo1" Position="BottomRight"

 

 

RelativeTo="Element" ShowEvent="FromCode" runat="server">

 

</telerik:RadToolTip>

 

</div>

 

 

</form>

 

 </b

 

ody>

 

 </

 

html>

 

 <

 

script language="javascript" type="text/javascript">

 

 

 

 

function test() {

 

var rttToolTip = $find("<%= RadToolTip1.ClientID %>");

 

 rttToolTip.show();

}

 

</

 

script>

 

 

 

Svetlina Anati
Telerik team
 answered on 20 Aug 2009
1 answer
110 views
Hi there,

I have a very basic question about data grouping that I cannot find an answer to in the on-line demos.  Suppose I have the following data:

Age      Gender
----       ----------

30        M
40        F
50        M
30        F
40        M
50        F
30        M
40        F
50        M

I need to display the number of men and women in each age category in a graph similar to the one at the top of http://demos.telerik.com/aspnet-ajax/chart/examples/functionality/datatable/defaultcs.aspx.  In other words, I need the x-axis to have three points labelled 30, 40 and 50, and then two columns for each point with the y-values indicating the total numbers (so for x = 30, we have y = 2 for Men and y = 1 for Women, and so on).

Please give me step-by-step instructions for how to do this, or point me to the relevant place in the documentation.  I have struggled for the last two hours and so far have not managed to understand the charting API from the on-line examples.

Thanks,

Ed Graham

Ves
Telerik team
 answered on 20 Aug 2009
1 answer
165 views
Hello,

We have a bunch of CSS files that we inherited from another vendor and need to use them to style our website.  We have a content area of a master page that has a defined style by these CSS files.  This seems to be causing a problem for the rendering of our RadScheduler control.  The issue comes in with a specific file that is defining styles for tables within the class defined by the content section.  There are a lot of styles being set to <table>, <th>, <tr>, and <td> elements.  The RadScheduler seems to be inheriting these settings when it is rendered on the page.

Is there a way to tell the RadScheduler to ignore the settings in these CSS files and use it's own rules for styling?

Thanks,
Warren
Alex Gyoshev
Telerik team
 answered on 20 Aug 2009
3 answers
174 views
Hi All

I have a user control containing a scheduler in the ascx pageload event I get all the data for the scheduler

 

If Not Page.IsPostBack Then

 

LoadSessions(JobPlan_ID, Cycle)

 

Me.lblCycle.Text = "Week " & Cycle

 

 

End If

 


The control is called from my aspx which loops to create the correct number of instance on the control (The Load Session()).
If Not Page.IsPostBack Then

 

LoadWeeks()

 

End If

 


I'm having trouble maintaining state across postbacks.

Using the page loads as shown whenever I do a postbask the controls disappear, if I move the loader outside of the page.ispostback code then they appear but as expected I loos all user completed fields (on a separate edit area)

What am I doing wrong?

Andy
Andy Green
Top achievements
Rank 1
 answered on 20 Aug 2009
7 answers
311 views
Hi,

I have tried the following code of RADScheduler to insert data into the tables. The tables are correctly made and the update function is working fine. I cannot find any error in my program perhaps someone could show me one.

Thank you,
Manan Podar

The code for the insert function-

public

 

override void Insert(RadScheduler owner, Appointment appointmentToInsert)

 

{

 

if (!PersistChanges)

 

{

 

return;

 

}

 

using (DbConnection conn = OpenConnection())

 

{

 

using (DbTransaction tran = conn.BeginTransaction())

 

{

 

DbCommand cmd = DbFactory.CreateCommand();

 

cmd.Connection = conn;

cmd.Transaction = tran;

PopulateAppointmentParameters(cmd, appointmentToInsert);

cmd.CommandText =

" INSERT INTO DbProvider_Classes (Subject, Start_Date, End_Date, TeacherID) VALUES (:Subject, :Start_Date, :End_Date, :TeacherID)";

 

 

 

if (DbFactory is OracleClientFactory)

 

{

 

//cmd.CommandText += Environment.NewLine + "SELECT SCOPE_IDENTITY()";

 

cmd.CommandText +=

Environment.NewLine + "SELECT sequence1.nextval identity FROM dual";

 

 

//cmd.CommandText = "SELECT seq_sub_form_id.nextval identity FROM dual";

 

}

 

 

else

 

{

cmd.ExecuteNonQuery();

cmd.CommandText =

"SELECT ::ID";

 

}

 

int identity = Convert.ToInt32(cmd.ExecuteScalar());//error point

 

FillClassStudents(appointmentToInsert, cmd, identity);//table class students is a table wo a primary key

tran.Commit();

}

}

}

Kevin Mason
Top achievements
Rank 1
 answered on 20 Aug 2009
1 answer
105 views
I have a "Grouped" grid and I want to capture some events.

I have the following code setup to try and capture the events(OnGroupCollapsing, OnGroupExpanding, OnGroupCollapsed, OnGroupExpanded) and not one of them is getting captured.

Am I missing something....seems these events should work like every other event.



 
            function onGroupCollapsing(sender, eventArgs) 
            { 
                eventArgs.set_cancel(true); 
            } 
             
            function onGroupExpanding(sender, eventArgs) 
            { 
                eventArgs.set_cancel(true); 
            } 
             
            function test(sender, eventArgs) 
            {  
                alert("event fired"); 
            } 
 

                    <ClientSettings ReorderColumnsOnClient="false" AllowDragToGroup="false" AllowExpandCollapse="true" AllowGroupExpandCollapse="true"   AllowRowsDragDrop="true" AllowColumnsReorder="false" > 
                        <Selecting AllowRowSelect="true" EnableDragToSelectRows="false"></Selecting> 
                        <ClientEvents OnRowDropping="onRowDropping" OnRowDragStarted="onRowDragStarted" OnGroupCollapsing="onGroupCollapsing" OnGroupExpanding="onGroupExpanding" OnGroupCollapsed="test" OnGroupExpanded="test"  /> 
                    </ClientSettings> 

                    <ClientSettings ReorderColumnsOnClient="false" AllowDragToGroup="false" AllowExpandCollapse="true" AllowGroupExpandCollapse="true"   AllowRowsDragDrop="true" AllowColumnsReorder="false" > 
                        <Selecting AllowRowSelect="true" EnableDragToSelectRows="false"></Selecting> 
                        <ClientEvents OnRowDropping="onRowDropping" OnRowDragStarted="onRowDragStarted" OnGroupCollapsing="onGroupCollapsing" OnGroupExpanding="onGroupExpanding" OnGroupCollapsed="test" OnGroupExpanded="test"  /> 
                    </ClientSettings> 



Vlad
Telerik team
 answered on 20 Aug 2009
5 answers
162 views
Hello,
My client wants to use the Rad Input Mask for the phone textbox on a form on our site. This is great for new customers filling out the form. However when populating the text box with phone numbers previously entered the Rad Input Mask does not work well because the phone numbers are written with and without the () - and spaces.
What should I do?

thanks
Pavel
Telerik team
 answered on 20 Aug 2009
2 answers
171 views
Hello,

I've a problem with (as I suppose) data binding to dynamically generated grid.
Below you will find events fired when I try to edit item in grid (InPlace).
Columns in grid are dynamically generated - bacically there are 2 types of columns:
- dictionary: GridDropDownColumn (working ok)
- numeric: GridNumericColumn (cause of problems)
Grid could have multiple columns of both types depending on the underlying business object.

Problem is: when I click edit on grid item the editors are not showing.

Here is a events trace which are raised:

// loading a page 

Page_Init
GenerateDefinitionColumns
CreateColumnForVariable: Dictionary 1
CreateColumnForVariable: Numeric 1
rgDefinitionItems_NeedDataSource
rgDefinitionItems_CreateColumnEditor: Creating column editor for column: IN1
rgDefinitionItems_ItemDataBound: Binding item in view mode
rgDefinitionItems_ItemDataBound: Binding item in view mode

// here I've clicked edit button on grid

Page_Init after postback
rgDefinitionItems_CreateColumnEditor: Creating column editor for column: IN1
rgDefinitionItems_ItemCommand: Command name: Edit
rgDefinitionItems_NeedDataSource
rgDefinitionItems_ItemDataBound: Binding item in edit mode
rgDefinitionItems_CreateColumnEditor: Creating column editor for column: OUT2

In attached sample project you could methods GetCellValue & SetValueToCell 
responsible for geting and setting value into cell (in both view and edit mode).

If you remove from those methods "if (dataItem[columnUniqueName].Controls.Count > 0)"
you will see my problem - the editor control for numeric column is not created yet :(

Source code for this problem can be downloaded from dropbox:
http://dl.getdropbox.com/u/1495591/RadGridDataBindingProblem.zip

Any ideas what's wrong ?
Veli
Telerik team
 answered on 20 Aug 2009
1 answer
153 views
hi ,

i have a textbox with password mode. is it possible to set emptymessage for this?

thanks.
Shinu
Top achievements
Rank 2
 answered on 20 Aug 2009
1 answer
169 views
Hello,

I am using a Modal RadWindow popup on page 'A' that opens with the 'radopen' javascript method.  The window pops up (page 'B'), then some processing is done to the query string, and the RadWindow is immediately re-directed to page 'C'.  Page C is not a part of our site.

The intent is that the user does some things on Page C, then closes the window, then some event happens back on Page A.  When the RadWindow is redirected to page C, everything seems to be working.  The problem happens if the user clicks a link on page C to page 'D' (also not part of our site).  When this happens, it looks like the entire Browser is re-directed, rather than just the RadWindow.  So we effectively lose page A entirely, and we no longer have a radWindow.  We are left with only page D in our browser window.

We have no control over Page C or its mechanism for performing re-direction.  We just want whatever happens on Page C to stay on Page C and not redirect the entire browser page.  Is this possible?  And if not, are there any good alternatives?

Thanks.
Georgi Tunev
Telerik team
 answered on 20 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?