Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
130 views
Hi,
the following code is in my aspx page:
 <telerik:RadComboBox ID="RadComboBoxStatusGrp" runat="server" Width="125px"
             Height="150px" Font-Size="Small" CssClass="txtinput" AutoPostBack="false"
             EmptyMessage="Choose a Status" ShowToggleImage="true"
              OnClientDropDownOpened="OnClientDropDownOpenedHandler">

             
      <ItemTemplate>
       <div id="div1">
       <telerik:RadTreeView runat="server" ID="RadTreeView1" OnClientNodeClicking="nodeClicking">
        <Nodes>
          <telerik:RadTreeNode runat="server" Text="TR" Expanded="true" >
           <Nodes>
            <telerik:RadTreeNode runat="server" Text="Approved"  >
            </telerik:RadTreeNode>
             <telerik:RadTreeNode runat="server" Text="Entered"  >
             </telerik:RadTreeNode>
             <telerik:RadTreeNode runat="server" Text="All Trans" >
             </telerik:RadTreeNode>
            
            </Nodes>
            </telerik:RadTreeNode>
            </Nodes>  
            <Nodes>
             <telerik:RadTreeNode runat="server" Text="Processed"  Expanded="true"></telerik:RadTreeNode>
            </Nodes>
            <Nodes>
             <telerik:RadTreeNode runat="server" Text="All" Expanded="true"></telerik:RadTreeNode>
            </Nodes>  
       </telerik:RadTreeView>
       </div>
      </ItemTemplate>
      <Items>
        <telerik:RadComboBoxItem Text="" />
      </Items>
     </telerik:RadComboBox>
      <script type="text/javascript">
          var div1 = document.getElementById("div1");
          div1.onclick = StopPropagation;
     
   </script>

In C# on page_load event I am reading SP and get field call RunFlag.
If RunFlag == "I"
 disable "Processed" node.
How can I do that?

Thanks so much for your help
Kate
Telerik team
 answered on 20 Nov 2013
1 answer
54 views
Hey guys,
I have a master page with a RadScriptManager, RadAjaxManager, and RadLoadingPanel. This morning the site was running flawlessly, then suddenly and without changing anything it started throwing a javascript runtime error every time I try to load it. The error is getting thrown in Telerik.Web.UI.Ajax.Ajax.js in set_uniqueID. The problem is that Sys.WebForms is undefined. I've tried everything I can find on the web to fix it. I've cleared the Temporary ASP.NET folder, removed the <xhtmlConformance> tag from the web.config. I've even reverted back to the baseline code from the previous build. But nothing has helped. Any idea how this can happen out of nowhere like that?
Peter Filipov
Telerik team
 answered on 20 Nov 2013
4 answers
119 views
Using the FileUpload control and curious if I can restrict the filename to be a certain name?
Basically ###.pdf, where I will know the number of the file they should be uploading.  Also when the control pops up for the "Upload" any way of limiting it to only 1 "Select" box, No "Add"

            <telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="520px" Height="300px">
                    <Configuration ViewPaths="~/PDF/ECPay" UploadPaths="~/PDF/ECPay"
                        DeletePaths="~/PDF/ECPay" AllowFileExtensionRename="True"></Configuration>
            </telerik:RadFileExplorer>
 
Code Behind
    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        Dim iASI_Num As Integer = Request("ASI_Num")
 
        'set properties according to configuration panel
        FileExplorer1.Configuration.SearchPatterns = New String() {"*.pdf"}
        FileExplorer1.VisibleControls = GetVisibleControls()
        FileExplorer1.EnableOpenFile = True
        FileExplorer1.DisplayUpFolderItem = False
        FileExplorer1.AllowPaging = False
        FileExplorer1.EnableCreateNewFolder = False
        FileExplorer1.Configuration.AllowFileExtensionRename = False
 
        If (FileExplorer1.VisibleControls And Telerik.Web.UI.FileExplorer.FileExplorerControls.Grid) = 0 Then
            FileExplorer1.ExplorerMode = Telerik.Web.UI.FileExplorer.FileExplorerMode.Thumbnails
        End If
 
        If (FileExplorer1.VisibleControls And Telerik.Web.UI.FileExplorer.FileExplorerControls.ListView) = 0 Then
            FileExplorer1.ExplorerMode = Telerik.Web.UI.FileExplorer.FileExplorerMode.[Default]
        End If
 
        FileExplorer1.Configuration.UploadPaths = New String() {"~/PDF/ECPay"}
        FileExplorer1.Configuration.DeletePaths = New String() {"~/PDF/ECPay"}
    End Sub
 
    Protected Function GetVisibleControls() As Telerik.Web.UI.FileExplorer.FileExplorerControls
        Dim explorerControls As Telerik.Web.UI.FileExplorer.FileExplorerControls = 0
 
        explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.AddressBox
        explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.Grid
        explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.ListView
        explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.Toolbar
        explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.TreeView
        explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.ContextMenus
 
 
        Return explorerControls
    End Function
End Class
Vessy
Telerik team
 answered on 20 Nov 2013
3 answers
94 views
How to implement "EnableEmptyListItem" functionalityn in RadComboBox, just like in dropdown included with RadGrid?
Nencho
Telerik team
 answered on 20 Nov 2013
6 answers
484 views
Hi,

Is there any way to configure the control to only allow to select one single item? I.e. when selecting one item, deselecting the rest of them? 

If not, which would be the best way?

Thanks
Princy
Top achievements
Rank 2
 answered on 20 Nov 2013
3 answers
106 views

Hello Sir,

I have two issues in the drag and drop functionality between two treeviews.
The drag and drop is going very smooth as long as I want drag and drop small number of nodes between the two treeviews ( for examples 10 nodes , some hunderts nodes or even few thousands nodes ).

Issue 1 :
When I try to drag and drop for more than few thousands of nodes between the two treeviews, I got the error which say (Maximum request length exceed).

Issue 2:
When I drag and drop really huge number of nodes like ( 300000 nodes for example ) , usually the error is ( not enough memroy or out of memroy)

So please advise me what can I do in both cases because these cases are valid scenarios in my application.

I will be waiting for your reply.

Regards,
A.Abbas 

Boyan Dimitrov
Telerik team
 answered on 20 Nov 2013
1 answer
306 views
HI Telerik

I am getting an error from the web page when I try to play a mp4 media file in IE9 browser. The error is The video could not be loaded, either because the server or network failed or because the format is not supported.  On researching i found that .mp4 extension works fine in IE browser and I am using ASP development server which is also running well.

Any idea regarding this?
Ben
Shinu
Top achievements
Rank 2
 answered on 20 Nov 2013
1 answer
240 views
I am trying to display an ajax loading panel over an html div element. Below is the code I tried.

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="btnFetchcode">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="div1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Web20">
        </telerik:RadAjaxLoadingPanel>
        <div id="div1" style="width: 400px; height: 200px; border: 1px solid Blue;">
            <asp:Label ID="Label3" runat="server" Text="Grab Now"></asp:Label>
            <telerik:RadTextBox runat="server" ID="txtCode" ReadOnly="true" />
            <br/><br/>
        </div>
        <br />
        <telerik:RadButton ID="btnFetchcode" runat="server" Text="Get Code" OnClick="btnFetchcode_Click">
        </telerik:RadButton>

There is no full page post back but the loading panel is not displayed over the div. Can't I use ajax loading panel over html elements such as div?
Shinu
Top achievements
Rank 2
 answered on 20 Nov 2013
1 answer
272 views
Hello...

I have a Radgrid inside user control & I want to find it from aspx page server side. I have written the following code for it but shows me error $find()...is null....

Can anyone please help me asap?

Usercontrol.ascx

function RadGridRow() {
     return $find("<%=RGOrders.ClientID %>").get_masterTableView().get_dataItems();
}

Page.aspx

function abc() {
     var RgOrders = RadGridRow();
}

Please note that I am calling the function abc() from server-side (code - behind). From client side, this function is working fine

Page.aspx.cs

string strscript = "abc();";
ScriptManager.RegisterStartupScript(pnl, pnl.GetType(), "ShowMessage" + DateTime.Now.ToLongTimeString(), strScript, true);
Shinu
Top achievements
Rank 2
 answered on 20 Nov 2013
2 answers
127 views
In the last 3 months the image and document manager controls on the radeditor are not displaying correctly. We are using Q1 2013. I have tried various browsers and skins. 

Any advice would be much appreciated. 


 <telerik:RadEditor ID="edtContent" AutoResizeHeight="True" runat="server" Width="100%" Skin="Simple" Visible="False"  BackColor="White">
        <Tools>
        <telerik:EditorToolGroup >
            <telerik:EditorTool Name="Cut"  />
            <telerik:EditorTool Name="Copy" />
            <telerik:EditorTool Name="Paste" />
            <telerik:EditorTool Name="PasteFromWord" />
        </telerik:EditorToolGroup>
            <telerik:EditorToolGroup>
                <telerik:EditorTool Name="Bold" />
                <telerik:EditorTool Name="Italic" />
                <telerik:EditorTool Name="Underline" />
            </telerik:EditorToolGroup>
                        <telerik:EditorToolGroup>
                            <telerik:EditorDropDown Name="FontName">
                            </telerik:EditorDropDown>
                            <telerik:EditorDropDown Name="FontSize">
                            </telerik:EditorDropDown>
                            <telerik:EditorSplitButton Name="ForeColor">
                            </telerik:EditorSplitButton>
            </telerik:EditorToolGroup>
            <telerik:EditorToolGroup>
     
                <telerik:EditorTool Name="XhtmlValidator" />
     
            </telerik:EditorToolGroup>
            <telerik:EditorToolGroup>
                <telerik:EditorTool name="ImageManager" enabled="true"  />
            <telerik:EditorTool Name="DocumentManager" />
            </telerik:EditorToolGroup>
            
             
            
    </Tools> 
         <ImageManager ViewPaths="~/userimages" UploadPaths="~/userimages" DeletePaths="~/userimages" AllowFileExtensionRename="false"  SearchPatterns="*.jpg, *.jpeg, *.gif, *.png"    AllowMultipleSelection="false"  EnableAsyncUpload="false"  > 
             

         </ImageManager>     
        <DocumentManager ViewPaths="~/userdocuments" UploadPaths="~/userdocuments" DeletePaths="~/userdocuments" SearchPatterns="*.pdf, *.doc, *.docx, *.xls, *.xlsx" />                                                    

<TrackChangesSettings CanAcceptTrackChanges="True"></TrackChangesSettings>
    </telerik:RadEditor>

Danny
Top achievements
Rank 1
 answered on 19 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?