Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
421 views
I have a project in which one column is a hyperlink column.  Ideally, when the user clicks on the hyperlink, three things happen:

1. The row the hyperlink is in is selected
2. The data in the hyperlink column is passed to a session variable
3. A new browser window opens up, and the session variable is passed to the new page in that separate window.

Currently, it appears that the only thing that is taking place is that a new browser window opens up, in spite of the fact that I have the appropriate code in the SelectedIndexChanged event that would pass the data into the session variable.  I hope someone can help me with this, or perhaps suggest a more efficient way of accomplishing this task.  Here is the relevant code:

the .aspx:
<telerik:RadGrid ID="rgPoOrders" runat="server" DataSourceID="dsPurchaseOrders"   
    GridLines="None">  
    <MasterTableView ItemStyle-HorizontalAlign="Center" AutoGenerateColumns="False" Width="95%"   
    DataKeyNames="cpono" DataSourceID="dsPurchaseOrders" GridLines="Horizontal" AlternatingItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">  
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px" /> 
        </RowIndicatorColumn> 
          
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px" /> 
        </ExpandCollapseColumn> 
          
        <Columns> 
            <telerik:GridBoundColumn DataField="cpono" HeaderText="PO #" ReadOnly="True"   
                SortExpression="cpono" UniqueName="cpono">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="DateOnly" DataType="System.DateTime"   
                HeaderText="Date Submitted" SortExpression="DateOnly" UniqueName="DateOnly">  
            </telerik:GridBoundColumn> 
            <telerik:GridHyperLinkColumn DataTextField="cshortrmk" HeaderText="Tracking #"   
                Target="_blank" UniqueName="cshortrmk" NavigateUrl="UpsTrack.aspx">  
            </telerik:GridHyperLinkColumn> 
        </Columns> 
          
        <ItemStyle HorizontalAlign="Center" /> 
        <AlternatingItemStyle HorizontalAlign="Center" /> 
        <HeaderStyle HorizontalAlign="Center" /> 
</MasterTableView> 
</telerik:RadGrid> 
 
<asp:ObjectDataSource ID="dsPurchaseOrders" runat="server"   
    OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"   
    TypeName="OrderEntryTableAdapters.POSelectCommandTableAdapter">  
    <SelectParameters> 
        <asp:SessionParameter Name="FName" SessionField="FName" Type="String" /> 
        <asp:SessionParameter Name="LName" SessionField="LName" Type="String" /> 
    </SelectParameters> 
</asp:ObjectDataSource> 

And here's the codebehind:
    Protected Sub rgPoOrders_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rgPoOrders.SelectedIndexChanged  
 
        Dim TrackNum As String 
        Dim selectedItem As GridDataItem = rgPoOrders.SelectedItems(0)  
 
        TrackNum = selectedItem(rgPoOrders.MasterTableView.Columns(3)).Text  
        Session.Add("TrackNum", TrackNum)  
        test.Text = TrackNum  
 
    End Sub 
ra ma
Top achievements
Rank 1
 answered on 12 May 2010
6 answers
172 views
Dear Telerik,

                 I am having an issue in hiding and showing columns dynamically in grid. To tell about my scenario, my grid has to be loaded with only fewer number of columns, the rest of the columns i set the visibility to false in the Page_Load event.

The grids look and feel is fine before the operations like grouping is done, once after I grouped any of the column then the column width collapsed. I am assuming that the grid assigns the width of hidden columns to the any one of available or remain columns in the grid. After I checked on the hided columns through header context menu. Then the gris is looking fine.

So please let me know what are the possibilities to adjust the width of the columns with the available columns during the grouping, etc.

Regrds,
Chandran
                     
Tsvetoslav
Telerik team
 answered on 12 May 2010
1 answer
104 views
Dear Telerik,

I am unable to bind appointments from database when working with resources. Appointments are binding without resources but after adding resource to scheduler, appointments are not showing. Is there any procedure to bind appointments to scheduler when working with resources.


Thanks and Regards
--------------------------
K RAMU
Peter
Telerik team
 answered on 12 May 2010
1 answer
180 views
Hi,

I have some questions about the exporting to outlook:

1) I checked some examples and i configured how i can export the scheduler to an .ics file. When i import that file in to outlook with the appointments i will have set, then on the appointment day, i will get a reminder (for example)3 hours before?

2) Also is it possible to have an automated procedure that exports the .ics file. I mean not have to export it by clicking a button?

3) Also can i set parameters on the exporting? I mean can i export the appointments that have been registered today or in the last week?Or can i export only the appointments for the last month?

Regards,
Eleni
Peter
Telerik team
 answered on 12 May 2010
1 answer
112 views
I'm trying to implement the following example

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=upload

But i need to handle the uploading of a file, specify a filename for each one, insert the filename into a database, and not use a binaryimagecolumn, just a normal image with a mysql datasource.

Can anyone point me in a direction of any examples doing this ?

Many thanks, Alan





Genady Sergeev
Telerik team
 answered on 12 May 2010
1 answer
161 views
Looking for an idea about how to structure this. We have three related tables, Department, agency and program. Program relates to agency via FK, and Agency relates to Department via FK. We'd like to have a single Radgrid for editing programs, and it's easy to show the lookup for programs, but we'd like to show the department name, the agency name, as well as an additional field from the agency table. Here's the structure (simplified)

Department
===========
DepartmentID
DepartmentName

Agency
===========
AgencyID
DepartmentID
AgencyName
AgencyType

Program
===========
ProgramID
ProgramName
[other columns....]
AgencyID








We could create a view that contains all columns, but then I lose the automated editing functionality. Is there a way to create this grid, include the department name and the additional field from the agency table automatically, and still retain the Radgrid editing functionality?

Derek
Top achievements
Rank 1
 answered on 12 May 2010
1 answer
133 views
Hello all ,

Is there any possibilities to perform client side sort in GridView ?? if so will be great if am given some code excerpt .. ..
Thanks
-Prince


Schlurk
Top achievements
Rank 2
 answered on 12 May 2010
2 answers
98 views
How do i use ajax to show a textbox on a grid's user control's edit form?
As an example I am using the sample http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx
as a user control on my page. The edit of the page uses the EmployeeDetailsCS.ascx with 2 controls added: 1 checkbox (chkReferral) and 1 textbox (txtReferralOther). When i check the chkReferral i want to show the txtReferral.  Somewhere down the line my onclick event for my checkbox is not getting processed and not able to trigger the visibility of the textbox on the client side. I am getting an Object not found error. Anyone have any example code of how this can be accomplished?
Thanks
Chris
Chris Jeunelot
Top achievements
Rank 1
 answered on 12 May 2010
4 answers
249 views
Hi telerik,

I have the same issue as this post:


However, I have a different version - 209.2.826.20.  How do I get my styles to apply to the multi line textbox?


thanks in advance, 
Ronnie Robertson
Ronnie Robertson
Top achievements
Rank 1
 answered on 12 May 2010
3 answers
137 views
What's the best way to modify the way that custom resources are displayed?

One my of my developers has created a customprovider for the scheduler, where we have Team Members and Contacts. Team Members will probably be 10-15, but contacts could run into the hundreds, so it's clearly not practical to display checkboxes for every one.

Is it possible to modify the display to use multiselect listboxes instead of checkboxes? What would be even better is to extend it so that I have some kind of add/remove listbox pairs. We've thought about building our own, but it's convenient and practical to have it embedded in the scheduler.

TIA for any suggestions.
Peter
Telerik team
 answered on 12 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?