Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
60 views
Hi Telerik Team,

 I want to explicitly give file path to 'telerik:RadUpload' in javascript. i.e without browsing.
For example i have two RadUpload controls,so once if i get the path in the first Raduploader i have to pass the same path to the second Raduploader. 

Thanks in advance.
Bindhu
Top achievements
Rank 1
 asked on 20 Jun 2009
2 answers
292 views
Hi All

I have radgrid with employee informations

There some fields like (first name, middle name, last name, dob, address, doj, designation,username password and status(active/inactive))

The active/inactive is a check box.

<

telerik:RadGrid ID="RadGrid1" runat="server" Skin="WebBlue"  GridLines="None" AllowPaging="True" AllowSorting="True" Width="97%" AutoGenerateColumns="False" ShowStatusBar="true" OnPreRender="RadGrid1_PreRender" OnNeedDataSource="RadGrid1_NeedDataSource"  OnUpdateCommand="RadGrid1_UpdateCommand" OnInsertCommand="RadGrid1_InsertCommand" OnDeleteCommand="RadGrid1_DeleteCommand">

 

 

 

My problem is.

When a employee logins, he should not be able to change his status(active/inactive) .

So is there any way to change the enable option to false for the check box(active/inactive) in edit mode only for the logged in user.

Thank u in advance

-Anto

Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 answered on 20 Jun 2009
2 answers
91 views

Hi All

I have a radgrid.

With the option of automatic Insert/Update/Delete.

It works fine.

There are five fields. The first one is modificationNum

 

I need is:

 

This field should not be able to modify while edit is clicked, But it must be able to enter data while insert.

 

Is there any option for this.

 

-Anto

Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 answered on 20 Jun 2009
2 answers
247 views
Hi,

I'm currently using 5 RadDocks placed in a RadDockZone. They are declared in the front code and I use code-behind functions to save and load their state when needed.

Right now, if I move dock A atop of dock B, dock A stays behind dock B (assuming dock B started with a higher zIndex). What I would like, is having a dock being moved over another dock to get in front of it. Actually, even just clicking on a dock (more exactly on its title bar) should "bring it to front".

Additionally, this order needs to be saved/loaded just like the dock state.

Is there an (easy) way to accomplish this (client-side preferred of course)?

You'll find below code relevant to the save/load processes as well as the docks declaration.

Thanks in advance,
Nicolas



    Protected Sub SaveDockLayout() 
        Dim tConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("Infinis_Connection").ConnectionString) 
 
        Dim tDockState As String 
        Dim tSerializer As New Script.Serialization.JavaScriptSerializer() 
        Dim tConverters As New List(Of Script.Serialization.JavaScriptConverter)() 
        tConverters.Add(New UnitConverter()) 
        tSerializer.RegisterConverters(tConverters) 
 
        Dim tStateList As List(Of DockState) = docks_DockLayout.GetRegisteredDocksState() 
        Dim tSerializedList As New StringBuilder() 
        Dim i As Integer = 0 
 
        While i < tStateList.Count 
            tSerializedList.Append(tSerializer.Serialize(tStateList(i))) 
            tSerializedList.Append("|"
            System.Math.Max(System.Threading.Interlocked.Increment(i), i - 1) 
        End While 
 
        tDockState = tSerializedList.ToString() 
        If tDockState.Trim() <> [String].Empty Then 
            Try 
                tConnection.Open() 
                Dim tCommand As New SqlCommand([String].Format("UPDATE SystemUser set DocksPosition='{0}' WHERE RecId = {1}", tDockState, Session("CurrentSession_UserId")), tConnection) 
                tCommand.ExecuteNonQuery() 
                tConnection.Close() 
            Catch 
            End Try 
        End If 
    End Sub 

    Protected Sub LoadDockLayout() 
        Dim tConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("Infinis_Connection").ConnectionString) 
 
        Dim tDock As RadDock = Nothing 
        Dim tSerializer As New Script.Serialization.JavaScriptSerializer() 
        Dim tConverters As New List(Of Script.Serialization.JavaScriptConverter)() 
        tConverters.Add(New UnitConverter()) 
        tSerializer.RegisterConverters(tConverters) 
 
        'Get saved state string from the database - set it to dockState variable for example  
        Dim tDockState As String = "" 
        Try 
 
            tConnection.Open() 
            Dim tCommand As New SqlCommand("SELECT DocksPosition FROM SystemUser WHERE RecId = @RecId", tConnection) 
            tCommand.Parameters.AddWithValue("RecId", Session("CurrentSession_UserId")) 
            tDockState = tCommand.ExecuteScalar().ToString() 
            tConnection.Close() 
        Catch 
        End Try 
 
        Dim tCurrentDockStates As String() = tDockState.Split("|"c) 
        For Each tStringState As String In tCurrentDockStates 
            If tStringState.Trim() <> String.Empty Then 
                Dim tState As DockState = tSerializer.Deserialize(Of DockState)(tStringState) 
                tDock = DirectCast(docks_DockLayout.FindControl(tState.UniqueName), RadDock) 
                tDock.ApplyState(tState) 
            End If 
        Next 
    End Sub 

        <telerik:RadDockLayout runat="server" ID="docks_DockLayout" EnableViewState="false" StoreLayoutInViewState="false"
                 
            <telerik:RadDockZone runat="server" ID="docks_Dockzone" Orientation="Vertical" MinWidth="300px" MinHeight="500px" Style="position:absolute; top:30px; left:0px;"
             
                <telerik:RadDock ID="dock_Product" runat="server" Width="300px" Height="200px" Top="200px" ExpandedHeight="200" 
                    Left="200px" Title="Products" CssClass="style_DockPanels" Skin="Black" 
                     Resizable="true" DefaultCommands="All" Closed="false" Collapsed="true" OnClientCommand="DockProduct_ClientCommand" > 
                    <ContentTemplate> 
                        <telerik:RadTreeView ID="tree_Product" Height="100%" Width="100%" runat="server" 
                            OnNodeExpand="tree_NodeExpand"  
                            ShowLineImages="true"  
                            EnableDragAndDrop="true" 
                            EnableDragAndDropBetweenNodes="false" 
                            Skin="Black"  
                            SingleExpandPath="true" 
                            LoadingStatusPosition="AfterNodeText"  
                            OnClientNodeDropping="Tree_NodeDropping" OnClientNodeDragStart="Tree_NodeDragStart" /> 
                    </ContentTemplate> 
                </telerik:RadDock> 
 
                [there's 4 others just like that] 
Nicolas
Top achievements
Rank 1
 answered on 20 Jun 2009
3 answers
632 views

In our system, the user can choose a minute input interval.  So, if a user chooses every 15 minutes, they would only be allowed to enter 00, 15, 30, or 45 in the minute’s field.  Using the RadTimePicker, what is the easiest way to achieve this behavior?

 

Also, how do I change the RadTimePicker from am/pm to 24 hour time format programmatically?

Daniel
Telerik team
 answered on 19 Jun 2009
9 answers
441 views

I have a GridTemplateColumn for a radDatePicker,a GridHTMLEditorColumn, and a GridButtonColumn in my grid (see code below).  I need to make these columns show up in edit mode but invisible when doing insert. What kind of object I should cast them to in the _ItemCommand event so that I can set the readonly property?

<telerik:GridTemplateColumn HeaderText="Warrant Date" UniqueName="WarrantDate" 
    Visible="False" DataType="System.DateTime">  
    <EditItemTemplate> 
        <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Skin="Office2007" allowEmpty="true" 
            Culture="English (United States)" DbSelectedDate='<%# Eval("WarrantDate") %>' > 
            <DateInput ID="DateInput1" LabelCssClass="radLabelCss_Office2007" Skin="Office2007" 
                runat="server">  
            </DateInput> 
            <Calendar ID="Calendar1" Skin="Office2007" UseColumnHeadersAsSelectors="False" runat="server" 
                UseRowHeadersAsSelectors="False" ViewSelectorText="x" ShowRowHeaders="false">  
            </Calendar> 
            <DatePopupButton /> 
        </telerik:RadDatePicker> 
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 

<
telerik:GridButtonColumn ButtonType="PushButton" CommandName="ReOpenWarrant" ShowInEditForm="True" 
    Text="Re-Open Warrant" UniqueName="ReOpenWarrant" Visible="False" HeaderText="">  
    <ItemStyle ForeColor="White" /> 
</telerik:GridButtonColumn> 
<telerik:GridHTMLEditorColumn UniqueName="Charge" HeaderText="Charge" DataField="Charge">  
</telerik:GridHTMLEditorColumn>   

Thank you!
Ying
Ying
Top achievements
Rank 1
 answered on 19 Jun 2009
2 answers
105 views
Hi,

When i press "Refresh" button on the grid, the grid is not refreshing.  

Whenever a textboxes leave a blank value or some negative value during insert/update mode, i want to display a message to the user that this is not allowed. The records will not be inserted/updated when leaves blank  or entered negative values.

Thanks.

Regards
Arshad
Syed
Top achievements
Rank 1
 answered on 19 Jun 2009
3 answers
152 views
I'm trying to get the RadEditor Q2 to work in the ASP.net Dynamic Data field template. I've got everything working great except when I try to access a dialog module (such as image). Then I get the following error.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /[mySiteName]/DynamicData/FieldTemplates/Telerik.Web.UI.DialogHandler.aspx
______________________________________________________

It seems to be in the web.config file correctly and it works fine when I use the RadEditor directly on a page without putting it in a Dynamic Data field template. When it's in a field template it seems to be looking for the dialog handler in the wrong place. Does anyone have a working Dynamic Data field temple using the RadEditor with Dialogs?

Thanks,
Brett
Aaron Lewis
Top achievements
Rank 2
 answered on 19 Jun 2009
4 answers
265 views
Hi.

I have been struggling with RadEditor for quite a while now, trying to get the Dialogs to work within RadEditor. When I open the Insert Image dialog, I receive the "Web.config registration missing!" error (screenshot): http://tinypic.com/view.php?pic=2hpheed&s=5

I did what the error message told me to do - I read the documentation, and found that I was missing the following HttpHandler:
<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false" />
http://www.telerik.com/help/aspnet-ajax/introduction2.html

I added the handler, but I am still receiving the same error, and the dialog layer gives me a 404 (page not found).

My Web.Config file is available here: http://pastebin.com/mc6bd2b9

Could someone give me a hint on this one ?
Aaron Lewis
Top achievements
Rank 2
 answered on 19 Jun 2009
4 answers
131 views
We're using a RadTabStrip and iframes.

Unfortunately, after selecting a date in a RadDatePicker (inside an iframe), the whole tabstrip just disappears.

I guess I'm not the only one experiencing this issue. I fount this link earlier but got no solution -> http://www.telerik.com/community/forums/aspnet/tabstrip/radtabstrip-disappears.aspx

Thank you very much.
Condorito
Top achievements
Rank 1
 answered on 19 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?