Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
Hi,
I am looking for automating the installation of RadControls for ASP.NET AJAX 3.5 on MOSS 2007 (as per the document below).
Is there any sample avaialble?
http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html

Ivo
Telerik team
 answered on 29 Sep 2009
3 answers
222 views
Dear Telerik
                      I am working with RadCombobox of telerik and I want it to display autocomplete and loadondemand.when I type a character it is showing me loading... but not displaying anything.Please let me know what is wrong in this code.Please reply as it is urgent for us to deliver.
Aspx page code

<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="webTest._Default" %>

 

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

<!

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>Untitled Page</title>

 

 

</

head>

 

<

body>

 

 

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

 

 

<div>

 

 

<telerik:RadScriptManager ID="rsm" runat="server"></telerik:RadScriptManager>

 

 

<telerik:RadComboBox ID="RadComboBox1" runat="server"

 

 

Height="190px"

 

 

Width="420px"

 

 

MarkFirstMatch="true"

 

 

AllowCustomText="true"

 

 

EnableLoadOnDemand="true"

 

 

HighlightTemplatedItems="true"

 

 

DropDownWidth="423px"

 

 

 

ItemRequestTimeout="500" OnItemDataBound="RadComboBox1_ItemDataBound" OnItemsRequested="RadComboBox1_ItemsRequested" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">

 

 

<headertemplate>

 

 

<table style="width:415px; text-align:left">

 

 

<tr>

 

 

<td style="width:125px;">

 

Id

 

</td>

 

 

<td style="width:125px;">

 

Name

</td>

 

 

</tr>

 

 

</table>

 

 

</headertemplate>

 

 

<ItemTemplate>

 

 

<table style="width:415px; text-align:left">

 

 

<tr>

 

 

<td style="width:125px;">

 

<%

# DataBinder.Eval(Container.DataItem, "Id") %>

 

 

</td>

 

 

<td style="width:125px;">

 

<%

# DataBinder.Eval(Container.DataItem, "Name") %>

 

 

</td>

 

 

</ItemTemplate>

 

 

</

telerik:RadComboBox>

 

 

</div>

 

 

 

 

</form>

 

</

body>

 

</

html>

 


Code Behind File Code

using

System;

 

using

System.Data;

 

using

System.Configuration;

 

using

System.Collections;

 

using

System.Web;

 

using

System.Web.Security;

 

using

System.Web.UI;

 

using

System.Web.UI.WebControls;

 

using

System.Web.UI.WebControls.WebParts;

 

using

System.Web.UI.HtmlControls;

 

using

Telerik.Web.UI;

 

using

Telerik.Web.Design;

 

using

System.Data.OleDb;

 

using

System.Text;

 

using

System.IO;

 

namespace

webTest

 

{

 

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

 

{

 

OleDbConnection cn;

 

 

OleDbDataAdapter da;

 

 

DataSet ds;

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

if (!Page.IsPostBack && !Page.IsCallback)

 

{

Load1(

string.Empty);

 

}

}

 

public void Load1(string filter)

 

{

 

string sql = "select * from emp1234";

 

cn =

new OleDbConnection("Provider=OraOLEDB.Oracle;Data Source=D1;User ID=SC;Password=D1;Connection Lifetime=600;Max Pool Size=100");

 

cn.Open();

sql +=

" where Name LIKE '" + filter.Replace("'","''") + "%'";

 

Response.Write(sql);

da =

new OleDbDataAdapter(sql, cn);

 

ds =

new DataSet();

 

da.Fill(ds);

cn.Close();

 

DataView dv = new DataView(ds.Tables[0]);

 

RadComboBox1.DataSource = dv;

RadComboBox1.DataBind();

}

 

 

protected void RadComboBox1_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)

 

{

Load1(e.Text);

}

 

protected void RadComboBox1_ItemDataBound(object sender, RadComboBoxItemEventArgs e)

 

{

 

RadComboBoxItem item = e.Item;

 

 

DataRowView drv = (DataRowView)e.Item.DataItem;

 

e.Item.Text = drv[

"Name"].ToString();

 

 

}

 

protected void RadComboBox1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)

 

{

 

}

 

}

}




Thanks and Regards
Sri
Veselin Vasilev
Telerik team
 answered on 29 Sep 2009
4 answers
313 views

I have a form with two RadComboBoxes.  One contains a list of states and the other contains a list of counties.  Basically, this is a cascading droplist scenario.  The OnClientSelectedIndexChanged event on the States RadComboBox is set to ChildRadComboChange shown below.  To populate the Counties RadComboBox when a state is selected, I run a LoadCounties method that is triggered by the State.ItemsRequested event.  So far, so good.

The problem comes in when the ChildRadComboLoad function runs (shown below).  The line childCombo.ClearItems() throws a Microsoft JScript runtime error: Object doesn't support this property or method.  The childID contains a valid control id and the childCombo variable is set to the correct RadComboBox (the div, actually).

Any ideas why I can't run this function on the RadComboBox?  I have also seen this with some of the other functions like RequestItems?

----Javascript functions

function ChildRadComboChange(sender, eventArgs) {
  var item = eventArgs.get_item();
  ChildRadComboLoad(sender, item);
}

function ChildRadComboLoad(sender, item) {
  var childID = ChildRadComboArray[sender.get_id()];
  var childCombo = document.getElementById(childID);
  childCombo.ClearItems();
  if (item.get_index() > 0) {    
   childCombo.RequestItems(item.get_value(),false);    
   childCombo.set_text('');}
  else {    
   childCombo.disable();    
   childcombo.set_text(ChildRadComboArray[sender.get_id()+'_msg']);
  }
}

Sincerely,

Sean M. Severson

Veselin Vasilev
Telerik team
 answered on 29 Sep 2009
2 answers
94 views
Hi,

I have broken header in rad grid. when we risize browser it is working fine. but first when page load header is broken on both side.

Thanks

rajesh patel
Top achievements
Rank 1
 answered on 29 Sep 2009
4 answers
137 views
Hi All,

When ever we use navigation controls on calendar to move to a different month or a year, the calendar's SelectedDate object doesnt get updated and it keeps the value of the last selected Date. Why is that so?

Can anyone please explain this happens and is there a way to select the first day of the month everytime the calendar is moved to a different month?

Thanks in advance,

Haroon
Haroon Khokhar
Top achievements
Rank 1
 answered on 29 Sep 2009
2 answers
116 views
I have a grid that is using a usercontrol as an edit form.  This grid allows for multiple edits at one time.  My problem is that I don't know how to reference the user controls from the parent page.  I only know how to access the user controls from a grid event and in this case it is not a grid event that I need to handle, but instead i am handling a button click on the parent page.
eric
Top achievements
Rank 1
 answered on 28 Sep 2009
1 answer
104 views
Hi, I think I found one thread that has this features already but seems like its not working with my page that has Masterpage. Also is it possible to fire it in server side coz I will still do several finishing touches with the content before saving it.. Thanks

RJ
RJ
Top achievements
Rank 1
 answered on 28 Sep 2009
2 answers
159 views
Hi,

I am trying to hide a control in the Telerik Scheduler. Scheduler, When the user double clicks the time slot on calendar by default it displays the small panel with Textbox, and SAVE,Cancel,Option button. I want to hide this small panel (inline appointment). Also when the user double clicks i want to directly take him to the main Insert/Edit page that includes the Recurrence with other normal controls.

Please tell me how I can achieve this using the Telerik Scheduler.

-KG
SKS
Top achievements
Rank 1
 answered on 28 Sep 2009
1 answer
169 views
I have built a custom user control and named it DataPartGridCommandItemTemplate.ascx  -- in this control there are the normal Add/Refresh buttons which simply use ASP:LinkButton and the respective CommandName properties ("InitInsert" and "RebindGrid")...

Additionally, I have a checkbox control that will ultimately "toggle" me between inline editing and popup forms...  So what I need is from within a UserControl (what I call "DataPartUserControl") that contains a RadGrid (what I call "DataPartGrid") which has its CommandItemTemplate built as follows:

<CommandItemTemplate> 
    <myWebApp:DataPartGridCommandItemTemplate ID="CommandItemTemplateUserControl" runat="server" ShowEditModeCommandItem="true" /> 
</CommandItemTemplate> 
 

The CheckBox control has its event wired-up and I can see that event fire just fine.  What I want to do then is raise my own custom event from the command item template user-control...   BUT...   Every time I check the public Event for null to ensure there is a subscriber before firing the event (and the subsequent null reference exception of course) - there are none.  

The initial wire-up to my command item template user-control was being performed in the DataPartGrid_ItemCreated event handler with the simple code of taking the GridCommandItem, using FindControls to find my command-item template user-control and then simply added the event handler...

After checking the forum, it seems like some other solutions were identified where moving the code to the PreRender event solved their problems. I tried this approach and what I found was that the CheckBox event handler was fired before PreRender so once again there was no subscriber to my user-control's published event...

So I'm not sure exacty how/when to get my event wire-up in the right place to ensure the event-wire up happens before the actual post-back event is dispatched to the check box event handler...

Alternately... Is there a better way of achieving this through using the same mechanisms as the LinkButton's use and creating a custom "CommandName" that I could bubble up?  If so, how would I access the grid from this nested user control and invoke the FireCommand method?

Thanks!



Brad Hehe
Top achievements
Rank 1
 answered on 28 Sep 2009
1 answer
94 views
I have a grid with a number of databound columns.

I have added a templateColumn to my grid. The column contains a checkBox (chkReport). In my grid, I check this checkbox to indicate that a given row should be included in a report that I generate when subsequently clicking a "Build Report" button.

Question(s):
1. What is the best way of having such a column? Should it even be a template column?
2. Checked items must be "persisted" when I move back and forth using the grid's paging functionality. How?
3. How do I best detect the checked rows' primary keys (key column name is simply "id") when I am ready to build my report?

Any help appreciated,
Jeppe Jespersen
Denmark

Soren Michelsen
Top achievements
Rank 1
 answered on 28 Sep 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?