Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 views
Hello,

I think I already know the answer to this but wanted to post just in case.  I have implemented an ActiveX which scans documents and uploads them to my website.  The problem is, the upload is really hammering the system.  I was wondering if RadUpload - or another Telerik control - could possibly help out.  I am converting the image to a base64 and uploading.  But was wondering if I could somehow take the file created and use RadUpload to get the file directly to the server?  I would want to do this without user intervention, which I am guessing is not possible since RadUpload seems to be for that purpose only.  But I wanted to check anyways.  Or if there is another Telerik control that might help with the scenario I'm appreciate the input.

Thanks!
Richard
Dimitar Terziev
Telerik team
 answered on 23 Aug 2012
2 answers
658 views
Hi
I am fairly new to programming and I am using telerik radgrid to display a list of quotes for a sales application on a quote.aspx page. I have created a Hyperlink column that will redirect a user to a editquote.aspx page which will allow the user to edit specific details(product description,supplier...) of the particular quote they have chosen. The problem I am having is getting to display the chosen quote details on the editquote.aspx page in a radgrid in which they can use inline editing etc. Is there any help that I can get from the support team or anyone else on how to do this?
Louven
Top achievements
Rank 1
 answered on 23 Aug 2012
2 answers
745 views
I am binding grid using Needdatasource event.It works fine in normal case.
I have filter textbox for one of my column and I am validating the filter values in the ItemCommand event.Data is being fetched for the given filter value and could see the data in the Radgrid.DataSource.But the grid shows no records to display.Why the grid is not bind with the fetched data?

Please find below my code.
<telerik:RadGrid ID="gvPhoneInq" runat="server" CellSpacing="0" GridLines="None"
        AllowSorting="True" AllowFilteringByColumn="True" AllowPaging = "True"
        AutoGenerateColumns="False"  OnNeedDataSource="gvPhoneInq_NeedDataSource"
        OnItemCommand="gvPhoneInq_ItemCommand" OnSelectedIndexChanged="gvPhoneInq_SelectedIndexChanged" >      
        <PagerStyle Mode="NextPrevAndNumeric"/>
        <GroupingSettings CaseSensitive="false" />
        <ClientSettings EnablePostBackOnRowClick="true">         
            <Selecting AllowRowSelect="true" />
        </ClientSettings>
 
        <MasterTableView CommandItemDisplay="Top" NoMasterRecordsText="No Phone enquiry records exist!"  CommandItemStyle-BackColor="lightblue" CommandItemStyle-Font-Bold="true" GridLines="None" DataKeyNames="Ph_EnqID"
              >
 <Columns>
<telerik:GridBoundColumn HeaderText="Mobile No" UniqueName="Ph_PhNo" DataField="Ph_PhNo"   >
                    <FilterTemplate>
                        <telerik:RadTextBox ID="RTMob" runat="server" Width="200px" ClientEvents-OnValueChanged="ValueChanged1" ></telerik:RadTextBox>
                        <telerik:RadScriptBlock ID="RBMob" runat="server">
 
                                <script type="text/javascript">
                                    function ValueChanged1(sender, args) {
                                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                        var Name = $find('<%# ((GridItem)Container).FindControl("RTMob").ClientID %>');
 
                                        tableView.filter("Ph_PhNo", Name, "EqualTo");
                                    }                                  
                                </script>
 
                            </telerik:RadScriptBlock>
                    </FilterTemplate>
                </telerik:GridBoundColumn>
</Columns>
<EditFormSettings >
            <EditColumn UniqueName="EditCo

mmandColumn1"
></EditColumn>           
            </EditFormSettings>           
 
            <CommandItemStyle BackColor="LightBlue" Font-Bold="True"></CommandItemStyle>
        </MasterTableView>       
    </telerik:RadGrid>

aspx.cs

protected void gvPhoneInq_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
  
            _phoneEnqServices = new PhoneEnqServices();
  
            gvPhoneInq.DataSource = _phoneEnqServices.GetAllPatients(search);
        }    
  
         
        protected void gvPhoneInq_ItemCommand(object sender, GridCommandEventArgs e)
        {
              
            if (e.CommandName == RadGrid.FilterCommandName)
            {
                Pair filterPair = (Pair)e.CommandArgument;
                switch (filterPair.Second.ToString())
                {
                      
                    case ("Ph_PhNo"):
                        {
                            flagD = 0;
                            RadTextBox searchMob = (e.Item as GridFilteringItem)[filterPair.Second.ToString()].FindControl("RTMob") as RadTextBox;
                            search = " where Ph_PhNo ='" + searchMob.Text + "'";
                            break;
                        }
                }
            }          
              
        }


Please let me know if the above code has anu issues.without filter the grid binds properly.
Thanks,
Soumya
Preetham
Top achievements
Rank 2
 answered on 23 Aug 2012
2 answers
117 views
Hi,

I want to change the mode to preview mode instead of design mode in the run time.

How can i do this. What is the property to change this mode.


Thanks,
Sandy
Sandy
Top achievements
Rank 1
 answered on 23 Aug 2012
4 answers
151 views
Hello,

In some months as August 2012, 6 weeks are shown but the last row contains only days of September.
In this case, is it possible to suppress the last row?

Regards,

Erwan
Erwan
Top achievements
Rank 1
 answered on 23 Aug 2012
1 answer
54 views
Hello all,

I have an issue where I have a RadGrid nested within a repeater.  All functionality works fine, except when it comes to filtering.  When I attempt to display the filter menu for a specific column, nothing happens.  No menu displays, no javascript error, nothing.  I searched the forums expecting that at least another individual would have come across this by now, but no such luck.

(Also, I should mention that the radgrid is actually embedded within a user control, that is embedded within the repeater.)

If I place the radgrid outside of the repeater everything works fine.

Any ideas on what I can do to address this?

Thank you.
Martin
Telerik team
 answered on 23 Aug 2012
2 answers
56 views
Hello,

How can I set the css file needed to display different table layouts in table creator in RadEditor for Sharepoint 2010. In "normal" RadEditor setting value:
<telerik:RadEditor TableLayoutCssFile = "/_layouts/1045/STYLES/tableStyles.css" ... />

works well and all table layouts are properly displayed in Table Creator dialog. Doing the same in Rad Editor for Sharepoint by setting the same value in ConfigFile.xml located in: 
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\6.3.0.0__1f131a624888eeed\Resources\ConfigFile.xml like this:

<configuration>
  <property name="TableLayoutCssFile">/_layouts/1045/STYLES/tableStyles.css</property>
</configuration>

does not work. 

Should it be done in another way?

Thank you in advance.
Stanimir
Telerik team
 answered on 23 Aug 2012
2 answers
159 views

Hello, excuse me for my English I am French ...
I try to call in my code the RadUpload control with ID = radupload1

I tried several methods to find the RadUpload control example:
 

Dim RadUpload1 As RadUpload = CType(MyUserControl.FindControl("RadUpload1"), RadUpload)

 
but I get the error message:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Check the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.


1. here is my code aspx
:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="admin_Default2" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <title></title>

</head>

<body>

    <form id="form1" runat="server">

    <div>

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

<ajaxsettings>

<telerik:AjaxSetting AjaxControlID="RadGrid1">

<updatedcontrols>

<telerik:AjaxUpdatedControl ControlID="RadGrid1" />

 

</updatedcontrols>

</telerik:AjaxSetting>

</ajaxsettings>

 

 

</telerik:RadAjaxManager>

 

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

        </telerik:RadScriptManager>

    <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AutoGenerateColumns="false"  DataSourceID="SqlDataSource1" AutoGenerateEditColumn="true" >

 

    <MasterTableView Width="100%" DataKeyNames="idActualite" CommandItemDisplay="Top"

 

        EditMode="PopUp">

 

        <Columns>

 

           <telerik:GridTemplateColumn>

 

                <HeaderTemplate>

 

                    <asp:TextBox ID="txtCodeNumber" runat="server" Width="39px" />

 

                   <asp:LinkButton ID="lnkAddCode" runat="server" Text="Add Bulk Code" OnClick="lnkAddCode_Click" />

 

                </HeaderTemplate>

 

                <ItemTemplate>

 

                    <asp:TextBox ID="TextBox1" runat="server" Text='<%#Bind("titre") %>' Width="39px" />

 

                </ItemTemplate>

                  <EditItemTemplate>

                        

                         <telerik:RadUpload ID="RadUpload1" runat="server"   AllowedFileExtensions=".jpg,.jpeg" Skin="Black"></telerik:RadUpload>

                         <telerik:RadProgressArea ID="RadProgressArea1" runat="server"></telerik:RadProgressArea>

                       

                           

                        </EditItemTemplate>

 

            </telerik:GridTemplateColumn>

 

        </Columns>

 

    </MasterTableView>

 

</telerik:RadGrid>

  <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnGestion %>"

        SelectCommand="SELECT * FROM [actualites] ORDER BY idActualite DESC" InsertCommand="INSERT INTO [actualites] ([titre], [descriptif], [dataImage]) VALUES (@titre, @descriptif, @dataImage) SET @InsertedID = SCOPE_IDENTITY()"

        UpdateCommand="UPDATE [actualites] SET [titre] = @titre, [descriptif] = @descriptif, [dataImage] = @dataImage WHERE [idActualite] = @idActualite"

        DeleteCommand="DELETE FROM [actualites] WHERE [idActualite] = @idActualite"

        >

        <InsertParameters>

            <asp:Parameter Name="titre" Type="String" />

            <asp:Parameter Name="descriptif" Type="String" />

            <asp:Parameter Name="dataImage" DbType="Binary" />

            <asp:Parameter Name="InsertedID" Type="Int32" Direction="Output" />

        </InsertParameters>

        <UpdateParameters>

            <asp:Parameter Name="titre" Type="String" />

            <asp:Parameter Name="descriptif" Type="String" />

            <asp:Parameter Name="idActualite" Type="Int32" />

            <asp:Parameter Name="dataImage" DbType="Binary" />

        </UpdateParameters>

        <DeleteParameters>

            <asp:Parameter Name="idActualite" Type="Int32" />

        </DeleteParameters>

    </asp:SqlDataSource>

     

    </div>

    </form>

</body>

</html>

2. here is my code aspx.vb:

Imports System

Imports System.Drawing

Imports System.Data

Imports System.Configuration

Imports System.Web

Imports System.Web.Security

Imports System.Web.UI

'Imports System.Web.UI.WebControls

Imports System.Web.UI.WebControls.WebParts

Imports System.Web.UI.HtmlControls

Imports System.Data.SqlClient

Imports System.Data.SqlTypes

Imports System.IO

Imports System.Collections.Generic

Imports System.Collections

Imports System.ComponentModel

Imports System.Web.SessionState

Imports Telerik.Web.UI

Partial Class admin_Default2

    Inherits System.Web.UI.Page

    Public txtCodeNumber As RadUpload

    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load

    

    End Sub

    Protected Sub RadGrid1_InsertCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.InsertCommand

       

        Dim MyUserControl As UserControl = CType(e.Item.FindControl(GridEditFormItem.EditFormUserControlID), UserControl)

        Dim RadUpload1 As RadUpload = CType(MyUserControl.FindControl("RadUpload1"), RadUpload)

    End Sub

End Class

Thanks for your help,

Neri
Top achievements
Rank 1
 answered on 23 Aug 2012
5 answers
194 views
Long story short.  I've got a link button that refreshes the content of a telerik grid.  
I'm using the RadAjaxManager to handle the trigger and update controls.

The linkbutton is the trigger and the radgrid is one of the updated controls.  I'm also using a loading panel to show that an update is in progress.

These grids can have a lot of data and may take a few seconds to refresh.  So if somebody clicks refresh, and before it finishes updating, they click refresh again, the loading panel will display until a hard refresh of the page is done.

How can I avoid this behavior.  

Thanks,
Javier

Edit:  I've learned that this only happens when the LoadingPanel has a mindisplayTime.
Martin
Telerik team
 answered on 23 Aug 2012
3 answers
409 views
Hello,

i have some a grid and every of its rows has a subgrid (NestedViewTemplate).
The option AllowMultiRowEdit is set to "false".
This option let me select only one row per grid (which is ok) but does not prevent to select a single row in each grid/subgrid!
Is there a way to select only 1 row in ALL grids/subgrids together?
I want to have only one selected row, no matter how many subgrids are open.
So if I select a row in a subgrid, the selected row in an other subgrid should be automatically deselected.

Any solution for my request?

By the way, it should be client side only!

Thanks,
Adam
Eyup
Telerik team
 answered on 23 Aug 2012
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?