Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
71 views
Hi,

I got an application with a ListView containing RadControls in InsertItemTemplate.
I would like to propose to the visitor a value in a RadTextBox calculated on value inserted by this visitor in another RadTextBox.
But how can I get access to these fields in js ?
In .Net code behind no problem.. but I don't know how to do that on client side.

Can someone help me on this ?

Regards,

David
Maria Ilieva
Telerik team
 answered on 07 Feb 2011
1 answer
69 views

Hello,

I have requirement to refresh the RADGrid after user download the selection. So i have first column as checkboxes and users selects those checkbox and as per the selection code gets the document and gives it for download to user.


                        Response.ContentType = "text/plain";
                        Response.AddHeader("Content-Disposition", "attachment;filename=" + FileName);
                        Response.ClearContent();
                        Response.Buffer = true;
                        Response.Write(objBuilder.ToString());
                        Response.End();


So now i have to remove the selection after download and make those records of RADGrid with different color to indicate that record is already downloaded. how i can do that ?
Daniel
Telerik team
 answered on 07 Feb 2011
2 answers
80 views
I have a grid with image button column. On Client click I want to open window with some data from another class. The following code does that but need to click button twice. I just can not fugure out wants wrong. Please help.
.cs
if (e.CommandName == "viewQuals")
            {
                GridDataItem dataItem = (GridDataItem)e.Item;
                int id = int.Parse(dataItem["EIDColumn"].Text);
                ImageButton updateButton = dataItem["viewQualsColumn"].Controls[0] as ImageButton;
                updateButton.OnClientClick = "return viewQualsClick(" + id + ")";
               }
.aspx
function viewQualsClick(id) {
                  
                window.open("RES_MQ_new.aspx?empid=" + id, "", "width=550,height=700,resizable=yes,scrollbars=yes");
            }
 function ajaxRefresh() {
           var ram = $find("<%= RadAjaxManager.ClientID %>");
            ram.ajaxRequest("foo");
                  
            }
When I click for the first time, it goes to "<%= RadAjaxManager.ClientID %> and does nothing. And second click the window pops up with correct data.

 

 

 

Smiely
Top achievements
Rank 1
 answered on 07 Feb 2011
6 answers
321 views
Hi Telerik Team,
  This problem is related with opening a RadWindow. I have a RadGrid with a button column and need to open an Radwindow within its click event (command event). So far, this has not been a problem for me, since I had call the RadWindow mostly in
button click event of a button. (I did it like -- > RadWindow1.VisibleOnPageLoad=true ). 
But when I try to do the same thing the window is not shown (pop-up). Can you please tell me the reason? 

Note: The reason for me to open/show  the RadWindow in code behind using "RadWindow1.VisibleOnPageLoad=true" is, I need to 
to do some validations to get the decision whether to open it or do another operation. 


Thanks,
Dilip Nilanka
Smiely
Top achievements
Rank 1
 answered on 07 Feb 2011
5 answers
619 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
447 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
81 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
117 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
560 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
268 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?