Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
91 views
Hi,
I've got a GridHTMLEditorColumn that appears to be working fine, except the width of the control is shifting the right margin of the radGrid over the margin of background image (i.e. the grid in edit mode is much wider than the grid out of edit mode).

Within the GridHTMLEditorColumn control there is a significant amount of padding between the parent border and the child controls. Is there any way to set the amount of padding?

Thanks in advance,
Peter
Eyup
Telerik team
 answered on 11 Mar 2013
3 answers
369 views
Hi

When i load  RadGrid  dynamically (on EventHandler  for example buttonClick) , client side event OnGridCreated is not executed,
Why ?

regards rafalr
 

Eyup
Telerik team
 answered on 11 Mar 2013
1 answer
108 views
 Unable to Type into a RAD Text Box? Cursor not Appearing in Google chrome.
 When click on the rad text box to enter some value to it cursor not appearing in the rad text box.
Eyup
Telerik team
 answered on 11 Mar 2013
2 answers
142 views
Dear Telerik,

i would like to use a custom ajax extender to use with the numeric textbox. Sadly i get a similiar error to this one:

Extender control '' cannot extend 'myNumericTextbox1'. Extender controls of type 'CustomExtenders.MyCustomerExtender1' cannot extend controls of type 'Telerik.Web.UI.RadNumericTextBox'.

Am i doing something wrong or is this by design?

This because for numeric textboxes we want to allow 2 decimal seperators, both , and .
We have a solution, namely: see code.

Basicly we handle a '.' keypress differently. In that case we cancel the current keypress and simulate another one
which we call on the numerictextbox. Cause we set the property _numPadDecimalSeparatorPressed to true,
we can reuse the current event without problems :).

We would like to solve this in an extender, please advice.
function keypress(sender, args) {
                var char = args.get_keyCharacter();
                //allow a dot to be a comma (only needed when we DONT press numpad decimalseperator)
                if (char == "." && !sender._numPadDecimalSeparatorPressed) {
                    //cancel current event
                    args.set_cancel(true);
                    //now fake a decimal seperator pressed keypress
                    sender._numPadDecimalSeparatorPressed = true;
                    //and send it back to the telerik handler
                    sender._onTextBoxKeyPressHandler(args._domEvent);                   
                }
            }

Frank Beerens
Top achievements
Rank 1
 answered on 11 Mar 2013
1 answer
109 views
Hi,
I need to mask(with bullets) the numbers entered.  But there is no textmode property for RadNumbericTextBox.  I also tried using RadMaskedTextBox, but PromptChar property was not working when textmode is set to Password.
Princy
Top achievements
Rank 2
 answered on 11 Mar 2013
2 answers
212 views
Please how do i chane my column Header from Datasource Column name to my Custom Column name  when i want to hide or show columns using header context menu.My Radgrid header is showing custom name but the header custom menu is showing Datasource column name
Shinu
Top achievements
Rank 2
 answered on 11 Mar 2013
0 answers
90 views
Hello,

I have RadAjaxPanel inside a user control and it loads as expected. I have a button to which a click-handler is tied in the code behind file. If I click on the button to trigger the event, I see nothing is left in the RadAjaxPanel, it's just empty.


The detailed scenario is after the user enters the value in the form I need to save the values as I need to implement a parallel functionalities of Google Chrome called 'auto-fill' (not similar, unlike on client side I will save all in XML and then the XML itself would be saved on the DB Server). So if user modifies the default values of the fields, I need to save as another node of XML So I am having a button called saved, and for the event handler for click, I have added the logic to save the form values, but as soon as I click on the save button I notice that all controls just get removed and nothing gets saved.

Please advise ...

Thanks,
-Aarsh
Aarsh
Top achievements
Rank 1
 asked on 11 Mar 2013
1 answer
257 views
My RadGrid contains select checkbox in all of its rows . what i am trying to do is, the user can select the row which he wants to be in page which is going to be printed or converted to pdf. Currently the website will be intranet website so i cannot acess webresourceurl.
So user can print the radgrid or save it as pdf for all the rows which have the checkbox selected. this setup is repeated 30 times in a page . i am currently binding the data in asp table for printing option and to radgrid for pdf option. hence the page is getting very bulk. can anybody help me to reduce this jumble. so i can implement the print, convert to pdf, the selected row from a single radgrid.
Shinu
Top achievements
Rank 2
 answered on 11 Mar 2013
1 answer
176 views
Hello
I have problem with rad captcha the image and textbox vertically does not fit mean image appear on left side and textbox appear inn the center  I tried add cssClass to the control 
.captcha {
          text-align: center;
          direction: ltr;
      }
      img {
          text-align: center;
          direction: ltr;
      }
<telerik:RadCaptcha ID="RadCaptcha1" runat="server" CaptchaTextBoxCssClass="captcha" CssClass="captcha"></telerik:RadCaptcha>

 
Princy
Top achievements
Rank 2
 answered on 11 Mar 2013
2 answers
156 views
I have a radgrid that gets populated on the server side after a user enters in some parameters, and clicks the search button.  I have a radajaxmanager that updates the radgrid when button 1 is pushed.  (See code below.)

I tried to copy from the export demo how to use the command item buttons to export the radgrid to pdf/word/excel etc.  However, it is not exporting.  I put a breakpoint on the function called "RadGrid1_ItemCommand".  This function DOES get called when I click on an export button, and the if e.command statement does go to the correct export option I want.  (Ex. ExportToExcel).  However, when the program gets to the line: RadGrid1.MasterTableView.ExportToExcel(), nothing happens.  Am I missing some code?

Here's what I have so far.
Asp part
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" AsyncPostBackTimeout="600"
        </telerik:RadScriptManager> 
              <telerik:RadGrid ID="RadGrid1" runat="server" Skin="Sunset" AllowSorting="True" 
            GridLines="None" Width="95%" OnItemCommand="RadGrid1_ItemCommand"
                    <MasterTableView CommandItemDisplay="Top"
                        <RowIndicatorColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </ExpandCollapseColumn> 
                        <CommandItemSettings 
                            ShowExportToWordButton="true" 
                            ShowExportToExcelButton="true"  
                            ShowExportToCsvButton="true" 
                            ShowExportToPdfButton="true" 
                            /> 
                    </MasterTableView> 
                </telerik:RadGrid> 
    </div> 
    <script type="text/javascript"
            function onRequestStart(sender, args) 
            { 
                if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 || 
                    args.get_eventTarget().indexOf("ExportToWordButton") >= 0 || 
                    args.get_eventTarget().indexOf("ExportToPdfButton") >= 0 || 
                    args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) 
                { 
 
                    args.set_enableAjax(false); 
                } 
            } 
        </script> 
    <telerik:RadAjaxManager runat="server"
        <ClientEvents OnRequestStart="onRequestStart" /> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="Button1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"  
    Width="75px" Skin="Forest"
    </telerik:RadAjaxLoadingPanel> 
 
 

VB part
Imports Telerik.Web.UI 
Imports Telerik.Web.UI.Common 
Imports Telerik.Web.UI.Grid 
Imports Telerik.Web.UI.RadGrid 
 
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click 
        Dim sqlString As String 
 
        sqlString = "my params" 
 
        RadGrid1.DataSource = ws1.getData(sqlString).Tables("DAT") 
        RadGrid1.DataBind() 
 
        Dim cmdItem As GridCommandItem 
        cmdItem = RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)(0) 
        cmdItem.FindControl("InitInsertButton").Visible = False 
        cmdItem.FindControl("AddNewRecordButton").Visible = False 
        cmdItem.FindControl("RebindGridButton").Visible = False 
        cmdItem.FindControl("RefreshButton").Visible = False 
    End Sub 
 
    Protected Sub RadGrid1_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) 
        If e.CommandName = Telerik.Web.UI.RadGrid.ExportToExcelCommandName Then 
            RadGrid1.ExportSettings.OpenInNewWindow = True 
            RadGrid1.MasterTableView.ExportToExcel() 
        ElseIf e.CommandName = Telerik.Web.UI.RadGrid.ExportToWordCommandName Then 
            RadGrid1.ExportSettings.OpenInNewWindow = True 
            RadGrid1.MasterTableView.ExportToWord() 
        ElseIf e.CommandName = Telerik.Web.UI.RadGrid.ExportToCsvCommandName Then 
            RadGrid1.ExportSettings.OpenInNewWindow = True 
            RadGrid1.MasterTableView.ExportToCSV() 
        ElseIf e.CommandName = Telerik.Web.UI.RadGrid.ExportToPdfCommandName Then 
            RadGrid1.ExportSettings.OpenInNewWindow = True 
            RadGrid1.MasterTableView.ExportToPdf() 
        End If 
    End Sub 

Thanks,
GP


Sauge
Top achievements
Rank 1
 answered on 10 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?