Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
77 views
I am using a Grid with 3 columns(3 labels). I changed the text of the first column through Javascript. I wanted to access the updated grid from the code behind. The changes made at the client side is not visible at the server side. How can we achieve this?
Jayesh Goyani
Top achievements
Rank 2
 answered on 30 Nov 2012
3 answers
314 views
I have a button image in a radGrid.  When the button image clicked I want to display a RadWindow.  But before I display the RadWindow I need to populate a datagrid contained in the RadWindow.

Radwindow
<telerik:RadWindow runat="server" ID="rwBulletins"
    RestrictionZoneID="ContentTemplateZone"  Modal="true" Width=700 Height=400
    Skin="Web20">
    <ContentTemplate>
 
    <asp:panel ID="pnlBulletin" runat="server" Width=700 BackColor="White" ForeColor="Black" BorderColor=Black BorderWidth=5 >
            <table>
                <tr>
                    <td>s
                        <b><asp:Label ID="Label10" runat="server"  Text="Bulletins" /></b>
                        <hr />
                    </td>
                </tr>
            <tr><td align="left">
                    <asp:panel ID="pnlBulletinBody" runat="server" ScrollBars=Vertical Height=400 Width=700  >
                        <table>
                            <tr>
                                <td>
                                    <asp:DataGrid ID="dgBulletins" runat="server" AutoGenerateColumns="false" >
                                        <AlternatingItemStyle BackColor="White" />
                                         
                                        <Columns>
                                            <asp:BoundColumn DataField="Description" HeaderText="Description" />
                                            <asp:TemplateColumn HeaderText="Author/Date">
                                                <ItemTemplate>
                                                    <%# Eval("Author") %><br />
                                                    <%# Eval("CreationDate") %>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                        </Columns>
                                    </asp:DataGrid>
                                    <br /><br />
                                    <asp:Label ID="lbBulletinParent" runat="server" />
                                </td>
                            </tr>
                        </table>       
                    </asp:panel>
                </td>
             </tr>
         </table>
    </asp:panel>
    </ContentTemplate>
</telerik:RadWindow>


I have tried using a static server button click handler where I populate the grid, but I can't get the RadWindow to display when I use the

VisibleOnPageLoad property.  (It does show if I cause another postback.  Am I missing an autopostback property setting somewhere?)

Image Button in RadGrid

<telerik:GridTemplateColumn HeaderText="Bulletins" ItemStyle-HorizontalAlign="Center" >
    <ItemTemplate>
        <asp:ImageButton ID="ibtnBulletin" CommandName="Bulletin" runat="server"
            ImageUrl='<%#BulletinImage(Eval("ClientID")) %>'  
            Onclick="ibtnBulletin_Click" />
    </ItemTemplate>
</telerik:GridTemplateColumn>

Image Button Handler

Protected Sub ibtnBulletin_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
    Dim ibtn As ImageButton = CType(sender, ImageButton)
    Dim dgi As Telerik.Web.UI.GridDataItem = ibtn.Parent.Parent
 
    Dim ClientID As String = dgi.Cells(4).Text
    dgBulletins.DataSource = clsBulletins.GetBulletinsByClientandReseller(ClientID)
    dgBulletins.DataBind()
 
    rwBulletins.VisibleOnPageLoad = True
 
End Sub

I also tried calling a javascript function from the image button to display the RadWindow which works in displaying the RadWindow, but I couldn't figure out how to call the routine to populate the grid from the javascript.  So if that's a better approach I'm open to that.  Here's how that call looked so far:

<telerik:GridTemplateColumn HeaderText="Bulletins" ItemStyle-HorizontalAlign="Center" >
    <ItemTemplate>
        <asp:ImageButton ID="ibtnBulletin" CommandName="Bulletin" runat="server"
            ImageUrl='<%#BulletinImage(Eval("ClientID")) %>'
            OnClientClick="openWinContentTemplate(); return false;" />
    </ItemTemplate>
</telerik:GridTemplateColumn>

And here's the javascript component:

<script type="text/javascript">
    function openWinContentTemplate() {
        $find("<%=rwBulletins.ClientID %>").show();
    }
 
</script>

Thanks for any help on this.

 

 

Rumen
Telerik team
 answered on 30 Nov 2012
1 answer
72 views
How can i minimize the vertical spacing between the radtreenodes.
Princy
Top achievements
Rank 2
 answered on 30 Nov 2012
1 answer
191 views
I am using RadAsyncUpload control of telerik. When we browse a .jpg file with size 0 bytes, the browser keeps uploading the image and shows the progress bar until user clicks on cancel button. This is observed in chrome and firefox browser. Can we check the file size on the client side, and throw a cancel action, so that indicating the user that he uploaded a invalid image file.
Kate
Telerik team
 answered on 30 Nov 2012
2 answers
59 views
Hi, 
Is there a way to get requested URL from RadAjaxManager - OnRequestStart event?
When that event fire, I want to know the URL of form\page that make the request.

Thanks, 
Robin
Robin
Top achievements
Rank 2
 answered on 30 Nov 2012
1 answer
65 views
I have the following problem and need help with a solution. The behaviour is sampled by the online demo for the radcombobox so I will not supply a sample here.

Steps to reproduce:
1. Navigate to ComboBox/Features demo (http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx)
2. Open the dropdown and click the "Check All" option so that all items are checked.

3. Click the "Get Checked Items"

This is the initial state of my ComboBox in my solution. Now I want to just remove all checks and select one of them.

4. I open the Combobox and click on the "Check All" option to remove all selections.

Well, nothing happens.You will have to click twice on "Check All" to remove them all. My users are frustrated!

I understand that this must be by design, but for me the most logical thing would be if "Check All" works as a toggle button. If all checked, remove, if no checked, check all.

Anyone have a solution/workaround to get my "Check All" to work as a toggle button from click one?

Regards
Per Löfstedt
Boyan Dimitrov
Telerik team
 answered on 30 Nov 2012
1 answer
69 views
I am using RadScheduler.Here is Demo http://demos.telerik.com/aspnet-ajax/scheduler/examples/contextmenu/defaultcs.aspx. Its working fine. i want to customize it. I want to show event on popup menu when click on "more" button.How can i prevent go to day calander when click on more button and get the date by jquery of that where "more" button clicked.
Thanks.
Plamen
Telerik team
 answered on 30 Nov 2012
1 answer
123 views
How can i restrict typing of special charecters in a radcombobox
Shinu
Top achievements
Rank 2
 answered on 30 Nov 2012
2 answers
84 views
I have 3 RadComboBoxes on a web page. I have everything set in the SelectedIndexChanged of the first combobox to fill and select and load the  list of Item of the second combobox, same with the second to the third. What I have is cascading comboboxes that on selection of the first combobox's item it's SelectedIndexChange event loads all of that item.values in the second combobox that are referenced by the selected item.value (or e.value) of the first combobox. Also, the second to the third works the same way. What I need to do is on the page_load of the webpage have the cascade combobox selections take place. How can this be done on page_load and then once the page is loaded? Example of code for the first combobox is shown (note: the second to the third follows the same model) below:

protected void ComboBoxGroup_SelectedIndexChanged (object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    GroupProgram.Item proItem = new GroupProgram.Item(sqlConn, Convert.ToInt32(e.Value));

    ComboBoxProgram.DataValueField = Program.Const_ProgramID;
    ComboBoxProgram.DataTextField = Program.Const_ProgramText;

    ComboBoxProgram.DataSource = proItem.List;
    ComboBoxProgram.DataBind();  
}

Now, as you can see when the user selects a Group combobox item it's selectedIndexChange event is called and the Program combobox has its bound list pulled from the e.value ID field. The problem is that on page load I will set the Group combobox selected  item in the onLoad event; however, I need to know how to call it's selectedIndexChanged event dynamically when it's item value is set.
Also, what is the best way to handle the 3 cascading radcomboxes after the page has loaded?

Thanks,


Steve Holdorf
Dimitar Terziev
Telerik team
 answered on 30 Nov 2012
1 answer
83 views
How  can i desable the cursor in a rad combobox
Shinu
Top achievements
Rank 2
 answered on 30 Nov 2012
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?