Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
178 views
I have a few questions about altering the appearance of a RadComboBox:

How would I force the drop down to always appear under the RadComboBox?

How would I change the mouse over color when the cursor hovers over th items?

thanks
Princy
Top achievements
Rank 2
 answered on 21 Nov 2008
4 answers
250 views
So what fires the selectedindexchanged event for the Grid?  Is it only clicking a column that has the GridColumnSelectButton?  Is there a way to trigger an even whenever the row is selected?  I would like to use the full row select option, and tap into an event on the server that fires when that happens.  But I see that event doesn't fire when that happens.

So is there an event that fires when a row is clicked?  I didn't see one...

Thanks.
Shinu
Top achievements
Rank 2
 answered on 21 Nov 2008
2 answers
161 views
I need to iterate through the items (rows) in a grid and for each row I need to extract the datakeyvalue. Here is how I thought it would be done (This is in the GridDataBound event):

For Each gvRow As Telerik.Web.UI.GridItem In rgViewableDependents.MasterTableView.Items   
 
    strPersonNumber = rgViewableDependents.MasterTableView.DataKeyValues(gvRow.ItemIndex)("PersonNumber")  
    chkViewable = gvRow.FindControl("chkViewable")  
 
Next 

But the strPersonNumber always = Nothing and never get's the key for the row.

rgViewableDependents.MasterTableView.DataKeyValues.Count = 3 and there are 3 rows in the grid, so i'm not sure why it isn't picking up the DataKeyValue. What am I doing wrong?

Thanks!

Shinu
Top achievements
Rank 2
 answered on 21 Nov 2008
3 answers
243 views
hi, i managed to make the CRUD operations work with custom edit form, but the new data is not showing on the grid unless i hit refresh the page.
what am i missing here ?
thanks in advanced.
feras
Top achievements
Rank 1
 answered on 21 Nov 2008
4 answers
181 views
Even though the number of items in the grid is less than the PageSize the paging controls are displayed. I only want these controls to be displayed if there are multiple pages. I believe the PagerStyle.AlwaysVisible attribute controls this.

<

MasterTableView
PagerStyle-AlwaysVisible="false"
PageSize="20"
AllowPaging="true"
PagerStyle-Mode="NextPrev">

 

 

 

 

 

 

 

 

 

 

Chamitha
Top achievements
Rank 1
 answered on 20 Nov 2008
3 answers
106 views
Hi,

I have a RadGrid which contains several controls inside it's NestedTableView. Now I need to access these controls from the codebehind. How can I do this?

Best regards,
Robert
Daniel
Telerik team
 answered on 20 Nov 2008
3 answers
259 views
I have an instance of RadComboBox set to do autopostback, but I would like to be able to change the value of the selected item through javascript without forcing an autopostback on the client or triggering a "Selected Item Changed" event on the server at the next postback.

Is there any good way to accomplish this?

Thanks

Simon
Telerik team
 answered on 20 Nov 2008
1 answer
105 views
Hi,
    I have two RadComboBox controls on my page.  Here is the markup for the combo boxes:
<telerik:RadComboBox OnClientSelectedIndexChanged="LoadLevels" Skin="Vista" ID="ApplicationComboBox" runat="server"/>                    
<telerik:RadComboBox Skin="Vista" ID="LevelComboBox" runat="server"/>        

javascript:
function LoadLevels(item) {
        var levelCombo = $find("<%= LevelComboBox.ClientID %>");
        alert(item.Value);
        levelCombo.RequestItems(item.Value, false);
    }              

server code:
LevelComboBox.ItemsRequested += new RadComboBoxItemsRequestedEventHandler(LevelComboBox_ItemsRequested);

void LevelComboBox_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
        {
            LoadLevels(e.Value);
        }

What is supposed to happen is once the user selects an item from the ApplicationComboBox control, the LevelComboBox gets updated/populated with corresponding data.  I think I have followed the live demo pretty well. (http://demos.telerik.com/aspnet/Combobox/Examples/Functionality/MultipleComboBoxes/DefaultCS.aspx)

I am having 2 issues:
1) Javascript throws an error saying "Object doesn't support this property or method".  This gets thrown when I call the RequestItems method in javascript.
2) The item.Value is "undefined";

I have also tried to do this by subscribing to the selectedindexchanged event on the server side to update my second combo box.  This works the first time, but if I select another value then the second combo box will not get updated.

Any help would be greatly appreciated.

Thanks,
Greg

Atanas Korchev
Telerik team
 answered on 20 Nov 2008
3 answers
240 views
all the documentation i've read on radcontrols is their integration into a site (aspx pages etc.).  is it possible to utilize radcontrols within a web part?  reference a specific radcontrol (e.g. radCalendar) to add to the web part?
Jim
Top achievements
Rank 1
 answered on 20 Nov 2008
1 answer
148 views
We have created a page that has a RadTreeView and have subscribed the OnClientKeyPressing event to a function. On IE 6 and 7 the event fires showing an alert but on Firefox it does nothing.

I have attached the aspx page contents below.

Regards
Russell

<%

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

 

<%

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

 

 

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

 

 

</asp:ScriptManager>

 

 

 

<script type="text/javascript">

 

 

function test() {

 

alert(

'hello');

 

}

 

 

</script>

 

 

 

<div>

 

 

<telerik:RadTreeView ID="RadTreeView1" runat="server" EnableDragAndDrop="True" Skin="Outlook"

 

 

MultipleSelect="True" OnClientKeyPressing="test">

 

 

<Nodes>

 

 

<telerik:RadTreeNode runat="server" Text="Root RadTreeNode1">

 

 

<Nodes>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 1">

 

 

</telerik:RadTreeNode>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 2">

 

 

</telerik:RadTreeNode>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 3">

 

 

</telerik:RadTreeNode>

 

 

</Nodes>

 

 

</telerik:RadTreeNode>

 

 

<telerik:RadTreeNode runat="server" Text="Root RadTreeNode2">

 

 

<Nodes>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 1">

 

 

<Nodes>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 1">

 

 

<Nodes>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 1">

 

 

</telerik:RadTreeNode>

 

 

<telerik:RadTreeNode runat="server" Text="Child RadTreeNode 2">

 

 

</telerik:RadTreeNode>

 

 

</Nodes>

 

 

</telerik:RadTreeNode>

 

 

</Nodes>

 

 

</telerik:RadTreeNode>

 

 

</Nodes>

 

 

</telerik:RadTreeNode>

 

 

</Nodes>

 

 

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

 

 

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

 

 

</telerik:RadTreeView>

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>

 

Atanas Korchev
Telerik team
 answered on 20 Nov 2008
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?