Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
136 views
I'm not sure if this is a bug or intentional, but the Open option in the context menu is available even when you don't have a file selected. For example, if I right click in the open area in the file grid on the right, I can choose Open, which then attempts to open my path (with no file) using my file handler. I've written the following code to stop this from happening.

if (item.get_url().lastIndexOf("/") == item.get_url().length - 1) {
                alert('You must select a file to open.');
            } else {
                var requestImage = "FileHandler.ashx?path=" + item.get_url();
                document.location = requestImage;
            }
Dobromir
Telerik team
 answered on 01 Aug 2011
1 answer
139 views

Grid not rebinding on Closing Rad Window

I have problem with radgrid refreshing, when i close the radwindow .I have a radgrid which should refresh automatically when i close the radwindow , In my application i have a radwindow through which i will insert the values to database , on successfull insertion , i am calling the refresh grid function , but the grid refresh functionality is not working , can i know where exactly i am wrong ,so that the functionality works fine. 

my Gridpage aspx code looks like this
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest" EnableAJAX="true">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True"
            GridLines="None" ShowGroupPanel="True" Skin="Black" AutoGenerateColumns="False" Width="100%" AllowAutomaticInserts="false" AllowAutomaticUpdates="false">
            <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                <ClientEvents OnGridCreated="OnGridCreated" />
            </ClientSettings>

.......................
..................
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true"
            Skin="Black">
            <Windows>
                <telerik:RadWindow ID="UserListDialog" runat="server" Height="620px" Width="620px"
                    Left="150px" Top="50px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true"
                    OnClientClose="closeRadWindow" />
            </Windows>
        </telerik:RadWindowManager>
protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
        {
            if (e.Argument == "Rebind")
            {
                RadGrid1.MasterTableView.SortExpressions.Clear();
                RadGrid1.MasterTableView.GroupByExpressions.Clear();
                Presenter List = new Presenter(this);
                IList<FileAdmin> GridDta = List.PopulateGrid();
                RadGrid1.DataSource = GridDta;
                RadGrid1.Rebind();
            }
javascript looks like this
function closeRadWindow()
                 {
                     $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
                  
                }
       function refreshGrid()
                 {
                   $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
                 
                 }
RadWindow aspx code Looks like this
javascript
 function CloseAndRebind() {
                        GetRadWindow().BrowserWindow.refreshGrid();
                        //GetRadWindow().close();
                    }
function GetRadWindow()
                     {
                        var oWindow = null;
                        if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
                        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)
                        return oWindow;
                    }
Radwindow aspx.cs file looks like this
protected void buttonclick(object sender, EventArgs e)
{
if (result == true)
 {
ClientScript.RegisterStartupScript(Page.GetType(), "mykey1", "CloseAndRebind();", true);
 }
}
Maria Ilieva
Telerik team
 answered on 01 Aug 2011
1 answer
271 views
Hello,

I'm using the following autocomplete radcombobxo:

<telerik:RadComboBox
                                 ID="ParentRadComboBox" runat="server"
                                 Width="590px" Height="140px" AllowCustomText="true" MarkFirstMatch="true"
                                 EmptyMessage="Type a Title" DataValueField="SerID"
                                 DataSourceID="GuideSqlDataSource" DataTextField="Title" >
                             <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                        </telerik:RadComboBox>

The problem is the user can type a text which is not even exist within the radcombobox item and click Submit (A Button).
I need to use the property AllowCustomText .
How can I validate that the typed text is valid?

Please, I need your help,
It is appreciated to sendme the modified code.

Regards,
Bader
Shinu
Top achievements
Rank 2
 answered on 01 Aug 2011
1 answer
82 views
Hi Telerik,

I am having problem after i load a user control to radsplitter. i am not able to fired the event that i created in the ascx. is there anyway i can invoke the event ?

In aspx
Imports Telerik.Web.UI
 
Partial Class Admin
    Inherits System.Web.UI.Page
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            RadPane11.Controls.Add(LoadControl("~/Admin/Insert Landmark.ascx"))
        End If
    End Sub
 
    Protected Sub RadPanelBar1_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles RadPanelBar1.ItemClick
        Dim ItemClicked As RadPanelItem = e.Item
        RadPane11.Controls.Add(LoadControl("~/Admin/" & ItemClicked.Text & ".ascx"))
        RadPane()
    End Sub
End Class

in ascx.
Imports Telerik.Web.UI
 
Partial Class Admin_InsertLandmark
    Inherits System.Web.UI.UserControl
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
    End Sub
 
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        If RadUpload1.UploadedFiles.Count > 0 Then
            For Each f As UploadedFile In RadUpload1.UploadedFiles
                Dim landmarkname As String = TextBox1.Text
                Dim landmarkaddress As String = TextBox2.Text
                Dim landmarkphotourl As String = f.FileName
                f.SaveAs("D:\LandMarkImage\" + f.FileName)
            Next
        End If
    End Sub
End Class

P.S. i load the ascx dynamically.

Regards,
KEA
Dobromir
Telerik team
 answered on 01 Aug 2011
1 answer
65 views
Hi,

Number of times we have previously email telerik regarding this problem/issue: 2 (Two)

We bought telerik components just to use the editor in our project. We were shown how the editor works as per our requirement.
Now we have implemented it in our project and spent numerous hours making this update but due to the problems (mentioned below) we are unable to launch our project with telerik editor.

I have sent an email before regarding the below-mentioned problems but have not been receiving any response from telerik.
We will really appreciate it if you can help us solve this problem so we can launch our project on a timely basis.
Thanks!

Problem:
radeditor does not work properly in Opera and Safari.
I used editor in this way,
split editor text area and toolbar in different frames
In safari, editor never load and toolbar as well while,
In Opera, two toolbar load for one text area so toolbar conflict with each other and some option do not work properly. In toolbar there is a HTML button when click this button a radwindow open containing text area which get the Html of focused editor, sometime radwindow do not open and sometime it contain the html of any editor which is not focused
Download the project from following link, test and solve this issue



Rumen
Telerik team
 answered on 01 Aug 2011
2 answers
207 views
hi,

how to use RadChart in SP 2010? I'm trying to add the chart to the sharepoint site, but it always show an "x" red image.

Rgs,
TN
Savan
Top achievements
Rank 1
 answered on 01 Aug 2011
8 answers
246 views
How can I make Telerik.Web.UI.RadChart SafeControl within MOSS 2007?

When I add 

<

SafeControl Assembly="Telerik.Charting" Namespace="Telerik.Charting" TypeName="*" Safe="True" />

I get the following error, The control type 'Telerik.Web.UI.RadChart' is not allowed on this page. The type is not registered as safe.

What else do I need to add in the web.config file within MOSS 2007.

In the previous releases I got the page to work with the following lines.

<

SafeControl Assembly="RadChart.Net2" Namespace="Telerik.Charting" TypeName="*" Safe="True" />

<

SafeControl Assembly="RadChart.Net2" Namespace="Telerik.WebControls" TypeName="*" Safe="True" />

Thanks

Savan
Top achievements
Rank 1
 answered on 01 Aug 2011
7 answers
253 views

Hi Telerik,

I have been used Telerik RadChart Q1 2010 on SharePoint 2007 successfully. But, now I use Telerik RadChart Q1 2010 on SharePoint 2010, I get the following error message

The ... Web Part appears to be causing a problem. Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.

I modified my web.config as what the error say, but it doesn't help. Here is my web.config:

...

...

...

<httpHandlers> 
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2010.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
</httpHandlers>

...

...

...

<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
 </httpModules>

...

...

...

<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">

I render the RadChart directly on the Page, It means Page.Controls.Add(radChart). I know I can render RadChart's Image, but it doesn't meet my requirement

So, anybody please help me to solve this problem

Thanks

Cam Mach

Bamboo Solutions Corporation

Savan
Top achievements
Rank 1
 answered on 01 Aug 2011
1 answer
146 views
Hi Telerik,
I want to implement search functionality in RadFileExplorer. The scenario is described below...
I want to bind a grid with all the files contained in a folder and its subfolders in treeview.
Please help me in this regard as its urgent.
Dobromir
Telerik team
 answered on 01 Aug 2011
1 answer
103 views
I have RadListBox control in which i have marked checkbox=true,

When i click on checkbox, that item is not selected in listbox.

how to i control listbox's selected item on the basis on checkbox click ?
Princy
Top achievements
Rank 2
 answered on 01 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?