Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 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
208 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
89 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
244 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
172 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
141 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
1 answer
62 views

We just upgraded to v.2013.1.220.40 and can no longer access the cell value from cells where visible=false.  We have lots of logic like this item.Cells(0).Text.ToString() in our system. 

What's up?  Is there a setting that reenables this?

Thanks

mmbm
Top achievements
Rank 2
 answered on 09 Mar 2013
4 answers
201 views
Hello everyone,

I have a similar issue as described here. I'm using the RadSiteMap within the template of the breadcrumb widget in Sitefinity 5.4. It's rendering too many tags and css classes.

This is my template:
<div itemprop="breadcrumb" class="rBread">
    <telerik:RadSiteMap runat="server" ID="Breadcrumb" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false" ClientIDMode="Static" OnNodeDataBound="RadSiteMap_NodeDataBound" OnDataBound="RadSiteMap_OnDataBound">
        <DefaultLevelSettings Layout="Flow">
            <NodeTemplate>
                <asp:HyperLink ID="L" runat="server"></asp:HyperLink><asp:Literal ID="Txt" runat="server"></asp:Literal>
            </NodeTemplate>
            <SeparatorTemplate>
                <div></div>
            </SeparatorTemplate>
        </DefaultLevelSettings>
    </telerik:RadSiteMap>
</div>

This is what is being rendered:
<div itemprop="breadcrumb" class="rBread">
    <div id="Breadcrumb" class="RadSiteMap RadSiteMap_Default">
        <!-- 2012.3.1308.40 --><ul class="rsmFlow rsmLevel rsmOneLevel">
            <li class="rsmItem sfBreadcrumbNavigation"><div class="rsmTemplate">
                 
                <a id="L" href="/">Home</a>
             
            </div>
                <div></div>
            </li> <li class="rsmItem sfBreadcrumbNavigation"><div class="rsmTemplate">
                 
                <a id="L" href="/contact">Get in touch</a>
             
            </div>
                <div></div>
            </li> <li class="rsmItem sfNoBreadcrumbNavigation"><div class="rsmTemplate">
                 
                Forum
             
            </div></li>
        </ul><input id="Breadcrumb_ClientState" name="Breadcrumb_ClientState" type="hidden" />
    </div>
</div>

This is what I need to be rendered:
<div itemprop="breadcrumb" class="rBread">
                <a id="L" href="/">Home</a>
                <div></div>
                <a id="L" href="/contact">Get in touch</a>
                <div></div>
                Forum
</div>

How can I achieve that, or at the very least remove all the class attributes I don't need?

Thank you!
Arno
Top achievements
Rank 2
 answered on 09 Mar 2013
1 answer
134 views

I just found a possible issue with the reported upload file's stream length. My initial attempts to determine what was going on can be reviewed over on the MSDN forums here:

http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/877d4ba7-3028-4bc2-aeec-e61b0da62526

In short I am putting uploaded documents into a varbinary(max) column on a SQL table. The column is set for full text indexing and while older .doc files along with .txt, .aspx, and other extensions would work just fine. The new Office formats (.docx, .xlsx, etc.) were not indexing. I thought at first it was an issue with the installation of the needed Office filter pack, but that turns out not to be the case.

Rather if I create my byte array to pass to SQL as one byte less than reported by the stream, then everything works. i.e.:

Protected Sub AsyncUpload1_FileUploaded(sender As Object, e As Telerik.Web.UI.FileUploadedEventArgs) Handles AsyncUpload1.FileUploaded
     DocumentTable.UpdateDocumentFile(e.File.InputStream)
 End Sub
  
Public Sub UpdateDocumentFile(ByRef content As IO.Stream)
     Dim bytes As Byte() = New Byte(content.Length - 1) {}
     content.Read(bytes, 0, content.Length)
     SqlHelper.ExecuteNonQuery(getConnectionString, _
                                "Documents_Upsert", _
                               Me.DocumentId, _
                               Me.Filename, _
                               Me.Extension, _
                               Me.MimeType, _
                               bytes)
 End Sub

Any ideas or observations?
Ed Hand
Top achievements
Rank 1
 answered on 09 Mar 2013
1 answer
73 views
Hi,

Dynamically adding docks and I want when the user clicks the command button to show or hide a div within the widget. I can do this with a javascript function on the ascx page, but once I add more than one the function becomes ambiguous with each copy having the same javascript function.

The ascx file will have a function like:

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script>
    function temper(dock, args) {
        $('#<%= temperDiv.ClientID%>').hide("slow");
    }    
</script>
</telerik:RadCodeBlock>
<div id="temperDiv" runat="server" >

Slav
Telerik team
 answered on 08 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?