Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
136 views
Hi;

I need to be able to override the style for inline editting on one of my grids.  This grid is a batch update where all the rows are changed to edit mode in PreRender.

My skin shows the grid as a green row when selected by default. 

Is there anyway to change it so it will look like the gridrow is not in edit mode?

Here is my preRender code:  But it does not change the style.

 // change all rows into edit mode.
            bool altRow = false;
            foreach (GridItem item in this.RadGridThematicLayer.MasterTableView.Items)
            {
                if (item is GridEditableItem)
                {
                    // Here is where we add the style to make it look like everything else.
                    GridEditableItem editableItem = item as GridDataItem;
                    if (editableItem != null)
                    {
                        editableItem.Edit = true;
                        editableItem.CssClass = altRow ?  "GridAltRow_Telerik" : "GridRow_Telerik";
                        altRow = !altRow;
                    }
                }
            }
            RadGridThematicLayer.Rebind();
Princy
Top achievements
Rank 2
 answered on 25 Mar 2009
2 answers
152 views
Hi

I have an internal news rotator with data coming from Linq to SQL.  The news heading, news bite and the news key are initally queried for the rotator.

I would like to be able to click on an item and have the onitemclick event to fire and in the code behind determine the news item that was clicked on and requery the database with the news key to get and display the whole news story elsewhere on the page.

I have everything working except how to determine the news key/data of the item clicked on in the codebehind.

Thanks in advance.

Paul
Paul
Top achievements
Rank 2
 answered on 25 Mar 2009
6 answers
1.4K+ views
this is probably asked and answered already, but I have searched a lot and can't find it.
Can somebody show an example of a web.config file with all Telerik assemblies in the web.config. I would prefer not to have to regiester components on every page. I just downloaded the trial for RadControls for  ASP.Net AJAX.
I am looking for an example of all components being registered in the config file.

Thanks
Jim
Top achievements
Rank 1
 answered on 25 Mar 2009
2 answers
446 views
Hello,
Hopefully someone can help me.  I have a RadComboBox inside an EditItemTemplate.  When in Edit mode, I need to display a date column when the users select a specific item in the combo box.  I need the code on how to do this in Javascript.  Thanks in advance for any help.

Sonia

 

<telerik:GridTemplateColumn HeaderText="Agenda Status" UniqueName="Agenda Status">
<EditItemTemplate>
<telerik:RadComboBox ID="RadComboBox1" Height="200px" runat="server" Skin="WebBlue" 
  DataTextField="description" DataValueField="description" DataSourceID="SqlDataSource3"  
 
SelectedValue='<%# Bind("AgendaStatus") %>'>
</telerik:RadComboBox>
</EditItemTemplate>
<ItemTemplate>
<%
#Eval("AgendaStatus") %>
</ItemTemplate>
</telerik:GridTemplateColumn>

 

Sonia Alvarado
Top achievements
Rank 1
 answered on 24 Mar 2009
0 answers
110 views
****
This is a problem with the combobox. The problem only occurs with a combobox bound to an objectdatasource.
I am re-posting in the combobox forum.
***
I have a grid that is created with 4 rows for editing, so the user can enter up to 4 items at once. I defined the grid and then bind it to an objectdatasourse in code behind to create a 4 row grid of 4 columns, checkbox, maskededit,combo and textbox. When I select from the combo it is fine, but as soon as I move to the next field the combo resets to un-selected. On submit I can see all the values of all the other rows/controls. Here is the aspx:

<telerik:RadGrid ID="grdNewEntity" runat="server" GridLines="None"
    AutoGenerateColumns="False" visible="false">
<HeaderContextMenu>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</HeaderContextMenu>

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

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <Columns>
        <telerik:GridTemplateColumn UniqueName="IsPrimary" HeaderText="Is Primary">
            <ItemTemplate>
                <asp:CheckBox ID="CheckBox1" runat="server" />
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn UniqueName="PhoneNumber" HeaderText="Number">
            <ItemTemplate>
                <telerik:RadMaskedTextBox ID="PhoneNumber" Runat="server"
                    Mask="(###) ###-####">
                </telerik:RadMaskedTextBox>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn UniqueName="PhoneType" HeaderText="Type">
            <ItemTemplate>
                <telerik:RadComboBox ID="PhoneType" Runat="server" DataSourceID="ODSLookup"
                    DataTextField="LookupDescription" DataValueField="ID">
                    <collapseanimation duration="200" type="OutQuint" />
                </telerik:RadComboBox>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn UniqueName="Comment" HeaderText="Comment">
            <ItemTemplate>
                <telerik:RadTextBox ID="RadTextBox1" Runat="server">
                </telerik:RadTextBox>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
    </Columns>
</MasterTableView>

<FilterMenu>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</FilterMenu>
</telerik:RadGrid>


The code behind to generate the grid:

Dim oColl As New LearningDepotAPI.Phones

For x = 1 To 4

Dim oPhone As New LearningDepotAPI.Phone

oColl.Add(oPhone, 0)

grdNewEntity.DataSource = oColl

grdNewEntity.DataBind()

Next

Any Ideas on why the combobox would behave this way?
Mike

Mike
Top achievements
Rank 1
 asked on 24 Mar 2009
1 answer
139 views
Hi,
I've been triggering ajax postbacks by using the ajaxRequestWithTarget that is pointed at a button as the target.    The button is sending a panel back for updating.

Sometimes I hide the button depending on how the control is done - in this case, I'm doing it on page load, so I don't want the button to show.

If the button is visible, the loading panel shows.  If I add a visible="false" to the button, the load panel no longer shows.
Nick
Top achievements
Rank 2
 answered on 24 Mar 2009
2 answers
111 views
Hi,

I'm Having a problem retrieving the tab strip object in JavaScript,   here is a sample code the $find is returning null

Sincerely,

Fadi

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="firefoxbug._Default" %> 
 
<%@ 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> 
     <link href="css/RadTabCss.css" type="text/css" rel="stylesheet" /> 
     
</head> 
<body onload="initPage()"> 
    <form id="form1" runat="server"> 
    <div> 
        <asp:ScriptManager id="ScriptManager1" runat="server" /> 
        <telerik:RadTabStrip id="MessageSheet_Sheet" runat="server" skin=""  
            selectedindex="1">  
            <tabs> 
                <telerik:RadTab text="Incoming" />  
                <telerik:RadTab text="Outgoing" Selected="True"  />  
            </tabs> 
        </telerik:RadTabStrip>  
     
    </div> 
    </form> 
    <script type="text/javascript"> 
        function initPage() { 
            var myRadTabStrip = $find("<%= MessageSheet_Sheet.ClientID %>"); 
            alert(myRadTabStrip) 
        } 
    </script> 
</body> 
</html> 
Super
Top achievements
Rank 1
 answered on 24 Mar 2009
2 answers
397 views

We have a long running process on a couple of our pages.  Our technique is to load the page (with plenty of graphics) and then call an Ajax to load the long running process that will show up in a WebUserControl when finished. 

In the past we used:

<
telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
function MakeAjaxRequest(arguments) {
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
ajaxManager.AjaxRequest(arguments);
}
window.onload = MakeAjaxRequest();
</script>
</telerik:RadScriptBlock>

This used to work fine in RadAjax, but since experimenting with Prometeus it doesn't seem to work - we get a javascript error stating "ajaxManager has no properties" and no ajax call is made.

Please Help! I've tried body onload and RadCodeBlock and all sorts of other things.  If there is a better approach then please let me know.

Nick
Top achievements
Rank 2
 answered on 24 Mar 2009
6 answers
209 views
Hello,
is it possible to create a Grid with the following structure:

Header-Grouping

Header1

Header2

Header3

Header4

 Row

Row

Row

Row



Header1 to 4 are Column-Headers. I want to create a Header-Group. I need something like colspan... Is this posible with the RadGrid?

Many Thanks for your help.




Ryan Means
Top achievements
Rank 1
 answered on 24 Mar 2009
1 answer
184 views

When trying to run a simple grid I get the following error.  It occurs for any controls I use.

 

Unable to create type 'telerik:RadScriptManager'. Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

 

<form id="form1" runat="server">
Line 13:     <div>
Line 14:         <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
Line 15:         </telerik:RadScriptManager>
Line 16:         <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True">

It works fine on my development box with Visual Studio 2005, but on the web server I get this error.

I have:
- Installed the compenents on the web server using RadControls_for_ASP.NET_AJAX_2009_1_311_trial.exe
- Used gacutil to add Telerik.Web.UI.dll and Telerik.Web.Design.dll to the GAC

There seems to be a recurring problem with this on the forum but I haven't found any successful solutions.

Michael
Top achievements
Rank 1
 answered on 24 Mar 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?