Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
151 views
Hi
I want to add a RadGrid GridBoundColumn FilterDelay property value in web.config file so that by default it is applicable for all radgrids available in my project. please suggest what should i add for this in web.config file and how i can retrieve these values or bind with my radgrid?
Iana Tsolova
Telerik team
 answered on 03 Nov 2010
8 answers
410 views
Hi

I have a site map datasource and a RadMenu with security trimming enabled, Now I want to use multiple columns, how can I do this?

I also need direction, when using a datasource, I have a top level node in a table, with child nodes, I'm trying to display the top nodes (no problem) and the child nodes in a multi column - this is where I'm also having trouble.


Andy
Veronica
Telerik team
 answered on 03 Nov 2010
7 answers
457 views
Hello Sir,

I am using Scheduler control. i wnat to find Click Event Of Day, Week, Month Tab Of Scheduler Control.
How can i achive. Please help me.

Thanks
Chandan
Peter
Telerik team
 answered on 03 Nov 2010
12 answers
298 views
Hi,

I have two pages. Details and orderdetails. In Details page i have radwindow with window manager. I am opening orderdetails page using iframe in details page. See code below.

<telerik:RadWindowManager ID="RadWinManager" runat="server" OnClientDragStart="WindowDragStart"
    OnClientResize="WindowDragStart" OnClientResizeStart="WindowDragStart" OnClientResizeEnd="WindowDragStart">
    <Windows>
        <telerik:RadWindow ID="DetailRadWind" runat="server" ShowContentDuringLoad="false"
            BackColor="Green" Behaviors="Default" Animation="FlyIn" Skin="Forest">
            <contenttemplate>
                            <div>
                                <iframe frameborder="0" style="width: 100%; height: 100%; border-style: none; border-width: 0px"
                                    id="ifrmRadWin" runat="server"></iframe>
                            </div>
                        </contenttemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
ScriptManager.RegisterClientScriptBlock(this.up, this.GetType(), "strSearSiteName", "document.getElementById('ctl00_PagePlaceholder_DetailRadWind_C_ifrmRadWin').src='OrdDet.aspx'", true);
                LinkButton lnkSiteName = (LinkButton)rw.FindControl("lnkSiteName");
                string Title = "Order Details : " + lnkSiteName.Text;
                ScriptManager.RegisterClientScriptBlock(this.up, this.GetType(), "BlkRejection", "OpenSiteWindow('" + Title + "')", true);
function OpenSiteWindow(Title) {
    var WinTitle = Title;
    var oWnd = GetRadWindowManager().GetWindowByName("DetailRadWind");
    oWnd.set_width(810);
    oWnd.set_height(580);
    oWnd.set_title(WinTitle);
    var radwind = window.radopen("", "DetailRadWind");
 
}

once i clikc the button in details page radwindow will open and displays the data in orderdetails page. And i have another radwindow in orderdetails page.(this window is in orderdetails page). once the popup comes up i have reject button in it. and if i click the reject button anthoer window will open. Now the problem is How to open the window that is orderdetails page. i tried to do it on visibleonpageload = true. but its loading on every pageload. How to open this window using javascript.

Here is orderdetails Page

<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="smOrddet" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="upOrdTsk" runat="server">
        <ContentTemplate>
            <div>
                Some HTML Code HERE</div>
            <telerik:RadWindow ID="RadWinReject" runat="server" Height="340px" Width="515px"
                Title="Bulk Task Completion" Behaviors="Default" CustomCSS="CSS/CustomStyle.css"
                ShowContentDuringLoad="false" BackColor="Green" Animation="FlyIn" Skin="Forest">
                <contenttemplate>
                    <asp:UpdatePanel ID="uprej" runat="server" OnUnload="Registerpanel5">
                        <ContentTemplate>
                        <div>Some HTML HERE</div>
                          </ContentTemplate>
                    </asp:UpdatePanel>
                </contenttemplate>
            </telerik:RadWindow>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
Georgi Tunev
Telerik team
 answered on 03 Nov 2010
4 answers
138 views
I'm sure this is simple but I'm missing something and I can't figure out what. I'm just trying to get my function to respond when I click on a button within a ajax panel. Here is my aspx.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="admin_Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
         
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" HorizontalAlign="NotSet">
             
            Please select a file:
            <asp:FileUpload ID="FileUpload1" runat="server" /><br />
             
            <asp:Button ID="upload" Text="Upload" runat="server" /><br />
            <asp:Label ID="output" runat="server"></asp:Label>
             
    </telerik:RadAjaxPanel>
 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Transparency="10" BackgroundPosition="Center">
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.LoadingProgressBar.gif") %>'
            style="border: 0px;" />
        </telerik:RadAjaxLoadingPanel>
    </div>
    </form>
</body>
</html>


And here is my vb. What am I missing
Partial Class admin_Default
    Inherits System.Web.UI.Page
 
    Protected Sub upload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles upload.Click
        Response.Write("test")
 
        If (FileUpload1.HasFile) Then
 
            Try
                Dim name As String = FileUpload1.FileName.ToString
                Dim ext As String = System.IO.Path.GetExtension(FileUpload1.FileName)
 
                If (ext = ".csv") Then
 
                    FileUpload1.SaveAs(Server.MapPath("~/admin/temp/" & name))
 
                Else
 
                    output.Text = "<span style='color: red;'>Invalid file type. File must be CSV.</span>"
 
                End If 'if ext = .csv
 
 
            Catch ex As Exception
                Response.Write(ex.ToString)
            End Try 'fileupload.hasfile
 
        Else
 
            output.Text = ("<span style='color: red;'>Please make sure you have selected a file and the size is greater than 0 bytes.</span>")
 
        End If 'fileupload.hasfile
 
    End Sub
End Class

Sebastian
Telerik team
 answered on 03 Nov 2010
8 answers
408 views
Hello Team,

I need to give 3 radio buttons in edit form (type 1, type2 , type3) based on which the rest of edit form is desiged(shown/hidden).
How do i bind these radio buttons as the values that comes from database is (id for type, 1 , 2 , 3) I need to check appropriate radiobutton based on id.
Should I handle this in databound without binding this it design time?

Any pointers .
Dimo
Telerik team
 answered on 03 Nov 2010
3 answers
218 views
Hello,

I was wondering if it is possible to have a multicolumn RadComboBox being loaded using AutomaticLoadOnDemand and have the items filtered in the RadComboBox based on what the users type, but not limit the search to be against only the DataValueField of the RadComboBox. I'd like the below RadComboBox to be filtered by CUST_ID, COMPANY_NAME, CONTACT_NAME and ADDRESS when the user types anything in the RadComboBox's text area.

Here is my RadComboBox that I am interested in adding this functionality to.

Please let me know if this is possible.

<telerik:RadComboBox ID="rcbCust" runat="server" CausesValidation="false"
               EnableAutomaticLoadOnDemand="true" Width="550px"
               AutoPostBack="true" DataTextField="COMPANY_NAME"
               DataSourceID="ObjectDataSource1"
               OnSelectedIndexChanged="rcbCust_SelectedIndexChanged"
               AllowCustomText="true"
               EmptyMessage="Select a customer to enter an order for "
               EnableAjaxSkinRendering="true"
               DataValueField="CUST_ID" >
                    <HeaderTemplate>
                        <table width="100%">
                            <tr>
                                <td style="width: 115px" align="center">
                                    Customer ID
                                </td>
                                <td style="width: 115px" align="center">
                                    Company Name
                                </td>
                                <td style="width: 115px" align="center">
                                    Contact Name
                                </td>
                                <td style="width: 120px" align="center">
                                    Address
                                </td>
                            </tr>
                        </table>
    </HeaderTemplate>
    <ItemTemplate>
        <table width="100%">
            <tr>
                 <td style="width: 115px" align="center">
                      <%# DataBinder.Eval(Container.DataItem, "CUST_ID") %>
                 </td>
                 <td style="width: 115px" align="center">
                      <%# DataBinder.Eval(Container.DataItem, "COMPANY_NAME") %>
                 </td>
                 <td style="width: 115px" align="center">
                      <%# DataBinder.Eval(Container.DataItem, "CONTACT_NAME") %>
                 </td>
                 <td style="width: 120px" align="center">
                      <%# DataBinder.Eval(Container.DataItem, "ADDRESS") %>
                 </td>
            </tr>
        </table>
    </ItemTemplate>                                                                         
</telerik:RadComboBox>
Casey
Top achievements
Rank 1
 answered on 03 Nov 2010
2 answers
115 views
Hi guys,

I'm new in developing WebParts for sharepoint 2007. I'm able to create a webpart using the RadControls like the "Demo (How to create a WebPart in sharepoint)" shows. my question:
After a controls fires a request, the whole webpart (onInit,onLoad...) is called so all controls where reloadet. In my oppinion ajax only should update on control not the whole webpart. Furthermore, when a controls fires a request, all webparts on the page will be reloadet.

Is this the way Ajax works with webparts?

Jan
Jan
Top achievements
Rank 1
 answered on 03 Nov 2010
3 answers
831 views
Hi,

I am using Telerik controls for displaying data.

Inside the Telerik grid i have to show radcombobox.
I have done this using Template column, but now i am trying the same using telerik GridDropDownColumn.
For providing data to the grid, i am using a SQL data source and for populating dropdown i am using separate sql data source.
I have tried two scenarios here:
1) When the query to populate the dropdown is a subset of the main query to populate the rad grid. (In this case it was working good).
2) When the query to populate the dropdown is coming from a different table, i am getting "'System.Data.DataRowView' does not contain a property with the name ERROR" in this case.

I dont know if i am missing any property to set for the dropdown column.
Below is the same code for this....

<telerik:RadGrid ID="rgrdUpdateDropdown" runat="server" DataSourceID="dsDropDown" GridLines="None" Width="600px">
            <MasterTableView AutoGenerateColumns="False" EditMode="InPlace" DataSourceID="dsDropDown" DataKeyNames="COMM_CD">
                <Columns>
                    <telerik:GridEditCommandColumn UniqueName="EDIT_IMAGE" ButtonType="LinkButton" EditText="Edit">
                        <ItemStyle Width="2%"/>
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn DataField="COMM_CD" HeaderText="ID" UniqueName="COMM_CD">
                    </telerik:GridBoundColumn>
                    <telerik:GridDropDownColumn DataSourceID="dsDropDown2" HeaderText="Editable" UniqueName="Dropdown1" DataField="POSSE_ADDR"
                        ListTextField="POSSE_ADDR" ListValueField="POSSE_ADDR" DropDownControlType="RadComboBox">
                    </telerik:GridDropDownColumn>
                    <telerik:GridDropDownColumn DataSourceID="dsDropDown"  HeaderText="Editable1" UniqueName="Dropdown12" DataField="COMM_CD"
                        ListTextField="COMM_CD" DropDownControlType="RadComboBox">
                    </telerik:GridDropDownColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
                <asp:SqlDataSource ID="dsDropDown" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
            SelectCommand='SELECT "COMM_CD","COMM_NAME" FROM "COMMUNITY"'>
        </asp:SqlDataSource>
                <asp:SqlDataSource ID="dsDropDown2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
            SelectCommand='SELECT DISTINCT "POSSE_ADDR" FROM "ADDRESS" WHERE ROWNUM < 10'>
        </asp:SqlDataSource>

Thanks
SKY
Princy
Top achievements
Rank 2
 answered on 03 Nov 2010
1 answer
119 views
the radcontextmenu by default loads downwards when clicked.  I wish for this to load upwards.  Is this possible?
Yana
Telerik team
 answered on 03 Nov 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?