Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
306 views
Hi,

I have just bought a suite of telerik controls, so i am new in it.

I need 'File Explorer' to explore my 'Directories' and 'Files' on webserver.  I found 'Vista File Explorer' application in code library but it is for windows form.

I need explorer for web forms which open folders and files on my webserver pointing to specific directory. I require to select a file and put file name in textbox of my form.

Hope to hear your response quickly.

Aamir
Aamir
Top achievements
Rank 1
 answered on 13 Aug 2008
2 answers
111 views
I'm a novice here, and now I'm developing an application about IVR,I want to know what is the difference between the RandControls and other normal .NET controls.

And this is one of my applications,maybe you can give me some advices :
IVR used in Google Calendar Event
I used Ajax in that application,and I want to add some smart control like datagrid.I find there is a new datagrid in the RandControls, can I add it in the application directly?

James
Top achievements
Rank 1
 answered on 13 Aug 2008
1 answer
90 views
I have a small problem
I am using 2 RadGrids within a RadMultiPage, and each grid has a NestedViewTemplate.

The first grid is working as expected, and the second grid is a mirror image of the first with only a different datasource and name.

The NestedViewTemplate in the second one is throwing an error though.

I have noticed that if I click the arrow on the first Grid, there is no "link" at the bottom of the page, and the details show up without a postback.

If I click the arrow on the SECOND Grid, there IS a "link" (pagename.aspx), and there is a postback... below is the error.

[quote]
Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.[/quote]

Any help would be appreciated... Hopefully this isnt the ASS Theory again (Always Something Simple/Stupid)
Chase Florell
Top achievements
Rank 1
 answered on 12 Aug 2008
3 answers
233 views
I must be doing something wrong, but I am using VS2005 and I have a master page with a RadScriptManager control on it because I have a panelbar on the master page.  Then I have a content page that I have dropped a RadAjaxManager on. (v2008.2.723.20). After I configure the AjaxManager, and pick my controls, i just does not work. I picked a grid to grid, and when I sort the grid columns, it still does a full postback. No error, just does not work?!? What am I missing? I've been using the Rad.ASP.net controls forever, so I'm familiar with it, but I'm trying to convert to the newer AJAX versions.
Thanks,
~bg
Todd Anglin
Top achievements
Rank 2
 answered on 12 Aug 2008
1 answer
170 views
I've spent many days in the past week trying to find a good way to make custom docks and store the config in a database.  Most of that time was on this forum, going through other people's posts who were fighting the same issues.  I also downloaded some of the other samples, and most were very complex, and I never got even one of the examples to work.  So, I started from scratch, using the Portal Demo as the example.  In order to save others the rough week I had, I'm posting my solution here.

Download the dynamically created controls portal example:  http://www.telerik.com/demos/aspnet/prometheus/Dock/Examples/MyPortal/DefaultVB.aspx

All I did was add some script to the CurrentDockStates property to save a value on a SET command and retrieve a value on a GET command if no value was already present.  It works like a champ.  Hope this helps.  Here's my new CurrentDockStates property.

Enjoy,

- Brad

        Private Property CurrentDockStates() As List(Of DockState)  
            Get 
                Dim _currentDockStates As List(Of DockState) = DirectCast(Session("UserPreferences.PortalSession"), List(Of DockState))  
                If [Object].Equals(_currentDockStates, NothingThen 
                    'Make an empty configuration list  
                    _currentDockStates = New List(Of DockState)()  
                    'Convert our stored config to the active config  
                    ''I HAVE A FUNCTION THAT GETS THE USER'S DOCKSTATE STRING FROM A  
                    ''  TABLE IN THE DATABASE CALL GetUserPreference  
                    ''  INSERT WHATEVER DATABASE ROUTINE YOU WANT IN PLACE OF IT  
                    Dim strLoadedConfig As String = GetUserPreference("PortalConfiguration")  
                    'If we found nothing, leave the current state empty  
                    If strLoadedConfig <> "" Then 
                        Try 
                            'Use the stored config  
                            'Convert the stored config to an array, splitting at the *s  
                            Dim aConfig As Array = Split(strLoadedConfig, "*")  
                            Dim strConfigItem As String 
                            Dim dsWorking As DockState  
                            'Parse through the array, turning the dockstate strings into dockstates  
                            'Then add the dockstates to the dockstate list  
                            For Each strConfigItem In aConfig  
                                'Start a fresh dockstate  
                                dsWorking = New DockState  
                                'Parse the string back into dock settings  
                                dsWorking = DockState.Deserialize(strConfigItem)  
                                'Add the settings back into the current session  
                                _currentDockStates.Add(dsWorking)  
                            Next 
                        Catch ex As Exception  
                            'Something was wrong with the data  
                            'Default back to blank so the page won't crash  
                        End Try 
                        'Set the new value into the session variable  
                        Session("UserPreferences.PortalSession") = _currentDockStates  
                    End If 
                End If 
                Return _currentDockStates  
            End Get 
            Set(ByVal value As List(Of DockState))  
                Session("UserPreferences.PortalSession") = value  
                'Session being updated; Update the database too  
                'Convert list of dockStates to a delimited string  
                'We'll use * since commas are used in the dockStates  
                Dim sbListConverter As New System.Text.StringBuilder  
                For Each dockState As DockState In value  
                    sbListConverter.AppendFormat("{0}*", dockState.ToString)  
                Next 
                Dim strDockConfig As String = sbListConverter.ToString.TrimEnd(Convert.ToChar("*"))  
                ''I HAVE A FUNCTION THAT SAVES THE USER'S DOCKSTATE STRING TO A  
                ''  TABLE IN THE DATABASE CALLED UpdateUserPreference  
                ''  INSERT WHATEVER DATABASE ROUTINE YOU WANT IN PLACE OF IT  
                ''  SAVE IN A LARGE ENOUGH TEXT FIELD [varChar(MAX)?] TO HOLD  
                ''  ALL THE STATE INFO  
                'Save string to database  
                UpdateUserPreference("PortalConfiguration", strDockConfig)  
            End Set 
        End Property 
Zyguy
Top achievements
Rank 1
 answered on 12 Aug 2008
8 answers
85 views
For some reason, ImageButton controls won't render when my RadWindows are openened.  I have to move the window with the mouse for the ImageButton to appear.  Plain Image controls render just fine.  Any thoughts?
Michelle
Top achievements
Rank 1
 answered on 12 Aug 2008
15 answers
305 views
Hi, Telerik Team:

I have a question:
   
           How to get the filtering feature work, while auto-operations(update, select, delete) are also working?

Currently, I have the auto-operations(update,select..) working, But I don't have the filtering work in my Ajax Rad Grid.

Currently I bind the Grid as:
 
      RadGrid1.DataSourceID = SqlDataSource1.ID;
 
and in my Rad Grid, I set:
         AllowFilteringByColumn="true"
But the filters did not work.

Please help:
   How to get the filtering working, while auto-opetation(update..) are working as well.

Stanley Huang
Lenny_shp
Top achievements
Rank 2
 answered on 12 Aug 2008
2 answers
111 views
Is there a way to cancel the double-clicking of a timeslot from displaying the inline edit form?

I tried using the OnClientTimeSlotClick, but it does not have a cancel event, plus I think I would want double-click. Also I looked at OnClientFormCreated, but that does not fire until the edit form is created.

Thanks.
Paige Cook
Top achievements
Rank 2
 answered on 12 Aug 2008
2 answers
134 views
heya.
4 ctrls
Status (RadComboBox) ("Regular","Temporary")
LblEnddate (Label)
EndDate (RadDatepicker)
rfEnddate (required Field  bound to Enddate)

If all visible set to true, field is required, however when visible = false, field is not required...(logical)
 Protected Sub Status_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)  
        If InStr(e.Value, "Temporary") Then  
            frm1.FindControl("Enddate").Visible = True 
            frm1.FindControl("rfEnddate").Visible = True 
            frm1.FindControl("lblEndDate").Visible = True 
        Else  
            frm1.FindControl("Enddate").Visible = False 
            frm1.FindControl("rfEnddate").Visible = False 
            frm1.FindControl("lblEndDate").Visible = False 
 
                  End If 

the ajax block
  <telerik:AjaxSetting AjaxControlID="Status">  
                       <UpdatedControls> 
                           <telerik:AjaxUpdatedControl ControlID="lblEndDate" /> 
                           <telerik:AjaxUpdatedControl ControlID="RFEndDate" /> 
                           <telerik:AjaxUpdatedControl ControlID="EndDate" /> 
                       </UpdatedControls> 
                   </telerik:AjaxSetting> 

the visible switch is working fine... however the requiredfield event is not raising. Thoughts ?

Thanks
mac
mac
Top achievements
Rank 1
 answered on 12 Aug 2008
1 answer
139 views
Whenever i use CustomAttributeNames I am unable to update.  I receive this message:

Sys.WebForms.PageRequestManagerServerErrorException: Error serializing value 'Telerik.Web.UI.Appointment' of type 'Telerik.Web.UI.Appointment.'

If i remove the custom attribute names everything works fine.  Here is a simple test i put together that causes the same issue. My real project actually uses the custom attributes to personalize each event with an image and backgroundcolor.

Any help would be greatly appreciated.

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
            <telerik:RadScheduler ID="RadScheduler1" runat="server"
            DataEndField="enddatetime" DataKeyField="ID"  DataSourceID="SqlDataSource1"
            DataStartField="startdatetime" DataSubjectField="subject" Height="593px" Width="1220px"
            WeekView-HeaderDateFormat="MMMM dd" WeekColumnHeaderDateFormat="ddd, dd"
            SelectedDate="2008-07-03" DayEndTime="19:00:00" CustomAttributeNames="ID"
            style="float:left" ShowAllDayRow="False"
            SelectedView="WeekView" StartInsertingInAdvancedForm="True"
            FirstDayOfWeek="Monday" LastDayOfWeek="Friday" WeekHeaderDateFormat="MMMM dd">
            </telerik:RadScheduler>
        </telerik:RadAjaxPanel>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:TesterSite %>"
            DeleteCommand="DELETE FROM [tblSimple] WHERE [ID] = @ID"
            InsertCommand="INSERT INTO [tblSimple] ([startdatetime], [enddatetime], [subject]) VALUES (@startdatetime, @enddatetime, @subject)"
            SelectCommand="SELECT * FROM [tblSimple]"
            UpdateCommand="UPDATE [tblSimple] SET [startdatetime] = @startdatetime, [enddatetime] = @enddatetime, [subject] = @subject WHERE [ID] = @ID">
            <DeleteParameters>
                <asp:Parameter Name="ID" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="startdatetime" Type="DateTime" />
                <asp:Parameter Name="enddatetime" Type="DateTime" />
                <asp:Parameter Name="subject" Type="String" />
                <asp:Parameter Name="ID" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="startdatetime" Type="DateTime" />
                <asp:Parameter Name="enddatetime" Type="DateTime" />
                <asp:Parameter Name="subject" Type="String" />
            </InsertParameters>
        </asp:SqlDataSource>

Tayonee
Top achievements
Rank 1
 answered on 12 Aug 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?