Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
260 views
ASPX:

<telerik:GridTemplateColumn
                                           HeaderText="Product No."
                                           UniqueName="lnkproductnumber"
                                           DataType="System.String"-
                                           SortExpression="vchproductno"
                                           DataField="vchproductno"
                                           ReadOnly="true"
                                           ShowFilterIcon="false"
                                           CurrentFilterFunction="Contains"
                                           AutoPostBackOnFilter="true">
                                            
                                           <ItemTemplate>
                                               <asp:LinkButton
                                                   ID="lnkProdNo"
                                                   runat="server"
                                                   Text='<%# Eval( "vchproductno" ) %>'
                                                   Font-Bold="true"
                                                   OnCommand="GetProductDetail"
                                                   CommandName='<%# Eval( "vchproductno" ) %>' 
                                                   CommandArgument='<%# Eval( "intproductid" ) %>'>
                                               </asp:LinkButton>
                                           </ItemTemplate>
                                            
                                           </EditItemTemplate>
                                           <HeaderStyle Width="100px" />
                                           <ItemStyle Width="100px" />
                                       </telerik:GridTemplateColumn>



And im getting this error:

Parser Error Message: Telerik.Web.UI.GridColumnCollection must have items of type 'Telerik.Web.UI.GridColumn'. 'ItemTemplate' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.

Telerik.Web.Ui Version=2012.1.215.40

Any idea?
Just64
Top achievements
Rank 1
 answered on 11 Jul 2012
2 answers
104 views
I am not sure where to start, so I'll just try to describe the problem as best as I can.

I have a radwindow that is set to 90% of the main window's size. Inside that window I have two panels, each with a radgrid with several rows of data each designed to fit 1024x768.

When the number of rows exceed the height of the container, the radgrid uses a vertical scroll. This is as expected. However, whenever the user scrolls the grid using the scrollbar or mouse wheel, as soon as the scrolling stops, the grid grows in width causing the radwindow to get both vertical and horizontal scroll bars.

So far I have only exhibited this problem when viewing the site in IE7 and IE9(compatability mode only). The other problem is that whenever the window is closed, after these scroll bars appear, the next time that window is used, the scroll bars remain in place.

Also, the tooltip for the grid shows something like [1 of 1] but as the grid is scrolled, the width of the tooltip narrows and the text is stacked vertically, as if the div is getting compressed along the width.

When viewed in IE9 (no compatability) the site renders as expected.
There is no backend CSS or javascript that affects the formatting and no posting is done until the user closes the form.

Thanks
Keith
Top achievements
Rank 2
 answered on 11 Jul 2012
1 answer
73 views
I have a task where I need to email information from a row where a checkbox is selected from a templatecolumn. I dont want to email info for the whole grid just the ones where a checkbox is checked from whichever row is "selected". How can I go about achieving this?

Thanks.
Eyup
Telerik team
 answered on 11 Jul 2012
3 answers
103 views
I am having two radgrids where I will show master data in one grid and when selecting the corresponding row I will show the data in child radgrid. As per the attached Image I would like to achieve my scenario can some one help me
Eyup
Telerik team
 answered on 11 Jul 2012
2 answers
58 views

Hello everyone, need help if possible...
I'm currently trying to hide the "Cancel" on my edit form and leave the Update visible

Here's how my editforms looks like

 

<

 

EditFormSettings>

 

 

<EditColumn UniqueName="EditCommandColumn" ButtonType="ImageButton" UpdateImageUrl="Images/update2.png" CancelImageUrl="Images/cancel.png" Visible="True">

 

 

</EditColumn>

 

</

 

EditFormSettings>

 

 

 

If I change the Visible to = false it hides both.

Any help is greatly appreciated, I'm currently new to Telerik

Thanks!

aj
Top achievements
Rank 1
 answered on 11 Jul 2012
1 answer
89 views
hi everyone

by using RadUpload inside RadGrid  how can i send path to database and  store file in an folder ..... i tested some of the code but i didn't succeed

i am using C#
Bozhidar
Telerik team
 answered on 11 Jul 2012
4 answers
146 views
Hi,
  I have multi-line radTextBox used all over my application. I want to associate a generic validation across all these multi-line radTextBoxes. To accomplish that, I thought of using jQuery to find control of type textarea (found this through firebug) and called my validation function. All this is fine. I'm able to trigger validation. One part where I didn't succeed is in my validation function, I'm using args which is not getting passed when I trigger it through jQuery. Is there a way to get around this problem?

To give you code example, in the below code, args is not defined when I try to add validation dynamically
$('textarea').keypress(function (sender, args) {
            ValidateSpecialCharcters(sender, args);
        });

        function ValidateSpecialCharcters(sender, args) {
           if(validation condition fails)
                args.set_cancel(true);
            }
        }

any ideas?

~/Ananth
Ananthalvan
Top achievements
Rank 1
 answered on 11 Jul 2012
2 answers
79 views
Hi,

I'm being given data from our DAL which returns properties, such as ParentContent.ID, however when I pass this to the TreeView it fails on databind, please see my below code:

this.rtv_LeftMenu.DataSource = contentList;
this.rtv_LeftMenu.DataTextField = "Title";
this.rtv_LeftMenu.DataFieldID = "ID";
this.rtv_LeftMenu.DataValueField = "ID";
this.rtv_LeftMenu.DataFieldParentID = "ParentContent.ID";
this.rtv_LeftMenu.Style.Add("margin", "5");
this.rtv_LeftMenu.Style.Add("padding", "5");
this.rtv_LeftMenu.DataBind();

At run time I get a NotSupportedException saying it can't find the property ParentContent.ID. I have checked to make sure the property exists and is accessible. Please let me know if there is a way to get the TreeView control to accept properties like this?

I had this working with our previous DAL, so am confident that everything else is working correctly.

Many thanks.
Anthony
Top achievements
Rank 1
 answered on 11 Jul 2012
3 answers
63 views
The spell check control inserts a newline when the control is empty. Is there anyway i can avoid that. I have attached a screenshot of the problem.

One way i was thinking about doing it was dynamically adding/removing controls to the spellcheck depending on the content of the controls.

You can reproduce the behavior on your demo page.
http://demos.telerik.com/aspnet-ajax/spell/examples/multiplechecks/defaultcs.aspx
Jack
Top achievements
Rank 1
 answered on 11 Jul 2012
6 answers
132 views
Hi..

ok.. established a working setup on a content page which included a radcalendar and radgrid control that when the date is clicked it selects and displays data on the rad grid.

W hat I want to do now is place the radcalendar on my master page so that when I select a date I can update the content displayed on my radgrid and update the content page's datasource. I'm unsure how to reference a control on my content page from the master..

is there a working example somewhere?
Jake
Top achievements
Rank 1
 answered on 11 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?