Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
1.8K+ views

 I'm developing an ASP.NET Web Application in C#.

The user is selecting some listed values from radcombobox. Those values are being saved in Database. When the same user login and select the combo box, already selected values should be visible but shouldn't be get selected. I need to disable the values... Is there any options to do it.

Note : I'm populating the combo-box items from a database table.

Seda
Top achievements
Rank 1
 answered on 07 Jan 2014
12 answers
720 views
G Afternoon,
I am a newbie to AJAXing RadControls and having a hell of a time.
Just when i think i have finally got my RadGrid bound to a Web Service i get:
Sys.ArgumentNull Parameter id null
The error is thrown when i call 
var tableview = $find("<%= rdScreenings.ClientID %>").get_masterTableView();
I get the correct clientid if i call for that alone. as soon as I add get_ to attach a data source i get the error.

Here is the scripts i am running:
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script language="javascript" type="text/javascript" >

    function pageLoad() {
        proxy.GetScreeningsByZipCode44212(updateGrid);
    }
    function updateGrid(results) {
        alert("<%= rdScreenings.ClientID %>");
        var radgrid = $find("<%= rdScreenings.ClientID %>");
        alert('got radgrid');
        var tableview = $find("<%= rdScreenings.ClientID %>").get_masterTableView();
       
        alert('before datasource');
        tableview.set_dataSource(results);
        tableview.dataBind();
    }
    function refreshData() {

        proxy.GetScreeningsByZipCode44212(updateGrid);
    }
</script>
</telerik:RadScriptBlock>
// snippets of the html & controls
<asp:ScriptManager ID="scriptManager" runat="server">
    <Services>
        <asp:ServiceReference Path="~/proxy.asmx" />
    </Services>
</asp:ScriptManager>

I am using ASPNET AJAX Q1 2009

Igor
Top achievements
Rank 1
 answered on 07 Jan 2014
3 answers
272 views
Is it possible to export the grid content to pdf and automatically to scale the content down to fit one page (similar to Excel or "Pdf API and HTML to PDF Converter for .NET" http://www.essentialobjects.com/Products/EOPdf/Default.aspx) ?
Kostadin
Telerik team
 answered on 07 Jan 2014
8 answers
159 views
hi

Menu right Arrow image is not working in chrome , it is working fine IE. we are using 2010.1.519.35. we are using following CSS for Right Arrow

.rmVertical .rmExpandRight     
{      
    
    background: transparent url('../../images/MenuRightArrow.gif') no-repeat right right !important;                         
            
}

i tried url base 64 also it is not working , please suggest me the solution


nsrikanth 2009
Top achievements
Rank 1
 answered on 07 Jan 2014
3 answers
437 views
Hi,
    Is the grid support autoellipsis function ?
Thank you for your answer.

Don.,
Princy
Top achievements
Rank 2
 answered on 07 Jan 2014
5 answers
95 views
Dear;

i'm using RadinputManager with text boxes (not RadTxtbox) for validation purpose, every thing is working fine except the Yalow caution logo appear with the error message inside the textbox, the skin is working because the error message come with red color (this means the skin is registered) but still i don't know the reason and how i can remove this Yalow logo from the text box.


Best regards  

Sami
Top achievements
Rank 1
 answered on 07 Jan 2014
1 answer
270 views
Hi,

I've been trying to get a modal RadWindow to open upon clicking on a button after the code-behind has executed.
I have tried various suggestions posted on this forum, but none seem to work.  

I have boiled down my problem page to just the components necessary so you could get a fairly clear look at it.  

It's behavior right now is to modally gray the entire screen, but the popup window does not show up anywhere.

If anyone has an idea what I need to change to get it to work, please let me know, I appreciate the help!!

Regards,

aspx.vb

Imports Microsoft.VisualBasic
Imports System
Imports System.Web
Imports System.Web.UI
Imports System.Text
Imports System.Web.Configuration
Imports Telerik.Web.UI
 
Partial Class Main
    Inherits System.Web.UI.Page
 
    Public aEditButton(11) As RadButton
 
    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        Dim x As Integer = 0
 
        Do While x < 10
            aEditButton(x) = New RadButton
            aEditButton(x).Text = "Edit"
            aEditButton(x).ID = "EButton" & x
            AddHandler aEditButton(x).Click, AddressOf Me.EditText
 
            RadMultiPage1.PageViews(0).Controls.Add(New LiteralControl("<table><tr><td style=""width: 45px""></td><td>" & x & "</td><td>"))
            RadMultiPage1.PageViews(0).Controls.Add(aEditButton(x))
            RadMultiPage1.PageViews(0).Controls.Add(New LiteralControl("</td></tr></table>"))
 
            x += 1
        Loop
 
    End Sub
 
    Private Sub EditText(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim buttonId As String
        Dim x As Integer
 
        buttonId = DirectCast(sender, RadButton).ID
        x = Mid(buttonId & "  ", 8, 2)
 
        Editor1.Content = x
        editFindings.Items.Add(New RadComboBoxItem(x, x))
 
        Dim script As String = "function f(){$find(""" + modalPopup.ClientID + """).show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, True)
 
        Label1.Text += "Got Here..."
    End Sub
 
    Protected Sub bReturn_Click(sender As Object, e As EventArgs) Handles bReturn.Click
        Label1.Text += "Exit Page..."
    End Sub
 
    Protected Sub Timer1_Tick(sender As Object, e As System.EventArgs) Handles Timer1.Tick
        'Processing code here ...
        Label1.Text = "[Auto Stored @ " & Date.Now.ToLocalTime & "]"
    End Sub
 
    Protected Sub editSave_Click(sender As Object, e As EventArgs) Handles editSave.Click
        Label1.Text += "From Editor:[" & Editor1.Content & "]"
    End Sub
 
    Protected Sub editAdd_Click(sender As Object, e As EventArgs) Handles editAdd.Click
        Editor1.Content = Editor1.Content & "<br/>" & editFindings.SelectedValue
    End Sub
End Class

aspx

<%@ Page Title="" Language="VB" AutoEventWireup="false" CodeFile="!Test1.aspx.vb" Inherits="Main" %>
<html>
  <head runat="server">
    <title> Test </title>
  </head>
<form id="form1" runat="server">
  <body id="mainBody" runat="server">   
    <telerik:RadScriptManager ID="ScriptManager1" runat="server"></telerik:RadScriptManager>
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Office2010Blue" EnableRoundedCorners="true" />
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" Runat="server"></telerik:RadStyleSheetManager>
 
    <asp:Label ID="Label1" runat="server"></asp:Label><br />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
      <AjaxSettings>                       
        <telerik:AjaxSetting AjaxControlID="Timer1">
        </telerik:AjaxSetting>
      </AjaxSettings>
    </telerik:RadAjaxManager>
 
    <asp:Panel ID="Panel1" runat="server" BorderStyle="Ridge" BorderWidth="3px" Width="95%" HorizontalAlign="Left" DefaultButton="bReturn">
      <table style="width:100%">
        <tr>
          <td  style="text-align: left">
            <telerik:RadButton  ID="bReturn" runat="server" Text="Return" Width="180px" Font-Size="16px"></telerik:RadButton>
          </td>
        </tr>
      </table>
 
      <telerik:RadMultiPage ID="RadMultiPage1" runat="server" Width="100%" SelectedIndex="0">
        <telerik:RadPageView ID="PageView1" runat="server"></telerik:RadPageView>
        <telerik:RadPageView ID="PageView2" runat="server" Width="100%"></telerik:RadPageView>
      </telerik:RadMultiPage>
    </asp:Panel>
 
    <asp:Panel ID="Panel2" runat="server">
      <asp:Timer ID="Timer1" runat="server" Interval="120000" OnTick="Timer1_Tick"/>
      <telerik:RadWindow ID="modalPopup" runat="server" Width="725px" Height="360px" Modal="true" >
        <ContentTemplate>
          <div>
            <table  style="width:725px">
              <tr>
                <td>
                  <asp:Label ID="editL1" runat="server" Text="Use this editor to formulate your response to this category"></asp:Label>
                </td>
                <td style="text-align:right">
                  <telerik:RadButton ID="editSave" Text="Save" AutoPostBack="false" CausesValidation="false" runat="server" />
                </td>
              </tr>
            </table>
            <telerik:RadEditor Width="725px" Height="300px" EditModes="Design" ID="Editor1" runat="server"></telerik:RadEditor><br />
            <asp:Label ID="edit2" runat="server" Text="Choose Item to add to Findings Above"></asp:Label><br />
            <telerik:RadComboBox ID="editFindings" Width="420px" runat="server"></telerik:RadComboBox>
            <telerik:RadButton ID="editAdd" Text="Add" AutoPostBack="false" CausesValidation="false" runat="server" />
          </div>                  
        </ContentTemplate>
      </telerik:RadWindow>
    </asp:Panel>
        
  </body>
</form>
</html>


Shinu
Top achievements
Rank 2
 answered on 07 Jan 2014
6 answers
186 views

I set the OverwriteExistingFiles attribute to false, but files are being overwritten any way?

Version:2010.2.817.20

Here is my code:

 

<

 

 

telerik:RadAsyncUpload runat="server" ID="AsyncUpload" Skin="Office2007" OverwriteExistingFiles="false" MultipleFileSelection="Automatic" Width="250" OnFileUploaded="RadAsyncUpload1_FileUploaded">

 

</

 

 

telerik:RadAsyncUpload>

 

Michael
Top achievements
Rank 1
 answered on 07 Jan 2014
3 answers
554 views

I have a grid that has a GridTemplateColumn, with an EditItemTemplate inside. Inside the EditItemTemplate is a RadNumericTextBox. I'm trying to loop through the rows in the grid server side, outside the normal RadGrid events. I have a button that when clicked sends me server side and in that event I need to loop through and grab the values from all the rows.



I have no problem grabbing the DataKeyValue for the row, it's just the value of txtQuantity I am unable to get.


Here is my ASCX:

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" DataSourceID="Products"
    Skin="Forest" GridLines="None" OnItemDataBound="RadGrid1_ItemDataBound" Width="50%">
    <ClientSettings>
         <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" ></Scrolling>
    </ClientSettings>
    <MasterTableView ShowFooter="true" AutoGenerateColumns="False"
        CurrentResetPageIndexAction="SetPageIndexToFirst" DataKeyNames="ID" DataSourceID="Products"
        Dir="LTR" Frame="Border" TableLayout="Auto" EditMode="Batch" BatchEditingSettings-OpenEditingEvent="Click" CommandItemDisplay="None">
        <Columns>
            <telerik:GridBoundColumn DataField="ID" DataType="System.Int32"  ReadOnly="True" UniqueName="ID" />
            <telerik:GridBoundColumn DataField="ProductName" ReadOnly="true" HeaderText="Product" UniqueName="ProductName" />
             
            <telerik:GridTemplateColumn DataField="Quantity" UniqueName="Quantity" HeaderText="Quantity" DataType="System.Int32">                               
                <ItemTemplate>
                        <%# Eval("Quantity")%>
                </ItemTemplate>
                <EditItemTemplate>
                    <telerik:RadNumericTextBox ID="txtQuantity" runat="server" Width="40px" DataType="System.Int32"
                         NumberFormat-DecimalDigits="0" Skin="Forest">
                        <ClientEvents OnBlur="Blur" OnFocus="Focus" />
                    </telerik:RadNumericTextBox>
                </EditItemTemplate>
                <FooterTemplate>
                    <telerik:RadNumericTextBox ID="TextBox2" runat="server" Width="40px" DataType="System.Int32" NumberFormat-DecimalDigits="0" Skin="Forest" ReadOnly="True">
                        <ClientEvents OnLoad="Load" />
                    </telerik:RadNumericTextBox>
                </FooterTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
    <PagerStyle Mode="NextPrevAndNumeric" />
</telerik:RadGrid>




Here is my Server side:



Protected Sub btnProcess_Click(sender As Object, e As EventArgs)
    Try
        For Each row As GridDataItem In RadGrid1.MasterTableView.Items
            Dim key As String = row.GetDataKeyValue("ID")
            Dim qty As RadNumericTextBox = DirectCast(row("Quantity").FindControl("txtQuantity"), RadNumericTextBox)
 
        Next
        
    Catch ex As Exception
        Response.Write(ex.ToString)
    End Try
End Sub




Princy
Top achievements
Rank 2
 answered on 07 Jan 2014
4 answers
159 views
 

This is Alex  and need some help regarding RadEditor (specifically the Insert image feature in RadEditor).

 

Description :

 

The demo shown  @ http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx , works as expected in IE8 ie I am able to insert image through image manager and resize it by dragging but same can’t be done using Chrome, ie. I’m able to insert image but not able resize it by dragging.

 

 

Dsffd
Top achievements
Rank 1
 answered on 07 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?