Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
101 views
Hello guys,

I need a quick help regarding a situation where I have a RadGrid bound to a LinqDataSource and both have the Automatic CRUD enabled on them. The Grid renders and perform just as expected but instead of seeing icons for Update and delete, I'm seeing text. I want to have icons only. Kindly help!
Tsvetina
Telerik team
 answered on 18 Nov 2010
1 answer
116 views
on my button click i use
<P>strTXTFileBuilder</P>
to generate a text file in code behind on butten click event.
When I applied a radajaxloadingpanel on the button click i received javascrip error when the button is clicked. any idea how to make it work? thanks in advance
Line: 4723
Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received 
from the server could not be parsed. Common causes for this error are when the 
response is modified by calls to Response.Write(), response filters, 
HttpModules, or server trace is enabled.<BR>Details: Error parsing near 
'filename 123'.
Pavlina
Telerik team
 answered on 18 Nov 2010
2 answers
346 views

Hello!
I ran into a problem that when the content inside edit form (pop-up window) of a grid is changing due some user actions (client-side), the pop-up window container keeps the same size. For example, if I use multipageview and tabstrip inside pop-up window, and content of the default tab has smaller height, than on other pages, when user switches tabs, the larger content goes out off the window.
Any chance I can manually resize the window ?

 

Thanks in advance!

Andy.

Andy
Top achievements
Rank 1
 answered on 18 Nov 2010
10 answers
649 views
1 ) Switching from:
<asp:Button ID="btnLookup" runat="server" Text="Lookup"  onclientclick="ShowLookupForm();" />
to RadButton:
<telerik:RadButton ID="Button1" runat="server" Text="Lookup"  AutoPostBack="false"
                     onclientclick="ShowLookupForm();"  >
                     <Icon PrimaryIconCssClass="rbSearch" PrimaryIconLeft="4" PrimaryIconTop="4"/>
                     </telerik:RadButton>
doesn't do anything when you click.
2) RadButton  doesn't work as Page.Form.DefaultButton when you press the enter key.

Georgi Tunev
Telerik team
 answered on 18 Nov 2010
1 answer
28 views
Hi. Over the weekend I was referred to Telerik as a solution for various controls that I need for a website that I'm developing. So far I am impressed but I am having some difficult with the RadGrid control. I will try to briefly summarise the problems and I would also greatly appreciate some guidance on how to do a couple of specific things (to save me a lot of learning time).

First I have looked at the demos. When I view the demo (link below) and set a filter criteria of ProductId = 1) the grid still displays 300,000 records but they appear to all be identical copies of the same record. Similar if I put a filter of (([Product Name] = "ch") and ([unit price] = 18)) then again the grid control says that it has 300,000 records but they appear to be a repeative set of two records (for productId 1 and 39). Is this a bug/correct?

http://demos.telerik.com/aspnet-ajax/grid/examples/performance/linq/defaultcs.aspx

I tried to get the RadGrid control working yesterday in a simple form. However, I was using an Access database and so an asp:accessdatasource control was create for the data source. However, I couldn't get it to work. I eventually switched to an SQLdatasource with exactly the same definition (including parameter definition) and it worked fine. Is this a bug/incompatibility between the RadGrid and asp:AccessDataSource?

When using the RadGrid with a datasource, the CRUD commands are defined in the datasource. However, they appear to work with or without the corresponding parameter definitions? Can anyone explain?

OK Those are the comments about my experience so far. I have two questions both of which are important for my development:

1.    If I have CRUD functionality on a grid can I pre-populate a new record with values and how do I do this? For example, a table may have a field [DateCreated] which I want to set to the date that the record was created. How can I do this within the grid?

2.    I want a table with a guid primary key field and then 3 text fields ([Title], {Description], [Content]). The Title and Description I want to edit with simple text boxes but the Content I want to create and edit with RadEditor. Is there an example that shows how to do this?

Many thanks
Tsvetina
Telerik team
 answered on 18 Nov 2010
1 answer
126 views
I am using a RadGrid with advanced data binding. I have an image in my grid that has two tooltip managers attached to it. The first one is attached to the onmouseover event and the second is attached to the onclick event. For the most part, things are working properly. Both tooltips appear when their respective events are fired. The content of both tooltips are user controls loaded via AJAX.

The Problem:

When I click the image and then immediately click it again (while the content is loading) or move my mouse off of it (or some combination of both), the RadGrids NeedDataSource event fires. This does not happen all the time, only when I click multiple times or move my mouse off the image while the tooltip content is loading (as users tent to do). The Rebind reason given in the GridNeedDataSourceEventArgs is InitialLoad.

This causes a number of issues. Mainly, when I attempt to update session value(s) in the NeedDataSource event, the value of the controls are not present.

Any ideas why the NeedDataSource event is being fired?

Edit: I'm using 4.0 framework with the latest Telerik controls.
Iana Tsolova
Telerik team
 answered on 18 Nov 2010
1 answer
40 views
Hi,

Radtooltip does not work in IE7 or IE8 compatibility view if RadWindowManager is present on the page. Please find the code below.

 

 

 

<form id="form1" runat="server">
  
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
  
</telerik:RadScriptManager>
  
<telerik:RadWindowManager ID="RadWindowManagerMessageBoxes" runat="server">
  
<Windows>
  
<telerik:RadWindow Animation="Fade" Modal="true" ID="radWindow1"
  
runat="server" VisibleStatusbar="false" VisibleTitlebar="false">
  
</telerik:RadWindow>
  
  
</Windows>
  
</telerik:RadWindowManager>
  
<label><a href="#" id="aToolTipPromoCode" runat="server"> What's this?</a></label>
  
  
  
<telerik:RadToolTip TargetControlID="aToolTipPromoCode" ID="radToolTipFieldLevel" runat="server" RelativeTo="Element" 
  
ShowEvent="OnClick" Width="200" Height="150" HideEvent="LeaveTargetAndToolTip" Position="MiddleRight" Text="Text to be displayed in tooltip">
  
</telerik:RadToolTip>
  
  
</form>

Please help!

Thanks,
Vinayak

 

Svetlina Anati
Telerik team
 answered on 18 Nov 2010
3 answers
75 views
Can we please have the classes listed in alphabetical order? There are currently "Generic*" items scattered all over the place.

-- 
Stuart
Georgi Tunev
Telerik team
 answered on 18 Nov 2010
4 answers
122 views
Windows 7 x64, VS 2008, ASP.Net AJAX v 2010.2.826.35.

I have a page with number of multiline RadTextBoxes with ResizableContolExtenders to allow the height of the box to be increased and everything works as expected.

I'm trying to split the page into 3 tabs with 3 RadMultiPage panels and now have an issue with my ajax resizablecontrol extender location.

The resizing handle only appears in the correct place on the initially selected tab, on the unselected tab it appears in the wrong place - see images.

If I change the selected Index to 1 the 2nd tab displays correctly and the 1st tab one does not. As soon as I click the resize image it jumps to where it should be and it stays in the correct place as I move between tabs.

 

<asp:Panel ID="Pan_dataName" runat="server" Width="420" Height="32" ScrollBars="None"><telerik:RadTextBox runat="server" ID="dataName" Text='<%# Bind("Name") %>' TextMode="MultiLine" MaxLength="300" Width="420" ToolTip="" /></asp:Panel><ajaxToolkit:ResizableControlExtender ID="rce_dataName" runat="server" TargetControlID="Pan_dataName" ResizableCssClass="resizingText" HandleCssClass="handleText" MinimumWidth="420" MinimumHeight="32" MaximumWidth="420" MaximumHeight="250" HandleOffsetX="4" HandleOffsetY="6" OnClientResizing="ResizeRadTextBox" /><br />
The handle image is identified in the CSS, position is theoretically taken care of by the control itself.

#copy .handleText
{
    width:16px;
    height:16px;
    background-image:url(../../Images/HandleGrip.gif);
    overflow:hidden;
    cursor:se-resize;
}

Unusually it isn't an IE issue as the same happens in Firefox.

Any ides how I can get it to draw the tabs correctly?

B
Bernard Myers
Top achievements
Rank 1
 answered on 18 Nov 2010
1 answer
56 views
Hi,

I am using the RadGrid control to show some very basic data and allow users to insert new items and edit existing ones. I have had a look at the documentation and demos concerning inserting but I seem to be running into a problem. No matter what I try the new value is returned as null. Please find my code below:

Markup:

<telerik:RadGrid ID="RadGrid_Baskets" runat="server"                            
    AutoGenerateColumns="False"                                                                                                                
    CssClass="basket_grid"
    DataKeyNames="id">
 
    <ClientSettings 
        Selecting-AllowRowSelect="true"                                
        EnablePostBackOnRowClick="true"
        ClientEvents-OnRowClick="RadGrid_Basket_OnRowClick"/>                           
 
    <MasterTableView CommandItemDisplay="Top">
        <Columns>                                                                       
            <telerik:GridBoundColumn
                DataField="name"
                HeaderText="Basket Name"
                UniqueName="name"/>                                                                                   
 
            <telerik:GridTemplateColumn Display="false"
                ReadOnly="true">                                   
                <ItemTemplate>                                           
                    <input type="hidden" id="item_id_hidden_<%#eval("id")%>" class="item_id" value="<%#eval("id")%>" />                       
                </ItemTemplate>                                       
            </telerik:GridTemplateColumn>
 
            <telerik:GridTemplateColumn>                                   
                <ItemTemplate>                                           
                    <asp:LinkButton ID="ImageButton_Edit" runat="server"
                        CommandName="Edit"                                                                     
                        Text="Edit"                                               
                        Visible='<%#Not IsSystemBasket(Eval("name"))%>'/>
                </ItemTemplate>                                       
            </telerik:GridTemplateColumn>
 
            <telerik:GridTemplateColumn
                UniqueName="DeleteColumn">                                   
                <ItemTemplate>
                    <asp:ImageButton ID="ImageButton_Delete" runat="server"
                        CommandName="Delete"                     
                        ImageUrl="../Objects/CSS/telerik/Grid/Delete.gif"
                        Text="Delete"                                               
                        Visible='<%#Not IsSystemBasket(Eval("name"))%>'/>                                           
                </ItemTemplate>
            </telerik:GridTemplateColumn>                                                                                                                                              
        </Columns>                      
                                                      
    </MasterTableView>                           
 
</telerik:RadGrid>

Code behind:

Protected Sub RadGrid_Basket_InsertCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid_Baskets.InsertCommand
 
Dim newItem As GridEditableItem = CType(e.Item, GridEditableItem)
Dim editManager As GridEditManager = newItem.EditManager
 
Dim editor As GridTextBoxColumnEditor = editManager.GetColumnEditor(e.Item.OwnerTableView.RenderColumns(2))
 
ItemBaskets.AddBasket(editor.Text)
 
End Sub


My ItemBasket class handles the creation if the basket and all it needs is a name. The problem is that the value is always null and therefore the AddBasket method throws an exception.

I have also tried:

Protected Sub RadGrid_Basket_InsertCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid_Baskets.InsertCommand
 
Dim newItem As GridEditableItem = CType(e.Item, GridEditableItem)
 
Dim values As New Hashtable()
 
e.Item.OwnerTableView.ExtractValuesFromItem(values, newItem)
 
ItemBaskets.AddBasket(values("name"))
 
End Sub


Here the value is in the hashtable but it is null again. I am obviously missing something here, advice would be welcome.


Chris
Christopher Fenton
Top achievements
Rank 1
 answered on 18 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?