Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
77 views
Hi,
in my case I have two radwindows.
In the first I have RadComboBox, and in the second I have a button with javacript functions.
In this function I want to set text to RadComboBox in 1. window.
I want to have only js code in the second window.
I'm trying to use code from sample DialogReturnValue:
                //get a reference to the second RadWindow         
                var dialog1 = oWnd.get_windowManager().getWindowByName("RadWindow1");         
 
                // Get a reference to the first RadWindow's content  
                var contentWin = dialog1.get_contentFrame().contentWindow  
                  
                //Call the predefined function in Dialog1  
                //contentWin.populateCityName(selectedCapital);  
                contentWin.$find("<%= RadComboBox11.ClientID %>"); //error  
 
but there is an error that RadComboBox11 doesn't exist.
I want to ask, is it possible to do something like this?
Georgi Tunev
Telerik team
 answered on 03 Aug 2009
1 answer
120 views
Hey all,

I had the panel bar looking and working the way I wanted but then i updated the DLL to the latest one and now i have a black line appearing below my root links which i cannot for the life of me get rid of, can anyone help?

http://development.lateralline.co.uk/cbfootball2009/community.aspx

Thanks in advance..

Stevied





Kamen Bundev
Telerik team
 answered on 03 Aug 2009
1 answer
104 views
Is there any controls in telerik which can be used as ajax control toolkits confirmbutton extender.
for radalert i have to use explicit events, i dont want to change in my button events.
Sebastian
Telerik team
 answered on 03 Aug 2009
1 answer
114 views
Hi,

I read somewhere (not sure if on here or elsewhere) That the ASP.NET AJAX controls use JQuery internally.

This is no bad thing but as a developer, does this mean I should learn JQuery? Or is it all nicely abstracted (so far it seems so)? There's a lot of effects etc which can be done with JQuery, can these be applied to the controls in some fashion? A better way of putting it: Can I harness JQuery to do any flash stuff with the controls (Effects, fades, etc etc)?

Thanks
Ivo
Telerik team
 answered on 03 Aug 2009
3 answers
97 views
Is it possible to have add, edit and delete functionality in grouping grid? Here is sample grouping grid that I want to use for data editing - http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/groupfooter/defaultcs.aspx
Princy
Top achievements
Rank 2
 answered on 03 Aug 2009
1 answer
97 views

Hi,

I've a radgrid.I need to have 2 columns one is a datacolumnand other one is a  griddropdown column.
Can i use a datatable, datarow method to populate the grid and update it.

I need griddriopdown column as second column ????

The first column is a datacolumn  If i first declare datacolumn in .cs and then
 in .ascx , under columns i create a griddropdown column, the griddrop down column is appearing as first column
but i need griddrop down column to appear as second column and my datacolumn as first column??
how is it possible.

Even if i have 1 datacolumn and 1 griddropdown column, cani use a datatable to populte data for them??
 can you help me with code

Princy
Top achievements
Rank 2
 answered on 03 Aug 2009
0 answers
171 views
hi,

i am using combo box as the input for the birthdate for my program. i had using the related combobox as my reference for my work. i have 3 combobox, that is year, month and day. It look alright when i have select the year and loop for the month. But i face a problem, i can't get the selected value for the year combo box when i wan to loop for the days. This lead me cannot get the value for day espeacially in february. Its can't count on the leap year. if i am using the postback, these doesn't happend. below is my code:

aspx:

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="radComboBoxWMDY.aspx.cs" Inherits="radComboBoxWMDY" %>  

 

 

<%

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

 

 

 

<div>

 

 

 

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

 

 

 

</asp:ScriptManager>

 

 

 

Year:

 

 

<telerik:RadComboBox ID="rcbYear" runat="server" onselectedindexchanged="rcbYear_SelectedIndexChanged"

 

 

 

OnClientSelectedIndexChanging="LoadMonth"  onitemsrequested="rcbYear_ItemsRequested"> </telerik:RadComboBox>

 

 

 

Month:

 

 

<telerik:RadComboBox ID="rcbMonth" runat="server" onselectedindexchanged="rcbMonth_SelectedIndexChanged" OnClientSelectedIndexChanging="LoadDay" OnClientItemsRequested="ItemsLoaded" onitemsrequested="rcbMonth_ItemsRequested">

 

 

</telerik:RadComboBox>

 

 

 

Day:

 

 

<telerik:RadComboBox ID="rcbDay" runat="server" OnClientItemsRequested="ItemsLoaded" onitemsrequested="rcbDay_ItemsRequested" onselectedindexchanged="rcbDay_SelectedIndexChanged" >

 

 

</telerik:RadComboBox>

 

 

 

<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />

 

 

 

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

 

 

 

</div>

 

 

 

</form 

 

 

<script type="text/javascript">

 

//global variables for the countries and cities comboboxes

 

var

 

rcbMonth;  

 

 

var rcbDay;

 

 

var rcbYear;

 

 

 

function pageLoad()

 

 

{

 

 

// initialize the global variables

 

// in this event all client objects

 

// are already created and initialized

 

rcbMonth = $find(

"<%= rcbMonth.ClientID %>");  

 

 

rcbDay = $find(

"<%= rcbDay.ClientID %>");

 

 

 rcbYear = $find(

"<%= rcbYear.ClientID %>");

 

 

}

 

 

function

 

LoadMonth(combo, eventArqs)

 

 

 {

 

var item = eventArqs.get_item();

 

 

 rcbMonth.set_text(

"Loading...");

 

 

 rcbDay.clearSelection(); 

 

 

// if a continent is selected  

 

if (item.get_index() > 0)  

 

// this will fire the ItemsRequested event of the

 

// countries combobox passing the continentID as a parameter  

 

rcbMonth.requestItems(item.get_value(),

false);

 

 

}

 

 

else

 

// the -Select a continent- item was chosen

 

rcbMonth.set_text(

" ");  

 

 

rcbMonth.clearItems();

rcbDay.set_text(

" ");

 

 

 rcbDay.clearItems();

}

}

 

 

function

 

LoadDay(combo, eventArqs)  

 

 

{  

 

 

var item = eventArqs.get_item();  

 

//rcbDate.set_text("Loading...");  

 

// this will fire the ItemsRequested event of the

 

// cities combobox passing the countryID as a parameter

 

rcbDay.requestItems(item.get_value(),

false);  

 

 

}

 

 

function

 

ItemsLoaded(combo, eventArqs)

 

 

{

 

if (combo.get_items().get_count() > 0)  

 

 

{

 

 

// pre-select the first item  

 

combo.set_text(combo.get_items().getItem(0).get_text());

combo.get_items().getItem(0).highlight();

//combo.showDropDown();  

 

</script>

</

 

body>

 

 

 </

 

html>

the code behind:

 

 

using

 

System;

 

 

 

using System.Collections.Generic;

 

 

 

using System.Linq;
using System.Web;

 

 

 

 

using System.Web.UI;

 

 

 

using System.Web.UI.WebControls;

 

 

 

using System.Data;

 

 

 

using System.Configuration;

 

 

 

using System.Collections;

 

 

 

using System.Web.Security;  

 

 

 

using System.Web.UI.WebControls.WebParts;

 

 

using System.Web.UI.HtmlControls;  

 

 

 

usingTelerik.Web.UI;

 

 

 

public

 

partial class radComboBoxWMDY : System.Web.UI.Page

 

 

{

 

DateTime tnow = DateTime.Now;

 

 

int year, month,i , day;

 

protected void Page_Load(object sender, EventArgs e)  

 

 

{

 

if (!this.IsPostBack)  

 

 

{

LoadYear();

}

 

 

private bool CheckLeap(int year)  

{

 

if ((year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0))  

 

 

 

return true;  

 

else return false;  

}

 

 

//binding every month day  

 

private void BindDays(int year, int month)

{

 

int i;

 

ArrayList AlDay = new ArrayList();   

 

switch (month)

{

 

case 1:

 

case 3:

 

case 5:

 

case 7:

 

case 8:

 

case 10:  

 

 

 

case 12:

 

for (i = 1; i <= 31; i++)

AlDay.Add(i);

 

break;

 

case 2:

 

if (CheckLeap(year)) 

{

 

for (i = 1; i <= 29; i++)

AlDay.Add(i);

 

else

 

{

for (i = 1; i <= 28; i++)

AlDay.Add(i);

}

 

break;   

 

case 4:

 

case 6:  

 

 

 

case 9:  

 

case 11:  

 

for (i = 1; i <= 30; i++)  

AlDay.Add(i); 

 

break;  

}

rcbDay.DataSource = AlDay;

rcbDay.DataBind();

}
 

 

 

protected void LoadYear()  

 

ArrayList AlYear = new ArrayList();  

 

for (i = 2002; i <= 2010; i++)

AlYear.Add(i);

rcbYear.DataSource = AlYear;

rcbYear.DataBind(); 

}

 

 

protected void LoadMonth(int year)

{

 

ArrayList AlMonth = new ArrayList();

 

for (i = 1; i <= 12; i++)

 AlMonth.Add(i);

rcbMonth.DataSource = AlMonth;

rcbMonth.DataBind();

}

 

 

 

protected void rcbYear_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)

{

year =

 

Int32.Parse(rcbYear.SelectedValue);

 

//month = Int32.Parse(rcbMonth.SelectedValue);

 

//BindDays(year, month);

 

}

 

protected void rcbMonth_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)

{

year =

Int32.Parse(rcbYear.SelectedValue);

 

 

 

month =

Int32.Parse(rcbMonth.SelectedValue);

 

 

 

//BindDays(year, month);

 

 

 

}

 

protected void rcbYear_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)

{

LoadYear();

}

 

 

protected void rcbMonth_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)

{

LoadMonth(

 

Int32.Parse(e.Text));

}

 

 

protected void rcbDay_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)

{

BindDays(year,

 

Int32.Parse(e.Text));

}

 

 

protected void Button1_Click(object sender, EventArgs e)

 

string s = string.Format("{0}, {1}, {2}", year, month, day);  

Label1.Text = s;

}

 

 

protected void rcbDay_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)

{

day =

Int32.Parse(rcbDay.SelectedValue);

 

 

 

}

}

hope i can get the respond from u all faster!!!thank you!!!

best regards:

 

sk

 

 

sk
Top achievements
Rank 1
 asked on 03 Aug 2009
3 answers
184 views
Hi,
I set my editor to a custom skin (copied from sunset skin).
URL: http://www.ximnet.com.my/aspnet35/admin/testeditorskin.aspx

However,
- I cannot see the image in the toolbar
- When I click Image Manager, there is a skin error related to "tree" in the popup.

How can I solve this? Thanks.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="testEditorSkin.aspx.vb" Inherits="admin_testEditorSkin" %> 
<%@ 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="RSM" runat="server" /> 
    <link href="../Skins/abm/Editor.abm.css" rel="stylesheet" type="text/css" /> 
    <div> 
<telerik:radeditor EnableEmbeddedSkins="false" skin="abm"  runat="server" ID="tContent" AllowScripts="True" ContentFilters="None"></telerik:radeditor> 
    </div> 
    </form> 
</body> 
</html> 
HSLaw
Top achievements
Rank 1
 answered on 03 Aug 2009
1 answer
202 views
Hello.

Telerik version: 2009.2.701.20
Database: MySQL 5

I have a page with 2 controls, RadComboBox and RadGrid.

RadComboBox lists the tables I have in my database, databound onload. RadGrid then loads the table content via ajax.

Now problem comes when I want the Insert/Update/Delete functionality. So far all examples and demos I have found requires the use of declarative approach. I cannot do this when  I do not know exactly how many columns there will be, and what the column names are.

Although they share the same primary key, they may have additional columns.

Is this possible?
Shinu
Top achievements
Rank 2
 answered on 03 Aug 2009
7 answers
203 views
I have developed a very simple demo web site that allow a user to upload files, and then in code behind, I iterate through the 

RadUpload1.UploadedFiles object.  For each iteration of the loop, I am opening the file and doing some processing.  I am using the ProgressArea to show custom progress as I process the file on the web server.  This is working fine and the ProgressArea is displaying.

However, for the first part, where the file is being uploaded to the web server.  The progress area does not display.  It's not that the upload is too quick.  It takes about 80 seconds to upload.  But for all that time, the progress area does not display until the file is finally uploaded and the custom progress area starts.

Any idea why that would be?

Kamen Bundev
Telerik team
 answered on 03 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?