Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
Hi,
I want to update the db with null value if the user leaves a column value empty. How to obtain this? During edit and update i want to convert empty data to null.
Princy
Top achievements
Rank 2
 answered on 26 Nov 2013
2 answers
313 views
Hello

Current Scenario: Currently we are generating html select (dropdown) from code behind using string builder and adding the generated HTML into literal control - which will display the HTML. Below is the code snippet.

html.Append("<select name=test id=test class='xyz' onchange=\"changeDD(this);\" >");
html.Append("<option value='1'>xyz</option>");

We have number of controls being rendered dynamically based on customer settings. Now, We are trying to replace this html select (dropdown) with Telerik RadDropdownlist.

Please suggest the approach or provide your inputs to achieve this kind of HTML rendering from code behind. Also we have JS written for some of the controls.

Please let me know if you need more details.
Kalpesh
Top achievements
Rank 1
 answered on 26 Nov 2013
1 answer
54 views
Hi,

is use the RadScheduler and try to set Language to German! Without any success. I follow the documentation and tried to copy
your Localization-Example which is installed on my local machine.

First I created the "App_GlobalResources" Folder in my root path. Secons I copied the resx files from the local folder.
And a least I chaned the Culture-Property to "de-DE". But the Schduler still shows me "today, DAY, WEEK, ...).

What is to do, to get this solved?

thanks
Best Regards
Rene
ITA
Top achievements
Rank 1
 answered on 26 Nov 2013
3 answers
68 views
Hello,

I have this mark up in my code.   

<tlrk:RadEditor ID="D0_RadArticle" runat ="server" Width="680px" Height="376px"
   ToolsFile="~/XML/Editor/HelpEditor.xml"   ImageManager-ViewPaths="~/Images/Help"
   AnchorPathToStrip="ihs201"  StripAbsoluteAnchorPaths="true" />

The client is able to select an image and store it to the database.  The link that is stored is <img alt="" src="/ihs201/Images/Help/Editor/underline.jpg" />.  This is fine when I am in my development server.  But when  I deploy my web pages to a different server I do not want the "/ihs201" in my link.  If the virtual directory name is different then "ihs201" then the images link breaks.  I would rather my link was <img alt="" src="../Images/Help/Editor/underline.jpg" /> .  This link would enable me to access the image in other server with different name.  How do I achieve something like that.

Thank you,
Kalyani

Ianko
Telerik team
 answered on 26 Nov 2013
3 answers
56 views
Hi,

I have a decorated DropDownList, and when clicking it , it fires onbeforeunload though no item is selected yet.This is happening in IE while chrome works fine. Any idea on how to stop this as I am using form confirmation for saving changes before leaving the page.

Environment:
VS 2012
ASP.NET 4.5
Telerik Ajax Controls Q3 2012

Thanks

Madani
Niko
Telerik team
 answered on 26 Nov 2013
1 answer
89 views
Hi,
I have a two Radgrid in my aspx page.Based on search criteria I display either one and also it could  display both of them.Default page size is 10.When I display both RadGrid I need to change to page size 5.
I have two different method when either Radgrid Binding set page size to 10 and the other method when both RadGrid must display set page size to 5.
But when I run application it gives me  uknown server error - 500.
when I remove page size application working fine.

Please help me.
thanks,
Vitaly. 
Kostadin
Telerik team
 answered on 26 Nov 2013
1 answer
157 views
I am not sure which control this error should be mapped to.
I have an asp.net wizard and the wizard pages come from user controls. On some of those pages I have a radgrid.
On one of the page I have a chart and the next page after that is the one that has radgrid. I get the error Microsoft jscript runtime error Parameter name: panelsCreated[0] and the chart does not load for me. If I use asp.net grid instead of radgrid on that page then everything works fine.

Below is the ascx page that has the radgrid.
<%@ Control Language="c#" Inherits="ucBBucket" CodeFile="ucBBucket.ascx.cs" %>
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
</asp:ScriptManagerProxy>
<telerik:RadAjaxManagerProxy ID="RadAJAXManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rgBene">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rgBene" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>
            <telerik:RadGrid ID="rgBene" runat="server" GridLines="Vertical" AllowPaging="true"
                AllowAutomaticUpdates="false" AllowAutomaticInserts="false" AutoGenerateColumns="False"
                EnableLinqExpressions="false" AllowSorting="true" AllowAutomaticDeletes="false"
                Skin="MBen" EnableEmbeddedSkins="false" DataSourceID="_dataSrcBene"
                ShowFooter="true" AllowCustomPaging="false" AllowFilteringByColumn="false" Width="100%"
                PageSize="15" ImagesPath="../App_Themes/Grid">
                <MasterTableView TableLayout="Fixed" HierarchyDefaultExpanded="true" EditMode="PopUp"
                    CommandItemDisplay="None" DataKeyNames="" PagerStyle-Position="Bottom">
                    <Columns>
                        <telerik:GridBoundColumn DataField="Type" UniqueName="Type"
                            HeaderText="Type" HeaderStyle-Width="25%" SortExpression="Type" />
                        <telerik:GridBoundColumn DataField="Percent" UniqueName="Percent"
                            HeaderText="Percentage" SortExpression="Percent" HeaderStyle-Width="10%" />
                        <telerik:GridBoundColumn DataField="Bene" UniqueName="Bene" HeaderText="Bene"
                            SortExpression="Bene" />
                        <telerik:GridBoundColumn DataField="Relationship" UniqueName="Relationship"
                            HeaderText="Relationship" SortExpression="Relationship" HeaderStyle-Width="12%" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
          </td>
    </tr>
</table>
<asp:ObjectDataSource ID="_dataSrcBene" runat="server" SelectMethod="ListByParticipant"
    OnSelected="_dataSrcBene_Selected" >
    <SelectParameters>
        <asp:ProfileParameter Name="ParticipantID" PropertyName="ParticipantID" DefaultValue="-1"
            Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>

Please advice.
Konstantin Dikov
Telerik team
 answered on 26 Nov 2013
1 answer
98 views
Hello,

I´ve a Radgrid with GridBinaryImageColumn workin in batch edit mode.

In the BatchEditCommand, I am not able to get the binary value of the image and I can not upload control access to try to get it.

I've tried to make using the properties UploadControlType Async and normal

Can you upload an example of how you solve this problem?

Thank you very much.

Regards

Angel Petrov
Telerik team
 answered on 26 Nov 2013
1 answer
41 views
Hi folks.

I have a treelist control on my page where I load the items dynamicaly. At each section I'd like to have aggregated sums at the bottom. I thing I have all set correctly regarding online demos but the result footer are all empty.

I use this code:

     <telerik:RadTreeList ID="rtlData" AllowLoadOnDemand="true" runat="server" AutoGenerateColumns="false"
         OnChildItemsDataBind="RadTreeList_ChildItemsDataBind" OnNeedDataSource="RadTreeList_NeedDataSource"
          DataKeyNames="CssClass,ParentId" ParentDataKeyNames="CssClass,ParentId" OnItemCreated="RadTreeList_ItemCreated"
         OnItemDataBound="RadTreeList_ItemDataBound" ShowFooter="true">
          <Columns>
               <telerik:TreeListBoundColumn DataField="ProductCatL3" UniqueName="ProductCatL3" HeaderText="Produkt L3">
               </telerik:TreeListBoundColumn>
               <telerik:TreeListBoundColumn DataField="ProductCatL2" UniqueName="ProductCatL2" HeaderText="Produkt L2">
               </telerik:TreeListBoundColumn>
               <telerik:TreeListBoundColumn DataField="ProductCatL1" UniqueName="ProductCatL1" HeaderText="Produkt L1">
               </telerik:TreeListBoundColumn>
               <telerik:TreeListBoundColumn DataField="State" UniqueName="State" HeaderText="Stav" DataType="System.Decimal" DataFormatString="{0:C2}" Aggregate="Sum">
               </telerik:TreeListBoundColumn>
               <telerik:TreeListBoundColumn DataField="Avg1Month" UniqueName="Avg1Month" HeaderText="PrůmÄ›r 1 mÄ›síc" DataFormatString="{0:C2}" Aggregate="Avg">
               </telerik:TreeListBoundColumn>
               <telerik:TreeListBoundColumn DataField="Avg3Months" UniqueName="Avg3Months" HeaderText="PrůmÄ›r 3 mÄ›síce" DataFormatString="{0:C2}" Aggregate="Avg">
               </telerik:TreeListBoundColumn>
               <telerik:TreeListBoundColumn DataField="ApprovedLimit" UniqueName="ApprovedLimit" HeaderText="Schválený limit" DataFormatString="{0:C2}" Aggregate="Sum">
               </telerik:TreeListBoundColumn>
               <telerik:TreeListBoundColumn DataField="CssClass" UniqueName="Css" HeaderText="CSS" Visible="false">
               </telerik:TreeListBoundColumn>
               <telerik:TreeListBoundColumn DataField="ParentId" UniqueName="ParentId" HeaderText="ParentId" Visible="false">
               </telerik:TreeListBoundColumn>
          </Columns>
     </telerik:RadTreeList>

What am I doing wrong that no footer are calculated and it only shows empty fields?

Sincerely
Scarlaxx
Kostadin
Telerik team
 answered on 26 Nov 2013
1 answer
271 views
I'm trying to add a button to a grid that opens a "converted" pdf file in code behind.  Everything seems to be working as far as creating the bytes but nothing opens.

code: pdfFile does have results because I saved it locally just to make sure.  It just won't open.

Dim DocumentServiceWS As New DocumentServices

Dim pdfFile As Byte()

pdfFile = DocumentServiceWS.GetDRDocumentPDF(_PRO, _DocType)

 

If Not (pdfFile Is Nothing) Then

Response.Buffer = True

Response.Clear()

Response.ContentType = "application/PDF"

Response.AddHeader("Content-Disposition:", "attachment; filename=Result.pdf")

Response.BinaryWrite(pdfFile)

Response.Flush()

Response.End()

End If

 

 

 

Daniel
Telerik team
 answered on 26 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?