Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
81 views
1. Is it possible to have labels below each column like in this fashion. I looked at the example here, but I want a label each column. Each column is a different datafield that only occurs once, like in the example I linked. 

2. Is it possible to make the line on a line series thicker? 
DuelingCats
Top achievements
Rank 2
 answered on 11 Dec 2012
2 answers
66 views
I've just been reading about the RadGrid AllowKeyboardNavigation property and trying it out.

Given the nature of most programs, I think it safe to say that most people navigate with a combination of keys and mouse clicks.

I'm testing a RadGrid in which key navigation is enabled, and which has a standard template popup editing arrangement.  

Given such a set up, I'm a little confused.  If I open a record for editing through the keyboard I can close the popup with the Esc key.

If I open the record with a mouse click on the Edit column link, the Esc key has no effect.

I find this a bit inconsistent.   

What would be the best way to insure the Esc key always closes the popup?
Boris
Top achievements
Rank 1
 answered on 11 Dec 2012
3 answers
123 views
For RadComboBoxes with CheckBoxes=true, when a RadComboBoxItem is added via client code (as indicated here: http://www.telerik.com/help/aspnet-ajax/combobox-items-client-side-code.html), the OnClientItemChecked event does not fire when the new RadComboBoxItem is checked.  Is this by design? If so, is there some sort of workaround? 
Nencho
Telerik team
 answered on 11 Dec 2012
3 answers
150 views
I have a master page containing a Treeview used as a menu, and a content area for the site pages. One site page has a summary-style RadGrid at the top of the page, and then a tabstrip with a Multiview. Each PageView contains a user control with the content for that PageView. I am unable to get the correct ajax behavior.

When I follow what I understand to be Telerik's guidance and list the tabview and multipage each as ajax initiators and updated controls, client-side validation breaks in all the page views. I could live with that, but one of the page view user controls contains a RadEditor, and whatever breaks the client-side validation also results in updated editor content not being saved when the rest of the page data is saved. Watching the server-side validation function for the custom validator assigned to the RadEditor always shows the original editor content and never shows the updated content. Maybe some necessary Javascript for the editor content retrieval is breaking, along with the client-side validation javascript? The client-side validation breaks in IE, Firefox and Chrome. The failure to update the RadEditor content only happens in IE.
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxyTopic" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadTabStripTopic">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStripTopic" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPageTopicSubforms" LoadingPanelID="RadAjaxLoadingPanel_Topic" />
                <telerik:AjaxUpdatedControl ControlID="userMessageDisplay" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadMultiPageTopicSubforms">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStripTopic" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPageTopicSubforms" LoadingPanelID="RadAjaxLoadingPanel_Topic" />
                <telerik:AjaxUpdatedControl ControlID="RadGridTopic" />
                <telerik:AjaxUpdatedControl ControlID="userMessageDisplay" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

If I remove the RadAjaxManagerProxy and instead surround the page's content with an AspPanel, client-side validation resumes working. Since the user controls on each PageView contain RadGrid controls, I need to ajaxify each of the user controls individually. That works- the client-side validation works, and the user control with the RadEditor successfully saves the updated editor content.

But since each user control is now individually ajaxified, the main page's summary RadGrid does not get updated when it should. Each user control raises an update event which is handled by the main page. I tried dynamically adding an ajax update for the summary RadGrid, but I get an internal error in Telerik Javascript when the code executes. This is the update event handler on the main page, which tries to assign the desired AjaxSetting. The rest of the event handler performs the appropriate updates to the main page's summary RadGrid, but the .AddAjaxSetting throws an internal exception.
protected void TopicTabForm_AfterUpdate(object sender, EventArgs e)
{
     RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(Page);
     ajaxManager.AjaxSettings.AddAjaxSetting(sender as Control, this.RadGridTopic);

Is there any way to force a control on the main page to update it's display like this? Or is there any better approach to ajaxifying a tabstrip containing user controls with RadGrids?
Angel Petrov
Telerik team
 answered on 11 Dec 2012
6 answers
523 views
I have written about  this subject before, but I have found a hack on how to call the c# code behind from javascript and when I do that, and call rebind from the c#, the grid is not rebinding. Here is what I am doing:

I have a grid and button outside the grid which creates a modal radwindow to generate a wizard to create users. When the wizard completes and the window closes, I have a javascript function to handle the window close and in that function, I have one line which clicks a hidden button so that the onclick server call for that button can get called automatically. The call gets called, and in that call all I have is a rebind. It runs according to my debugger, but the grid does not refresh. The users do get generated becasue if I then click the refresh button the grid refreshes.

 I have a radajaxmanager set up so that the button controls the grid.(the hidden button is called myServerButton. here is my code:

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1" >
       <ClientEvents OnRequestStart="centerUpdatePanel();"></ClientEvents>
       
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="myServerButton">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="usersGrid" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="WizardButton">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="CompanyInfoGrid" />
                            <telerik:AjaxUpdatedControl ControlID="usersGrid" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="TopGrid">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="TopGrid" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="CompanyInfoGrid">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="CompanyInfoGrid" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="usersGrid">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="TextBoxOrderDetailID" />
                            <telerik:AjaxUpdatedControl ControlID="CompanyInfoGrid" />
                            <telerik:AjaxUpdatedControl ControlID="usersGrid" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
    </telerik:RadAjaxManager>

.........  
<asp:Button ID="myServerButton" runat="server" style="display:none;"  OnClick="rebindUsers"  />

  <telerik:RadGrid ID="usersGrid" runat="server"
       DataSourceID="ContentCentralUsers" GridLines="None" Skin="Office2007" AutoGenerateColumns="False"
            ondatabound="usersGrid_DataBound" onitemdatabound="usersGrid_ItemDataBound"   OnItemCreated="usersGrid_ItemCreated"
            onitemevent="usersGrid_ItemDataBound" oniteminserted="usersGrid_ItemInserted" onitemupdated="usersGrid_ItemUpdated"
            ShowStatusBar="True" OnPreRender="usersGrid_PreRender" oninsertcommand="usersGrid_InsertCommand" OnItemCommand="usersGrid_ItemCommand"
            onupdatecommand="usersGrid_UpdateCommand"   >
     
       <MasterTableView  DataSourceID="ContentCentralUsers"  DataKeyNames="user_id,package_cd"
             AllowFilteringByColumn="True" AllowSorting="True"   
              InsertItemPageIndexAction="ShowItemOnFirstPage" CommandItemDisplay="Top"
             NoMasterRecordsText="No users to display.">
            <CommandItemSettings AddNewRecordText="Add new user"  />
            
            <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
   
            <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            
   
     <Columns>
.....
<script type="text/javascript">

 function OnClientClose(oWnd) {
        document.getElementById('myServerButton').click(); // clicks hidden button to invoke c# call to rebind users
    }

 function openWin(OrderDetailID) {

        var urlArgs = cbeGetURLArguments();

        var sbOID = parseInt(urlArgs['sbOID']);
        var queryODID = parseInt(urlArgs['sbODID']);
        var sbproductid = parseInt(urlArgs['sbproductid']);
        var SAPID = urlArgs['SAPID'];

        var txtbxODID = document.getElementById('TextBoxOrderDetailID').value;
        var txtbxProduct = document.getElementById('TextBoxProduct').value;
        var licensePrice = document.getElementById('licensePrice').value;
        if (txtbxODID == null)
            sbODID = queryODID;
        else
            sbODID = txtbxODID;


        var windowURL = "v8Wizard_1.aspx?sbODID=" + sbODID + "&sbproductid=" + sbproductid + "&SAPID=" + SAPID +
                 "&lPrice=" + licensePrice + "&email=" + "" + "&ttt=" + "" + "&p_cd=" + "NTB" + "&sbOID=" + sbOID + "&numUsers=&packagePrice=0";

        var oWnd = radopen(windowURL, "RadWindow1");
        oWnd.setSize(900, 550);
        // oWnd.setSize(650, 600);
        oWnd.center();

        //set a function to be called when RadWindow is closed
        oWnd.add_close(OnClientClose);
    }
   
   </script>
......

  protected void rebindUsers(Object sender, EventArgs e)
    {
        usersGrid.Rebind();
       
    }
    
The rebind gets executed, but the grid does not refresh.







Maria Ilieva
Telerik team
 answered on 11 Dec 2012
1 answer
69 views
Hello.

There is a problem with rad telerik editor when using "Flash manager".
after flash file upload, Width and Height are default 150x150.
when I tried to change width and height in editor and Exit+Save, It's changed and everything is ok.
But, Every time I getting into flash manager editor, width and height shows 150x150 by default. even after changing.

Why height and width size did not changes after Save?
Rumen
Telerik team
 answered on 11 Dec 2012
1 answer
42 views
Hi,

I am binding RADGRID in client side with paging on search button click. it is working fine with paging. but when i bind grid again on search button click, the page index not reset..

So, i tried to reset the current page index using set_currentPageIndex(0) property.. But it recalls the bind function again and all the data does wrong.


 masterGrd.set_currentPageIndex(0);

Even i tried to rebind function but that too not worked.

 masterGrd.set_currentPageIndex(0);<br><span style="font-size: 13.63636302947998px;">masterGrd</span>.rebind();
Vasil
Telerik team
 answered on 11 Dec 2012
0 answers
33 views
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="products.aspx.cs" Inherits="products"%>
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head>
    <title><%Response.Write(ConfigurationManager.AppSettings["AdminTitle"]); %></title>
    <link href="aStyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="aMenuStyle.css" rel="stylesheet" type="text/css" />
    <link href="aPageDesign.css" rel="stylesheet" type="text/css"/>
    <link href="webworld_calendar.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="jscripts/webworld_calendar.js"></script>
    <script language="javascript" type="text/javascript">
        function confirmMsg(msg){
            if(!confirm(msg)){
                return false;
 
            } else {
                return true;
            }
        }
        function GetFileName() {
            var upload = $find("<%= RUCatImage.ClientID %>")
            var filePath = upload.getFileInputs()[0].value;
            var fileName = filePath.substring(filePath.lastIndexOf("\\") + 1);
            document.getElementById("<%= Txt_CatImage.ClientID %>").value = fileName;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    </telerik:RadStyleSheetManager>
     <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
 
  <telerik:RadImageEditor ID="RadCatImgEdit" runat="server" ToolsFile="~/App_Data/ImageEditor.xml">
                                                    </telerik:RadImageEditor>
 
</form>
</body>
</html>

This is the source.
Would you please tell me why i did not get the tool dialog with properties. Just i see empty dialog
Annie
Top achievements
Rank 1
 asked on 11 Dec 2012
1 answer
135 views
Strange one here. I am using Combobox dll 2.8.4 (I know its old, its legacy stuff). On my Windows 2008 server here it works fine as expected. On a Windows 2003 server it misbehaves. We have narrowed it down to a class on the div created around the drop down being changed. On our 2K8 server the following line stays as is and all works well:

<div class="ComboBoxItem_Default" id="ctl00_cphBarCol_ddlFolder_Input" style="display:inline; white-space: nowrap;">

But on the client's 2003 server when the drop down is clicked in to it changes the class to "ComboBoxItemHover" and blows out the styling which results in us not being able to select anything in the drop down box.

<div class="ComboBoxItemHover_Default" id="cphBarCol_ddlFolder" style="display:inline; white-space: nowrap;">

I have attached two images. Dropdown_good.jpg shows the expected and correct behaviour. Dropdown_bad.jpg shows how the dropdown box turns out on 2k3 server.

How do I stop the js targeting the div? Please help before my head explodes.
Kalina
Telerik team
 answered on 11 Dec 2012
1 answer
106 views
Dear All!
I am working on a telerik report Q3 2010.I want to change the size the size of control by using stylesheet .I am familier with stylerules of telerik . now my question is 
"it is possible to change the size of the textfield/textbox using style sheet in telerik? if yes then how ?"

Please i need your guidance , if you have another idea to set the size of the control mentioned above dynamically then please do share with me.


Best Regards
Shinu
Top achievements
Rank 2
 answered on 11 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?