Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
141 views
Hi all,

I am binding the grid with dynamic columns ie the column names changes everytime.
I am showing date picker, links, checkboxes, dropdownlist, text columns in my grid
everything is fine as far as displaying the grid is concerned.
the only problem is during inline editing of rows, i will need to create editors for the column types. I have successfully created datetime picker, textbox editor through code, but unable to create editor for dropdown columns as the items from dropdown are fetched from database and is dependent on the column id.

can anyone out there help me create dropdown editor for my dynamic dropdown column(s)?

thanks in advance

Shinu
Top achievements
Rank 2
 answered on 25 Jun 2010
2 answers
97 views
Hello

I have a page with 2 RadUploads and one submit button. There is also a RadProgressManager and RadProgressesArea.

The files that are going to be uploaded will be large. At the moment, I have server code that checks/validates to see if the user has selected two files. The problem is that, the files gets uploaded first, before the validating function is called.

So if the user uploads a big file in only one RadUpload, only when its finished uploading, does code get called to validate.. in which cases it'll throw up some validating error message. So the user will have to upload the one file again.

Is it possible to somehow do some client validation to check if the user has selected two files.. or even server check before file starts to upload?

Any help would be greatly appreciated..Thank you.
Imran
Top achievements
Rank 1
 answered on 25 Jun 2010
1 answer
81 views
Hi,
I am using Rad Calendar. 2.2.8 .o version.  I am using it as a pick the data from calendar.
It works fine. But when i select data & hit  the Submit Button Javascript errors are firing. I am using simple code only.
My Javascript error shows Object Expected.
When i remove Rad Calendar i am not getting Java script error. Why ?

I am copying my code below. Please respond to my post.

 

<rad:RadDatePicker ID="RadDatePicker1" runat="server" Skin="Default"

 

 

SkinsPath="~/RadControls/Calendar/Skins/" ToolTip="Select Date"

 

 

MinDate="01/01/1900" MaxDate="12/31/2100" DateInput-EmptyMessage = "- Select Date -" >

 

 

<Calendar runat="server" Skin="Default" SkinsPath="~/RadControls/Calendar/Skins/" >

 

 

<ClientEvents />

 

 

</Calendar>

 

 

 

</rad:RadDatePicker>

 

Dimo
Telerik team
 answered on 25 Jun 2010
2 answers
112 views
can a client event be added to a control in a EditItemTemplate at design time?
                    <EditItemTemplate>
                        <telerik:RadNumericTextBox ID="rntbNetCost" Text='<%# Bind("NetCost") %>' runat="server">
                            <ClientEvents OnValueChanged="UpdateCostSource" />
                            <NumberFormat DecimalDigits="2" />
                        </telerik:RadNumericTextBox>
                        <asp:RequiredFieldValidator ID="rfNetCost" ControlToValidate="rntbNetCost" ErrorMessage="Net Cost Required" runat="server">
                        </asp:RequiredFieldValidator>
                    </EditItemTemplate>

the function hasn't been implemented (yet)
            function UpdateCostSource(sender,args) {
                    alert('me');
            }

or do I have to add it as an attribute on the ItemCreated event handler in code
I'm working in VS2010 .NET 4.0

UPDATE - the event triggers, it just doesn't allow me to break

Marianne
Tsvetoslav
Telerik team
 answered on 25 Jun 2010
1 answer
122 views
I tried to set
string x = "<input/>";
Page.Title = x ;

when the window is opened, the page title displays an input box.

I also tried this
string x = "<input/>";
Page.Title = Server.HtmlEncode(x);

the title is still the same.

i want the title to display the string "<input/>" at the title of the rad window.
Georgi Tunev
Telerik team
 answered on 25 Jun 2010
1 answer
190 views
When the RadlistView page changed, it tend to call NeedDatasource and reload data, but when i say .datasouce = something; .databind(); when page change, it still go for needdatasource and try to reload data.
Is there anyway that the radlistview/grid not going round the trip and fetching data again? 

following code working but will fetch data again
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="AListingsGrid"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="AListingsGrid" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadListView ID="AListingsGrid" runat="server" AllowPaging="True" ItemPlaceholderID="PropertiesContianer" 
        PageSize="1"> 
        <LayoutTemplate> 
            <fieldset id="RadListView1"> 
                <telerik:RadDataPager ID="RadDataPager2" PageSize="1" runat="server" Style="border: none;" 
                    PagedControlID="AListingsGrid"> 
                    <Fields> 
                        <telerik:RadDataPagerButtonField FieldType="Numeric" /> 
                    </Fields> 
                </telerik:RadDataPager> 
                <asp:PlaceHolder ID="PropertiesContianer" runat="server" /> 
            </fieldset> 
        </LayoutTemplate> 
        <ItemTemplate> 
            <div> 
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> 
            </div> 
        </ItemTemplate> 
    </telerik:RadListView> 

  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 
        If Not Me.IsPostBack Then 
            
        End If 
    End Sub 
 
 
 
    Private Sub RadListView1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadListViewItemEventArgs) Handles AListingsGrid.ItemDataBound 
        If (TypeOf (e.Item) Is RadListViewDataItem) Then 
            Dim dataBoundItem = DirectCast(e.Item, RadListViewDataItem) 
            Dim astr = DirectCast(dataBoundItem.DataItem, String) 
            DirectCast(dataBoundItem.FindControl("Label1"), Label).Text = astr 
        End If 
    End Sub 
 
    Private Sub AListingsGrid_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadListViewNeedDataSourceEventArgs) Handles AListingsGrid.NeedDataSource 
        Dim alst As New List(Of String) 
        Dim i As Integer 
        For i = 0 To 10 
            alst.Add(String.Format("item {0}", i.ToString)) 
        Next 
        AListingsGrid.DataSource = alst 
    End Sub 

BaiH
Top achievements
Rank 1
 answered on 25 Jun 2010
2 answers
322 views
Hi,

Need to close the rad modal window via server side button postback. In the Button Click I have a Literal/Label in which I provide the javascript function which has Close Window logic. This works when there is no AJAX on the page but fails when I have AJAX. please advice.

Sid
Georgi Tunev
Telerik team
 answered on 25 Jun 2010
1 answer
69 views

 

 

 

 

Tsvetoslav
Telerik team
 answered on 25 Jun 2010
3 answers
160 views
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Script control 'RadCounty' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControlMaster Page
    

--> Web page

 

<%@ Page Title="" Language="VB" MasterPageFile="~/Common/YALMasterPage.master" AutoEventWireup="false" CodeFile="TestPage.aspx.vb" Inherits="AATEST_TestPage" %> 
<%@ Register Src="~/UserControls/YALgridControl.ascx" TagName="TEST" TagPrefix="PT" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderHeader" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content3" ContentPlaceHolderID="ConPHLeftTop" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content4" ContentPlaceHolderID="ConPHLeftBottom" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content5" ContentPlaceHolderID="ConPHRightTop" Runat="Server">  
    Grid control goes here
</asp:Content> 


The grid control uses a user control to do updates

Within the user control, I have 2 controls that need to be connected (like State and county) so trying to connect the two with a AJAX update using AJAX manager

 

<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadState">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadCounty" LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> 

When I select the combox box value I get the error

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Script control 'RadCounty' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControlMaster Page
    

Maria Ilieva
Telerik team
 answered on 25 Jun 2010
5 answers
143 views
I have the RAD Editor for SharePoint installed (MOSS 2007 SP2).  I am missing the "Create Thumbnail" button in my Image Manager.  I have it set to true in the configfile.xml.  What am I missing?
Stanimir
Telerik team
 answered on 25 Jun 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?