Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
95 views
Hi There,

I am trying to show a link button using GridButtonColumn. I've got two problems here.

[1] I need to get data from database and update this GridButtonColumn at run time.
     For this I am using linq to sql and getting the data from database. but in the example below from Telerik site, row value is not constant (Release column) for all columns which is not in my case. Each row will have different name.

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx 

<telerik:RadGrid ID="RadGrid1" OnSortCommand="RadGrid1_SortCommand" OnPageIndexChanged="RadGrid1_PageIndexChanged" 
            Width="97%" OnPageSizeChanged="RadGrid1_PageSizeChanged" OnItemDataBound="RadGrid1_ItemDataBound"
             AllowSorting="True" PageSize="15" AllowPaging="True" runat="server" Gridlines="None" AutoGenerateColumns="False">
             <MasterTableView Width="100%">
             <Columns>
                <telerik:GridButtonColumn DataTextFormatString=""
                        UniqueName="Subject" HeaderText="Subject" DataTextField="">
                    </telerik:GridButtonColumn>
                <telerik:GridBoundColumn UniqueName="dc1" HeaderText="DC1" DataField="dc1">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="dc2" HeaderText="DC2" DataField="dc2">
                </telerik:GridBoundColumn>        
             </Columns>
             </MasterTableView>
             <PagerStyle Mode="NextPrevAndNumeric" />
            </telerik:RadGrid>

Backend:

var docs = from d in dbo.abc1
                       join p in dbo.abc2 on d.id equals p.Id
                       join c in dbo.abc3 on p.cId equals c.Id
                       select new
                       {
                           d.filelink, 
                           d.dc1,
                           d.dc2
                       };
            RadGrid1.DataSource = docs;
            RadGrid1.DataBind();


[2] When the user clicks this above link button they should get open/save dialogue.

Can you just let me know whether this can be done using RadGrid control?

Thanks,
Sunny
Sunny
Top achievements
Rank 1
 asked on 08 Jun 2012
5 answers
252 views
Hi,

I have multiple RadGrid's (one for every working day in a week), each with a single template column (GridTemplateColumn). Under each row in each grid is another RadGrid containing sub details for that record (using the 'DetailTables' function on the grid). Please find attached screenshot for an example of what I mean (some possibly confidential data has been whited out).

The user can drag and drop each 'subrow' to either a different trip on the same day, or another trip on another day. So they would drag a row to the blue 'header' column (which is my template coumn), or underneath/above another subrow of a trip, and drop the item there. I would then handle the RowDrop event, look at the DestDataItem object in the event to see where it's dropped and perform my processing.

It works great if they drag under another sub-item in a grid, but if they drag to the 'header' (the blue part), the DestDataItem is null - so I'm assuming  it's because they are dragging to a template column. Is there a way around this?

Thanks!
Andrey
Telerik team
 answered on 08 Jun 2012
1 answer
107 views
I am trying to set focus on the textbox control targeted by a RadSpell control after the check is done, whether it has been cancelled or finished or completed, using client-side javascript.

Putting .focus() in the client functions does not seem to work, the focus always returns to the pushbutton.
And after googling at length, I have found no example of how to do this.

Could someone please help me out?
Rumen
Telerik team
 answered on 08 Jun 2012
2 answers
101 views
The last thread I saw regarding this is 2011 so I thought I'd revisit.  I need to deploy RadScheduler to mobile devices asap.  If this functionality is imminent - as in 30-60 days I can probably wait.  If it's more than that I will need to use something else (probably the DevExpress product).  I'm already a Premium Subscriber and don't want to spend the money with someone else if I don't have to.  Can someone  give me an update on when this functionality is expected?

Thanks!
Shawn Davis
Top achievements
Rank 2
 answered on 08 Jun 2012
2 answers
102 views
HI,

Is there any way that move the button on the top instead of having it at the bottom and couldn't find this UploadedFilesRendering. It works fine on AsyncUpload but not in Normal Upload. Is there any way that to fix this issue.

thanks


Hem
Top achievements
Rank 1
 answered on 08 Jun 2012
2 answers
86 views
Is there a way to reference the containing tree node of a template generated control on the client side, a radcombobox in this case?  Without using the Find methods.

Those depend on knowing a particular value rather than the relationship of the node and control.  I have a client function that is a handler for the radcombobox OnClientSelectedIndexChanged event, but within that I need to also get a reference to the containing tree node.
Marbry
Top achievements
Rank 1
 answered on 08 Jun 2012
3 answers
75 views
I have a chart with two yaxis and two series. How do I assign a chartseries the second axis?
Paulo
Top achievements
Rank 1
 answered on 08 Jun 2012
1 answer
95 views
Hello all

We're using a fairly oldish release (2010.3.1317.40) on Windows 7 using IE9.  I am fairly new to the code base I'm looking at as I'm looking it as an outsider for a sister company to try and sort out some issues.

We're having a problem with performance when resizing a window as a RadGrid with a 1000 rows.  It takes a good number of seconds to resize.  Searching through the forums I found that setting RadResizeStopLookup="true" RadShowStopLookup="true" in the <div> following the RadGrid definition may ease these problems.

However, our RadGrid is being created in C# and being placed on the page dynamically (not sure of the exact mechanism -- this software generates forms from data in the database) and so there is not aspx file holding the grid.  Is there a way of setting these attributes from within C# on the RadGrid object itself?

Thanks in advance for any ideas anyone has.
Ian
Top achievements
Rank 1
 answered on 08 Jun 2012
1 answer
292 views
how can i validate telerik radupload for mimeTypes -> mean Prevent Change Extension by users!  
in both Client and Server sides!  
my radupload is like this :  

<telerik:RadUpload ID="RadUpload" runat="server" EnableEmbeddedSkins="False" Skin="BlackByMe" AllowedFileExtensions=".txt" AllowedMimeTypes="text/plain"
    ControlObjectsVisibility="ClearButtons" Width="325px">
</telerik:RadUpload>


as you the `AllowedFileExtensions` is txt.  
but i can change a zip file extension to txt and upload it.  
how can i prevent this act?  
there are many methods out there for Telerik RadUpload Validation Such As FileExtension-FileSize-Empty RadUpload.  
but what about validating of real MiMeType? 

there is a note in telerik web site :  
RadUpload does not determine the mime-type using only the file extension. For example if you try to upload a text file that has the extension ".JPG", it is still uploaded with text/plain mime-type.
so why i can still upload a pciture (i zipped it and changed it's extention to txt) with readupload upper?
as you see i set AllowedMimeTypes property. 
what is the problem? 

i want to show a message to that user who change file extension(clietn and server side for learning)

thanks in advance
Kevin
Top achievements
Rank 2
 answered on 08 Jun 2012
1 answer
75 views
 I would like to select multiple rows in a grid view and move them down within the grid view 
 by dropping.  Is there a way to do that ? Please advice.
Eyup
Telerik team
 answered on 08 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?