Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
244 views
I have a RibbonBar button that when click a RadWindowManager.RadConfirm window opens up. After the "Ok" button is 
click the RadAjaxManager1_AjaxRequest in the code behind is not being fired. However, the javascript is being fired
and returns no errors

the HTML markup and javascript is setup as follows:

<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="DailyReportsControl.ascx.vb" Inherits="FXWB.DailyReportsControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        //<![CDATA[
        function alertCallBackFn(arg) {
            return false;
        }
 
        function confirmCallBackFn(arg) {
            var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
            if (arg != null) {
                //If user confirms they want to clear all signatures, call server side method   
                if (arg == true) {
                    if (ajaxManager != null) {
                        ajaxManager.ajaxRequest(1);
                        return false;
                    }
                }
                //If user cancels the clear all signatures, then simply return   
                else if (arg == false) {
                    if (ajaxManager != null) {
                        return false;
                    }
                }
            }
        }
        //]]>                                                                        
    </script>
</telerik:RadCodeBlock>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
</telerik:RadWindowManager>

The code-behind loads up other controls dynamically on the page (there is another page identical to this one and the AjaxRequest is firing on that one).
The code-behind for the Request is as follows:

    Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As ObjectByVal e As Telerik.Web.UI.AjaxRequestEventArgsHandles RadAjaxManager1.AjaxRequest
        Select Case e.Argument
            Case "1"
                MyBase.OnDelete(ucFolderList.ListType, ucFolderList.ucFolderControl.objFolder.strFolderType, ucFolderList.SelectedItems)
                MyBase.OnDelete(ucSubfolders.ListType, ucSubfolders.ucFolderControl.objFolder.strFolderType, ucSubfolders.SelectedItems)
                Response.Redirect(Request.Url.ToString())
        End Select
    End Sub


Why is the RadAjaxManager1_AjaxRequest not firing after the confirm button click?
 
Marin Bratanov
Telerik team
 answered on 17 Oct 2012
1 answer
357 views
Hello,
I am using rad grid and opening edit form in popup. The grid have many columns so edit form's height is very high because each rows in edit form have only one text box.   I want to show multiple text boxes in a row for edit. How I will do that.I am using item templates and edit item templates for displaying data.
Kostadin
Telerik team
 answered on 17 Oct 2012
1 answer
73 views
Hi all member
I have a RadWindow which is url to a WebForm .there is a radgrid in webform .so when radwindow is in maximum state i can not to write in radgrid when radgrid is in insert mode
I use RadControls for ASP.NET AJAX Q1 2012 SP1
this problem is when

RestrictionZoneID value set to a div tag
please helpt


Maria Ilieva
Telerik team
 answered on 17 Oct 2012
1 answer
38 views
I'm afraid I've been away from Telerik controls (and web development) for some time.  My problem is this.

What I think I need to do is implement a text box (a rich textbox?) that can not only accept text but also small images.  The control should save and retrieve the contents to a varbinary(max) field in a SQL Server 2008 (minimum) database table. 

What is the simplest way to implement this?  (Emphasis on simple.)
Vasil
Telerik team
 answered on 17 Oct 2012
1 answer
57 views
Hi,

I have a GridTemplateColumn which contains a checkbox. It works well in every browser except IE7 which looks like this (see below) when I scroll.

Is that a known issue?
Pavlina
Telerik team
 answered on 17 Oct 2012
3 answers
70 views
Does Telerik have an object that the OrgChart XML can be deserialized to?

I currently load the data from an XML file using the LoadContentFile method. I would like to update the OrgChart XML file on the GroupItemDrop and NodeDrop events and since there are no IDs, it seems like the best approach would be to deseralize the XML, then update the XML object, write to the file, and rebind the control.

Is that the best way to update the XML file or is there a better way to do this?
Peter Filipov
Telerik team
 answered on 17 Oct 2012
3 answers
175 views
Hi,
I have this situation where, when I click a button client-side(i.e the button onclick ) event, I would like to use javascript function to expand only those nodes that have been checked(ticked). Rest of the nodes to be collapsed.
I am have tried a lot of diff tent ways however with no success.
Can any one help or show me any other examples of a similar situation.

Thanks in advance

Tejas
Princy
Top achievements
Rank 2
 answered on 17 Oct 2012
10 answers
388 views
Hello,

I have a radgrid with GridDateTimeColumn

<

 

telerik:GridDateTimeColumn DataField="Date_input" HeaderText="Date"

 

 

UniqueName="Date_input" ReadOnly ="true"

 

 

DataType="System.DateTime">

 

 

<ItemStyle Width="130px" />

 

 

</telerik:GridDateTimeColumn>

OR

 

<

 

telerik:GridDateTimeColumn DataField="Date_input" HeaderText="Date"

 

 

UniqueName="Date_input" ReadOnly ="true"

 

 

DataFormatString="{0:dd/MM/yyyy}" DataType="System.DateTime">

 

 

 

 

 

<ItemStyle Width="130px" />

 

 

 

 

 

</telerik:GridDateTimeColumn>

In my MSSQL database it is a datetime value ex : 20/01/2009 11:20:10

My problem it is when a put exat date value in filter field, only date ... that don't work... per exemple : 20/01/2009, my row with 20/01/2009 11:20:10, not display ...

i try http://www.telerik.com/help/aspnet-ajax/grdfilteringfordatetimecolumnwithdataformatstring.html for other date format but i is not ... that work when i make greatthan filter .... i suppose that 20/01/2009 11:20:10 is not same than 20/01/2009 , it is correct in fact ...

Do you have a solution for have results with 20/01/2009 ?

 

Vasil
Telerik team
 answered on 17 Oct 2012
4 answers
273 views
Hi All:
    As below, I want to set the label no-show when I click the "Delete" Button. But it is not fire.
    <telerik:RadGrid ID="RadGrid1" runat="server"
        AutoGenerateColumns="False" CellSpacing="0" AllowPaging="True" GridLines="None" Skin="Default">
  
<MasterTableView>
 
 
 
    <Columns>
        <telerik:GridTemplateColumn DataField="AREA_ZIP_CODE" UniqueName="AREA_ZIP_CODE">
            <HeaderTemplate>
                <asp:Label ID="Label2" runat="server" Text="AREA_ZIP_CODE"></asp:Label>
            </HeaderTemplate>
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("AREA_ZIP_CODE") %>' Visible=false></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="AREA_ZIP_DESC" UniqueName="AREA_ZIP_DESC">
            <HeaderTemplate>
                <asp:Label ID="Label3" runat="server" Text="AREA_ZIP_DESC"></asp:Label>
            </HeaderTemplate>
            <ItemTemplate>
                <asp:Label ID="Label4" runat="server" Text='<%# Eval("AREA_ZIP_DESC") %>' Visible=false></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn DataField="ACTIVE_FLAG" HeaderText="ACTIVE_FLAG"
            SortExpression="ACTIVE_FLAG" UniqueName="ACTIVE_FLAG">
        </telerik:GridBoundColumn>
         
        <telerik:GridTemplateColumn HeaderText="Delete" UniqueName="Delete">
            <ItemTemplate>
                <asp:Button ID="Button1" runat="server" Text="Delete" CommandName="Delete" />
                <asp:Button ID="Button2" runat="server" Text="Cancel" CommandName="Cancel" />
            </ItemTemplate>
        </telerik:GridTemplateColumn>
         
    </Columns>
 
    <PagerStyle AlwaysVisible="True" />
 
</MasterTableView>
 
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
    </telerik:RadGrid>
Protected Sub RadGrid1_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
    If e.CommandName = "Delete" Then
        Delete(sender, e)
    ElseIf e.CommandName = "Cancel" Then
        Cancel(sender, e)
    End If
 
End Sub
 
Protected Sub Delete(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs)
    Dim rowNum As Integer = Convert.ToInt32(e.Item.ItemIndex)
    Dim item As GridDataItem = RadGrid1.Items(rowNum)
    Dim lb As Label
 
    For Each row As GridDataItem In RadGrid1.Items
        lb = item.FindControl("Label1")
        If row.ItemIndex <> rowNum Then
            lb.Visible = False
        ElseIf row.ItemIndex = rowNum Then
            lb.Visible = True
        End If
    Next
End Sub
 
Protected Sub RadGrid1_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
    Dim da As New SqlDataAdapter
    Dim con As New SqlConnection
    Dim com As New SqlCommand
    con.ConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\db.mdf;Integrated Security=True;User Instance=True"
    con.Open()
    com.Connection = con
    com.CommandText = "SELECT * FROM [area_zip_table]"
    da.SelectCommand = com
    Dim dt As New DataTable
    da.Fill(dt)
    RadGrid1.DataSource = dt
End Sub
Singl Pang
Top achievements
Rank 1
 answered on 17 Oct 2012
11 answers
357 views
Hello,

Can you provide us the correct files .nupkg for the telerik controls, to create internal repository.

Thanks!!
Andrey
Telerik team
 answered on 17 Oct 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?