Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
69 views
I am using javascript to trigger the radmenu item. But when I enter value in textbox and press "Enter", the page is postback without trigger the radmenu item. my code as below:

Javascript:
function CkKeyPress(e) {
      var evt = (e) ? e : window.event;
      var key = (evt.keyCode) ? evt.keyCode : evt.which;
      if (key == 13) {
           var dealer = document.getElementById('<%=textbox1.ClientID%>').value;
                        var menu = $find("<%= radMenu1.ClientID%>");
                        var templateButton = menu.findItemByText("Next");
                        templateButton.click();
            }
}

Asp.net
<telerik:RadMenu ID="radMenu1" runat="server" Style="top: 0px; left: 0px">
     <Items>
            <telerik:RadMenuItem runat="server" Text="Next" Value="Next">
             </telerik:RadMenuItem>
      </Items>
</telerik:RadMenu>

<telerik:RadNumericTextBox ID="txtAmount" runat="server" Culture="en-US" DbValueFactor="1" LabelWidth="64px" Width="160px" AutoCompleteType="Disabled" onkeypress="CkKeyPress(event)">
</telerik:RadNumericTextBox>

Vb.net
Private Sub radMenu1_ItemClick(sender As Object, e As RadMenuEventArgs) Handles radMenu1.ItemClick
       Response.Redirect("sample.aspx")
End Sub

I am using vs 2012 and telerik 2013
Princy
Top achievements
Rank 2
 answered on 27 Dec 2013
1 answer
65 views
RadEditor toolbar mode "ShowOnFocus" is not working in IE 11 (Version 11.0.9600.16476)  and toolbar is not displayed at all, unless toolbar mode is "default".

This problem also exists in your own demo site at the following link:

http://demos.telerik.com/aspnet-ajax/editor/examples/toolbarmode/defaultcs.aspx

Please visit this link using IE 11 and you will notice that toolbar is not accessible at all.

This is a blocking issue for us. Any quick response is appreciated.

Thanks.
Ianko
Telerik team
 answered on 27 Dec 2013
5 answers
146 views
Hi,

Is it possible to insert a selected folder name into the RadEditor using DocumentManager. I can insert the documents fine but I also want to insert the selected folder in to the editor as well. I have customised the DocumentManager.ascx control to enable the folder selection but I could not find the way to enable the Insert button in that case. Insert button gets disabled when folder is selected. I have attached the screenshot of the document manager to demonstrate the idea. The reason I want the folder selection is that I am showing a database driven site map in the document manager using content providers, where each folder is actually acting as a site page and documents are files attached to that page.
Ianko
Telerik team
 answered on 27 Dec 2013
6 answers
197 views
Hi,
 how can i get the row index of selected row.
Shinu
Top achievements
Rank 2
 answered on 27 Dec 2013
6 answers
186 views
Hi support team,

Our customer recently found an issue that the Telerik splitter's radPane don't work well with Openlayers which is a famous map engine. Here is a link to show the issue http://www.screencast.com/t/bQUC5MQg4V2u

Like the video shows, the issue is the map didn't fill the whole div, but if when I pan the map, then it full. If I remove the map div from splitter, the map can also fill the whole div. What I am guessing is when the map is initialized, it doesn't know what's the exact size of the div of the map as the Splitter generates the div dynamic. I also tested the latest version of Openlayer, but encountered the same issue.

In order to make the issue smallest, I created a sample to recreate the issue and type some comments.(seems your forums don't support to attach .zip, please download it from http://www.screencast.com/t/gdh0MWOF )

Thanks in advanced.
Troy
Ianko
Telerik team
 answered on 27 Dec 2013
1 answer
67 views
I have a user control .asx with radgrid inside updatePanel . I am trying to display error(s) during insert Command and keep grid in edit mode. But its not working... code below...

 

 

 

 

<asp:UpdatePanel...
<telerik:RadGrid ID="rgGroups" 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
</telerik:RadWindowManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnUpdate">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
rgGroups.MasterTableView.IsItemInserted = False
             RadAjaxManager1.ResponseScripts.Add("radalert('<b>Group Already Exists!</b>', 200, 150);")

 

 

 

Princy
Top achievements
Rank 2
 answered on 27 Dec 2013
3 answers
241 views

hi

i want to display live data in RadHtmlChart for every second with time axis(programmatically).can u Pls send me the example  like below image.at present we are using RadChart to display charts but it is showing error like (Error loading RadChartImage?).thats why we want to use Radhtmlchart for better performance.


i am updating htmlchart for every second  do i need to add series every time.

Thank you.......
Stanimir
Telerik team
 answered on 27 Dec 2013
1 answer
209 views
Hello Friends 

I want to set height of Grid HeaderStyle  and ItemStyle(row)

.aspx code

/* CSS */
 <style type="text/css">
        div.RadToolBar .rtbUL
        {
            width: 100%;
            height: 20px;
        }

        div.RadToolBar_Default .rtbTemplate
        {
            margin-left: 450px;
            margin-top: 0px;
        }

        div.RadFileExplorer .RadGrid .rgRow TD
        {
            height: 10px;
            margin-bottom: 0px;
            margin-top: 0px;
        }

        .RadGrid_Web20 .rgRow TD
        {
            font-size: 10px;  /*  You can set size of font  */
            height: 5px;
        }

        .RadGrid_Web20 .rgRow TR
        {
            height: 8px;
        }

        .RadGrid_Web20 .rgRow
        {
            height: 8px;
        }

        .RadGrid_Web20 .rgHeader
        {
            height: 12px;
        }
    </style>

/* Telerik control */

  <telerik:RadFileExplorer runat="server" ID="FileExpDocument" TreePaneWidth="0px" Height="180px" Width="98%"
                                                                OnExplorerPopulated="FileExpDocument_ExplorerPopulated" EnableCreateNewFolder="true" EnableOpenFile="true" DisplayUpFolderItem="true"
                                                                EnableCopy="true"
                                                                ViewStateMode="Enabled" OnClientLoad="ClientLoad">
                                                                <Configuration ViewPaths="~/TempImage" UploadPaths="~/TempImage"
                                                                    DeletePaths="~/TempImage" EnableAsyncUpload="true" MaxUploadFileSize="1024000" SearchPatterns="*.*"></Configuration>
                                                                <KeyboardShortcuts NewFolder="CTRL + 5" Open="CTRL + 3" Refresh="CTRL + 4" UploadFile="CTRL + U" Back="CTRL + 1" Forward="CTRL + 2" />
                                                            </telerik:RadFileExplorer>


.CS code

//Set Grid properties

 FileExpDocument.Grid.Skin = "Web20";
        FileExpDocument.ListView.Skin = "Web20";

        //FileExpDocument.
        //FileExpDocument.Grid.CssClass="

        //GridHeaderItem header = FileExpDocument.Grid.he.FindByUniqueNameSafe("DocumentCategory");

        FileExpDocument.Grid.HeaderStyle.Height = 15; //it take minimum 15 but when i set to 10 height remain same
        //FileExpDocument.Grid.HeaderStyle.Font.Bold;
        FileExpDocument.Grid.ItemStyle.Height = 5;  // it  not take 5

        FileExpDocument.Grid.CellPadding = 0;
        FileExpDocument.Grid.CellSpacing = 0;


/////////////////*********/////////////////////

I have upload two image so you can get more idea what i exactly want


Thanks in advance 






Ianko
Telerik team
 answered on 27 Dec 2013
3 answers
123 views
Sorry tried finding this code suppose it out these but but my google foo is not finding.  Neeed to be able to return the radgrid to a a sub row from where I pressed the update button.  Right now it closes the grid on rebind, but then i need it to expand back to the row that was updated or on delete to the place the record was deleted from.  Hope I am explaining good enough, thanks for the help.
Princy
Top achievements
Rank 2
 answered on 27 Dec 2013
0 answers
75 views
Hi,Telerik Team

After I have opened the web page for 2 hours, the AutoCompleteBox control doesn't work. I have also attached the pic of an error with this. I have tried 2 ways to do data binding, using asp:SqlDataSource and Server site "atpMember.Datasource = DataTable;"

The following is an example of  "asp:SqlDataSource" code

Do you have any suggestion for fixing this problem?  Thank you in advance.

<telerik:RadAutoCompleteBox runat="server" ID="atpMember" InputType="Token"  Filter="Contains" Width="500px"
DropDownWidth="298px" DropDownHeight="300px" DataSourceID="SqlDataSource1" DataTextField="USER_NAME"
DataValueField="USER_ID" Skin="Windows7">
    <DropDownItemTemplate>
         <table cellpadding="0" cellspacing="0">
               <tr>
                    <td>
                           <table cellpadding="0" cellspacing="0">
                                 <tr>
                                       <td style="width: 60px">
                                              <%# DataBinder.Eval(Container.DataItem, "USER_ID")%>
                                       </td>
                                       <td style="width: 220px">
                                               <%# DataBinder.Eval(Container.DataItem, "USER_NAME")%>
                                       </td>
                                  </tr>
                              </table>
                          </td>
                     </tr>
               </table>
       </DropDownItemTemplate>
 </telerik:RadAutoCompleteBox>
 
 
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:OracleConnectionString %>"
            ProviderName="System.Data.OracleClient" SelectCommand="SELECT USER_ID,USER_NAME FROM KPDBA.USERS
     WHERE DEL_STAT = 'N' ">
</asp:SqlDataSource>
Nitisak
Top achievements
Rank 1
 asked on 27 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?