Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
94 views
Hello,
I uploaded web site with RadControls to Windows Azure.
And there is 500 server error when I clicked RadButton. (See console of browser) (There is not error in my IIS)
So I debugged it and I figured out. The issue is related to RadCompression.
When I removed RadCompression from web.config, the error has not occurred any more.

But I need to use RadCompression so I tried to solve the issue in different ways.
And when I set <urlMappings> to web.config, the error has not occurred any more.

So, I have two questions below.
1. Why an error occur when I use RadCompression without setting <urlMappings> in Azure?
2. What does <urlMappings> have to do with RadCompression?


I attached my test Web Site source and azure site url.
Please refer to it and answer me about two questions.

Azure site url: http://telerikcontrol.azurewebsites.net/
Web site source: http://www.mediafire.com/?cfq9tx53210mq63


Maria Ilieva
Telerik team
 answered on 27 Sep 2013
1 answer
86 views
I am new in the asp.net code and i need generate a report in a gridview with objectdatasource,  when i click a button and the parameters of 4 textbox add to query
Shinu
Top achievements
Rank 2
 answered on 27 Sep 2013
4 answers
247 views

When I click the Update link button the editform deosn't close but it updates the record with the grid. Appreciate any help
I am using the latest version of RadGrid and VS2008 beta. Appreciate any help.

Here is my Grid Definition

                    <telerik:RadGrid    ID="rgContactNumber"
                                        OnItemCommand="rgContactNumber_ItemCommand"
                                        OnItemDataBound="rgContactNumber_ItemDataBound"
                                        OnNeedDataSource="rgContactNumber_NeedDataSource"
                                        OnUpdateCommand="rgContactNumber_UpdateCommand"
                                        AllowAutomaticDeletes="True" AllowAutomaticUpdates="True"
                                        AllowAutomaticInserts="true" AllowPaging="True"
                                        AllowSorting="True" AutoGenerateColumns="False" 
                                        EnableAJAX="True"
                                        GridLines="Horizontal" runat="server" Width="98%"
                                        EnableAJAXLoadingTemplate="False"
                                        LoadingTemplateTransparency="0"
                                        PageSize="5">
                        <ClientSettings>
                            <Scrolling AllowScroll="True" UseStaticHeaders="False" />
                            <Selecting AllowRowSelect="True" />
                        </ClientSettings>                         
                        <MasterTableView Width="100%" GridLines="Horizontal" DataKeyNames="ContactID" PageSize="5"
                                             AutoGenerateColumns="False"  CommandItemDisplay="TopAndBottom">
                            <CommandItemTemplate>
                                <table>
                                    <tr>
                                        <td width="30%">
                                            <asp:LinkButton ID="btnAdd" Text="Add Contact Number" CommandName="InitInsert" runat="server"/>
                                        </td>
                                    </tr>
                                </table>
                            </CommandItemTemplate>
                            <Columns>
                                <telerik:GridEditCommandColumn  ButtonType="ImageButton"
                                                                UpdateImageUrl="../App_Themes/Default/DataEditingImages/Edit.gif"
                                                                CancelImageUrl="../App_Themes/Default/DataEditingImages/Cancel.gif">
                                </telerik:GridEditCommandColumn>
                                <telerik:GridBoundColumn    DataField="ContactId" Groupable="False" HeaderText="Contact Id"
                                                            UniqueName="ContactIdColumn" ReadOnly="True" Visible="false">
                                </telerik:GridBoundColumn>                     
                                <telerik:GridBoundColumn    DataField="ContactValue" HeaderText="Phone Number"
                                                            SortExpression="ContactValue" UniqueName="ContactValue">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn    DataField="ContactSubType.Description" HeaderText="Contact Type"
                                                            SortExpression="ContactSubType.Description"
                                                            UniqueName="PhoneType" ReadOnly="true" Visible="true">
                                </telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn    DataField="ContactDescription" HeaderText="Describe Other"
                                                            SortExpression="ContactDescription" UniqueName="ContactDescription"
                                                            Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridCheckBoxColumn DataField="IsPrimary" HeaderText="Primary"
                                                UniqueName="Primary" Visible="true"> 
                                </telerik:GridCheckBoxColumn> 
                                <telerik:GridDropDownColumn HeaderText="Phone Type" UniqueName="ddlPhoneType" Visible="false"
                                                            ListValueField="ContactSubTypeID"
                                                            ListTextField="Description"
                                                            DropDownControlType="DropDownList">
                                </telerik:GridDropDownColumn>                                                           
                                <telerik:GridButtonColumn   ConfirmText="Are you sure you want to Delete this Contact?"
                                                            ButtonType="ImageButton"
                                                            ImageUrl="../App_Themes/Default/DataEditingImages/Delete.gif"
                                                            CommandName="Delete"
                                                            Text="Delete"
                                                            UniqueName="DeleteColumn">
                                <HeaderStyle Width="20px"/>
                                </telerik:GridButtonColumn>                
                            </Columns>
                            <EditFormSettings EditFormType="Template">
                                <FormTemplate>
                                    <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" style="border-collapse: collapse;background:white;">
                                        <tr>
                                            <td colspan="2" style="font-size: small"><b>Contact Details</b></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0">
                                                <tr>
                                                    <td>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Phone Number</td>
                                                    <td><asp:TextBox ID="txtContactValue" runat="server" Text='<%# Bind( "ContactValue" ) %>'/></td>
                                                </tr>
                                                <tr>
                                                    <td>Phone Type</td>
                                                    <td>
                                                        <asp:DropDownList   ID="ddlPhoneType"
                                                                            DataSourceID="odsContactSubTypes"
                                                                            DataTextField="Description"
                                                                            DataValueField="ContactSubtypeID"
                                                                            runat="server"
                                                                            AutoPostBack="true"
                                                                            ShowToggleImage="True"
                                                                            Width="150px">
                                                        </asp:DropDownList>                                                                    
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Is Primary</td>
                                                    <td><asp:CheckBox ID="chkIsPrimary" runat="server"/></td>
                                                </tr>
                                                <tr>
                                                    <td>Describe Other</td>
                                                    <td><asp:TextBox ID="txtContactDescription" runat="server" Visible="false"/></td>
                                                </tr>                                       
                                                <tr>
                                                    <td align="right" colspan="2">
                                                        <asp:Button ID="btnUpdate"
                                                                    Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                                    runat="server"
                                                                    CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                                        </asp:Button>&nbsp;
                                                        <asp:Button ID="btnCancel"
                                                                    Text="Cancel"
                                                                    runat="server"
                                                                    CausesValidation="False"
                                                                    CommandName="Cancel">
                                                        </asp:Button>
                                                    </td>
                                                </tr>
                                            </table>
                                    </FormTemplate>
                            </EditFormSettings>               
                        </MasterTableView>
                    </telerik:RadGrid>

Here ia the cide behind

    protected void rgContactNumber_ItemCommand(object sender, GridCommandEventArgs e)
    {
        try
        {
            if (e.CommandName == RadGrid.InitInsertCommandName)
            {
                odsContactSubTypes.DataBind();
            }

            if (e.CommandName == RadGrid.PerformInsertCommandName)
            {
                Contact _contact = new Contact();
                ObjectManager.InitializeObject<Contact>(ref _contact);
                if (this.ContactList_CP == null)
                {
                    m_ContactList = CollateralPartyBLO.GetContactsByCustomer(this.CustomerID_CP);
                }
                GridEditableItem editedItem = e.Item as GridEditableItem;

                e.Canceled = true;
                rgContactNumber.MasterTableView.IsItemInserted = false;
                _contact.ContactValue = (editedItem.FindControl("txtContactValue") as TextBox).Text;
                _contact.ContactType = CollateralPartyBLO.GetContactTypeById(1);
                //_contact.ContactSubtype.ContactSubtypeID = (editedItem.FindControl("ddlPhoneType") as DropDownList).SelectedIndex;
                _contact.ContactSubtype = CollateralPartyBLO.GetContactSubTypeById(1);
                m_ContactList.Add(_contact);
                rgContactNumber.DataSource = m_ContactList;
                rgContactNumber.Rebind();

            }

            if (e.CommandName == RadGrid.EditCommandName)
            {
                GridDataItem item = (GridDataItem)e.Item;
                this.ContactID_Edit = GetIdFromEventArgs(e, "ContactID");
            }

            if (e.CommandName == RadGrid.UpdateCommandName)
            {
                Contact _contact = CollateralPartyBLO.GetContactById(this.ContactID_Edit);

                GridEditableItem editedItem = e.Item as GridEditableItem;

                e.Canceled = true;
                int _index = this.ContactList_CP.IndexOf(_contact);
                _contact.ContactValue = (editedItem.FindControl("txtContactValue") as TextBox).Text;
                _contact.ContactType = CollateralPartyBLO.GetContactTypeById(1);
                //_contact.ContactSubtype.ContactSubtypeID = (editedItem.FindControl("ddlPhoneType") as DropDownList).SelectedIndex;
                _contact.ContactSubtype = CollateralPartyBLO.GetContactSubTypeById(1);
                this.ContactList_CP[0] = _contact;
                rgContactNumber.DataSource = this.ContactList_CP;
                rgContactNumber.Rebind();
            }
        }

        catch (Exception ex)
        {
            string str = ex.Message;
        }
    }

Rugada
Top achievements
Rank 1
 answered on 27 Sep 2013
1 answer
94 views
I am experiencing users posting double entries in the radgrids. Is there any autocomplete feature available in radgrids? Any suggestion to avoid double values in columns?
thanks
felice
Maria Ilieva
Telerik team
 answered on 27 Sep 2013
1 answer
52 views
Hello,

We have a SharePoint 2010 installation with RadEditor 6.1.2.0 version. In our aspx we have code 


<telerik:RadHtmlField id="name1" FieldName="HTMLContent1" DisplayHeight="200" DisplayWidth="926" runat="server"></telerik:RadHtmlField>

Whenever we edit the field and add a line break (<br>), we save and re-edit and the field, the more br tags get added. Everytime we save and edit, there are more br added. Also many nbsp-s are added.

We are unable to find a solution for this, any help appreciated.

Environment:

SharePoint 2010, December 2012 CU
Telerik RadEditor 6.1.2.0
Telerik.Web.UI - 2010.3.1317.35
Telerik.Ajax.SharePoint: 2010.3.1109.35
Ianko
Telerik team
 answered on 27 Sep 2013
7 answers
148 views
I'm currently using the <AdvancedEditTemplate> and <AdvancedInsertTemplate> for my appointment entry, this has been working with out any problems, however I would now like to add the Recurrence option to the form.

I've been looking at the  RadSchedulerRecurrenceEditor and added this inside my template.  This displays with out any problems, however it does not insert any recurrence appointments in the database. Do i have to add any other settings, I've seen the example which uses another usercontrol for the advanceform. I don't really want to have to change everything to fit this in, is there away to add this functionality in the templates? 

thanks
Karl
Top achievements
Rank 1
 answered on 27 Sep 2013
1 answer
128 views

Hi,
How to customize the text of no record template of a radgrid.

Thanks,
Dawson
Princy
Top achievements
Rank 2
 answered on 27 Sep 2013
1 answer
108 views
Hi,

I have come across a strange behavior with RadAsyncUpload control in Internet Explorer 9 (version: 9.0.8112.16421). I am disabling the control while a file is being uploaded from client side and once the client upload is completed I am enabling the RadAsyncUpload control. The issue is, the control is disabled while I am uploading a large file but one can click in between the small space between the RadAsyncUpload's fake input and Select button in IE browser and the File Select dialog pop up and from there I can select any file and the AsyncUpload is enabled some how. After all the client upload operation is completed, if I click the Remove button, the file is deleted and a new File Input like the original one is rendered there.

Here is the code I tried.

ASPX:
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" OnClientFileSelected="OnClientFileSelected"
    OnClientFileUploaded="OnClientFileUploaded" TargetFolder="~/Images/Img/" AllowedFileExtensions=".jpg,.zip"
    MaxFileSize="579371152" MultipleFileSelection="Automatic" UploadedFilesRendering="BelowFileInput">
</telerik:RadAsyncUpload>

JavaScript:
<script type="text/javascript">
    function OnClientFileSelected(sender, args) {
        sender.set_enabled(false);
    }
    function OnClientFileUploaded(sender, args) {
        sender.set_enabled(true);
    }
</script>

I took a sample video of this strange behavior and you can find it here.

Thanks,
Shinu.
Hristo Valyavicharski
Telerik team
 answered on 27 Sep 2013
1 answer
136 views
Hi,

I am creating two listboxes and want to incorporate drag and drop properties.  Both listboxes are populated using a database.  When I am transfering the items from one textbox to another I am trying to update the database, however I am unable to get the productID or value.

My question is how do i retrieve a value from a list box item?

ASP 4.0
Visual Studio 2012
VB.net

Thanks for the help.

Chad-
Princy
Top achievements
Rank 2
 answered on 27 Sep 2013
5 answers
143 views
Hi,

Is there any way to set special days through Javascript? Something like a set_specialDaysArray method? I tried but couldn't get it to work.

Also, in order to add a client-side event handler to the OnDayRender event, isn't it just a matter of putting:

<ClientEvents OnDayRender="RenderADay" />

Doesn't seem to work, it doesn't trigger the event.

Thanks in advance.

Regards,
Nuno
Kostadin
Telerik team
 answered on 27 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?