Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
639 views
Hi -

I'm new to programming... so this might be a simple fix.  What I'd like to do is use a linkbutton to select a row of data, put that data into a session variable, then redirect to a page that will display the selected data.  Right now I'm trying to figure out how to use the linkbutton to select the row.
Here is my linkbutton
<telerik:GridButtonColumn ButtonType="LinkButton" Text="Select" UniqueName="ButtonColumn">  
  <HeaderStyle Width="50px" /> 
</telerik:GridButtonColumn> 
There are no onClick properties for the GridButtonColumn.  How would I initiate the event from this button?

Next, here is what I have for the behind code... once I can figure out where to put it in an event... but I know I'm missing a lot of the code...
        RadPanelItem SOISearchItem = (RadPanelItem)RadPanelBar1.FindItemByValue("SOISearch");  
        RadGrid soiRadGrid = (RadGrid)SOISearchItem.FindControl("SoiRadGrid");  
        LinkButton linkButton = (LinkButton)SOISearchItem.FindControl("LinkButton");  
          
        if (soiRadGrid.SelectedItems.Count > 0)  
        {  
          GridItem selectedItem;  
          
          // grab selected row  
        }  
 
        Session[Tip.Utility.UIConstants.SoiSession] = soi;  // soi is my class variable  
          
        Response.Redirect("SOI.aspx");  
 

Here is my Grid, which is a table of what I'm calling SOI data (I have an SOI class in the BO):
                      <telerik:RadGrid ID="SoiRadGrid" runat="server"   
                                    AllowSorting="False"   
                                    GridLines="None"   
                                    Skin="WebBlue" 
                                    AllowFilteringByColumn="False"   
                                    AllowPaging="False"   
                                    ShowGroupPanel="True">  
                      <ClientSettings Resizing-AllowColumnResize="true" AllowKeyboardNavigation="false"></ClientSettings> 
                      <MasterTableView AutoGenerateColumns="False" PageSize="5">  
                        <RowIndicatorColumn> 
                          <HeaderStyle Width="20px" /> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn> 
                          <HeaderStyle Width="20px" /> 
                        </ExpandCollapseColumn> 
 
                        <Columns> 
                            <telerik:GridButtonColumn ButtonType="LinkButton" Text="Select" UniqueName="ButtonColumn">  
                              <HeaderStyle Width="50px" /> 
                            </telerik:GridButtonColumn> 
                            <telerik:GridBoundColumn DataField="ID" HeaderText="ID" Visible="false"></telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="Tier" HeaderText="Tier"></telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="Org" HeaderText="Org"></telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="ProjectGroup" HeaderText="Project Group"></telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="RequestingEntity" HeaderText="Requesting Entity"></telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="SubmittalDate" HeaderText="Submittal Date"></telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="ContactInfo" HeaderText="Contact Info"></telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="Unredacted" HeaderText="Unredacted"></telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="Redacted" HeaderText="Redacted"></telerik:GridBoundColumn> 
                        </Columns> 
                        
                      </MasterTableView> 
                      <ClientSettings AllowDragToGroup="True">  
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                      </ClientSettings> 
                    </telerik:RadGrid> 

I want to use the ID column, that is hidden, to grab the soi data.

What other information would be helpful to give out to solve my problem?  Did I not explain something well enough?

Also, we are using an Entity Framework, and Visual Studio 2008.

wen






M
Top achievements
Rank 1
 answered on 07 Feb 2011
11 answers
460 views
Hi Telerik,

I use a RequiredFieldValidator to check content RadEditor, when error I want to set focus on RadEditor, how can I do??
I use this code below but it doesn't work, please help me

<html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:Label ID="lblTest" runat="server" />
        <br />
        <br />
        <telerik:RadEditor ID="RadEditor1" runat="server" />
        <asp:RequiredFieldValidator ID="rfvEditor1" runat="server" SetFocusOnError="true" ErrorMessage="*" ControlToValidate="RadEditor1" />
        <asp:Button ID="btnTest" runat="server" Text="OK" />
    </div>
    </form>
</body>
</html>
Daniel
Telerik team
 answered on 07 Feb 2011
3 answers
84 views
Hi ,
i use rad window and rad window manager torgether, 
i open window using manager and close it after that when i open rad window without using manager
it looks transparent  like "picture 1" .Also radgrid css looks different. How i m gonna solve this problem. Im using Telerik 2010 Q1 version
Thanks

 
Georgi Tunev
Telerik team
 answered on 07 Feb 2011
3 answers
123 views
I am having trouble updating a Control within a UserControl from another UserControl.

Layout;

MasterPage
-Page.aspx
    -ASP:Panel
        -RadPanelBar
            -Items
                -RadPanelItem
                    -UserControl1
                        -RadGrid
                            -Button in CommandItemTemplate (When button command completes needs to update controls within UserControl2
            -Items
                -RadPanelItem
                    -UserControl2
                        -ASP:Panel
                            -ASP:Label (this is the control that needs to be updated.)

I have tried to find the control with;

UserControl uc = (UserControl)Page.FindControl("UserControl1"); But it comes back with a null reference.

Any suggestion or pointers would be great.
Pavlina
Telerik team
 answered on 07 Feb 2011
8 answers
569 views

Hi All

I want to set the width of bars in a rad chart in run time.

I need help as soon as possible please.

Yosief Kesete

Giuseppe
Telerik team
 answered on 07 Feb 2011
5 answers
278 views
Hi,
Here is the scenario, 1 have 2 RadGrid on a web page. The first one is linked to a SQLDataSource and nothing on the interface can change the query so i dont have to call Rebind() method. But the second one has a filter combobox control that enable the user to filter the data. So i have a query with some parameters and once the query has changed, i have to call Rebind.

Here's the problem. Both Radgrid has a GridbuttonColumn. When i clicked on the first Grid buttonColumn the event ItemCommand is raised and i can do my stuff. But if i do the same with second grid, ItemCommand event is not fired because of that Rebind method. If i comment my 'RadGrid1.Rebind()' line and test it again ( So i play with the first snapshot of my data ), then the event is fired correctly.

Do i have to do something else after the Rebind method to make the ItemCommand event work properly ?

Thanks for your help !
Tsvetoslav
Telerik team
 answered on 07 Feb 2011
1 answer
115 views
I have found the root cause of the error and need a fix.

It appears that the temporaryFolder is not implemented the same for Silverlight and Flash.

The flash uploader sends files to the handler and the handler does not assemble the files in the  temporaryFolder until the post is complete.   The uploadhandler for silverlight assembles the file directly in the temporaryFolder.

This can be reproduced by disabling silverlight plugin in firefox and uploading any large file using Flash.
The File is not copied to the temporaryFolder until the upload is complete.

The ISSUE with this is that the app_data/RadUploadTemp folder on some hosts (Azure) is limited to 100 MB so the upload fills the temporary storage and raises an error "DISK FULL" which in turn causes a recycle of the application pool to purge the temporary storage.

I need a fix for the Flash Upload Handler to use the TemporaryFolder the same way Silverlight does.
I have not tested the case when flash and silverlight are not available but if the ajax uploader also uses the default storage rather than the TemporaryFolder property then that should be addressed too.
 
Please advise asap! I already have a support ticket open on this but need a quick resolution.
Genady Sergeev
Telerik team
 answered on 07 Feb 2011
2 answers
56 views
Hi,

I was using VS 2008 and my radgrid's pagerstyle was working as per my code. But, now when I upgraded to VS 2010, it does't work the same. I set the pagerstyle settings in page_prerender to be true or false based on grid itemcount, so that the pagerstyle is visible.
Ex: Suppose the total records in the grid are 48 and the page size chosen is 50, then also the pagerstyle is displayed in VS 2008.
In VS 2010, if I go one by one on page size, like from 10 to 12 to 20 to 50, its fine, but when I skip any of them, its not displayed any more.
My new version of telerik is : Telerik Tools Suite 2010 1.0.0.1 XP.

Page_Prerender()  {

if (grid.Items.Count > 10)

        { grid.PagerStyle.AlwaysVisible = true; }

else

        { grid.PagerStyle.AlwaysVisible = false;}

}
Thanks for your time.
Regards,
Raj

Raj
Top achievements
Rank 1
 answered on 07 Feb 2011
1 answer
29 views
Hi ,
I have an urgent task to do in my application please answer me ASAP for my following question:
I want to display default checkbox with each date on radschedular and if i have appointment then this checkbox will not come .
I haven't founded any template column rather than Appointment template.So please,  help me for my scenario ASAP.

Thanks in Advance

Thanks
Gaurav Bhardwaj
Peter
Telerik team
 answered on 07 Feb 2011
1 answer
72 views
Dear Sir ,

                I want to create general client function which takes any RadGrid in client side and creates a Jason string in the client side for all the rows data in Radgrid . Later this Jason string can be passed to server side using web service .  I think this will be a light weight and high speed way to transfer the data to server and save it in the server side .

Pls correct me if I am wrong in my thinking .
Daniel
Telerik team
 answered on 07 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?