Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
129 views
I am having some trouble with radscriptblock when the parent control is hidden and shown again through an ajax postback.

JSTest.aspx.cs: http://pastebin.com/G4ZFB32z
JSTest.aspx: http://pastebin.com/YpQWidRC
MyControl.aspx.cs: http://pastebin.com/NfXrQGiL
MyControl.aspx: http://pastebin.com/DZkJeJzd

When I click "Hide", the panel and control inside it become hidden. When I click show, the control is shown, but I get the following javascript error: 
Uncaught TypeError: Cannot read property 'currentStyle' of undefined Telerik.Web.UI.WebResource.axd:6
Sys.UI.DomElement.getVisible Telerik.Web.UI.WebResource.axd:6
Sys.UI.DomElement.setVisible Telerik.Web.UI.WebResource.axd:6
Sys.UI.Control.set_visible Telerik.Web.UI.WebResource.axd:6
InstalledByCheckChanged JSTest.aspx:8
(anonymous function) JSTest.aspx:2
Martin
Telerik team
 answered on 20 Aug 2012
0 answers
74 views

Hello good morning,

We are using Telerik asp.net Ajax license version .dll.

I have an application where i am creating a gallery of images.

I am using some jquery media js to display the media gallery content which is basically swf files.

To display the list of images and media content i have used telerik rad listview and telerik grid.

But, i was unable set the ajax response as the RadAjaxmanager  and radajxmanagerproxy is not working with the postback.

Since the ajax thing is not working properly.

For further information look into the demo image.

As you can see in image,when i click on the green buttons that appear on the top paging control.

when i Click on the button and the page is getting postback on click so the ajax thing is not working.

I need to use some jquery plugins.So i tried as mentioned in the telerik website but was still not able to do it.

Also, in the case of the grid on the left side if i click on the keyword then also the ajax is not working.

I need to workout both the things with telerik and jquery plugins that i am using.

Also, if i use radajaxpanel instead of radajaxmanager, then the overlay image is not working properly.and also my jquery plugins don't seem to work..I need to use telerik as well the plugins.I have attached the image of the page from which the control on the right is the listview and the left hand control is the telerik grid. But as explained above i am unable to show overlay effect or ajax effect on post back.

please, Somebody could help me out with these thing.

 

Thanks,

            Priyank
Priyank
Top achievements
Rank 1
 asked on 20 Aug 2012
1 answer
55 views
http://demos.telerik.com/aspnet-ajax/tooltip/examples/loadondemand/defaultvb.aspx

There is no documented VB file for the file ProductDetails.ascx.  It only shows the code for the html part, not the code behind.  Am I overlooking something?
Marin Bratanov
Telerik team
 answered on 20 Aug 2012
6 answers
60 views
I'm trying to add a hyperlink and custom text to the AppointmentTemplate but getting a Javascript error. Here's the template markup:

<AppointmentTemplate>
    <div class="rsCustomAppointmentContainer">
        <a href="finance.aspx">
            <%# Eval("FinancialLink.Text")%></a>
        <div>
        </div>
    </div>
</AppointmentTemplate>
<ResourceTypes>
    <telerik:ResourceType KeyField="FinancialLogID" Name="FinancialLink" 
    TextField="FinancialLogNumber"
        ForeignKeyField="FinancialLogID" DataSourceID="EntityDataSource3" />
</ResourceTypes>

Here's the script error:

}var m=this.getAppointmentDomElement(n.eventMapTarget);
var j=this.getAppointmentFromDomElement(m);
var l=(j.get_allowDelete()!=null)?j.get_allowDelete():this.get_allowDelete();

Could someone pointing me in the right direction? Ideally, I want to build a hyperlink that includes query string parameters. The full Scheduler code is at the very end.

Thanks,

Ken


<telerik:RadScheduler ID="RadScheduler2" runat="server" DataEndField="DateEntered"
    DataKeyField="FinancialLogID" Height="558px" DataStartField="DateEntered" EnableEmbeddedSkins="true"
    EnableViewState="true" DataSourceID="EntityDataSource3" StartEditingInAdvancedForm="false"
    DataSubjectField="FinancialLogNumber" HoursPanelTimeFormat="htt" Skin="Web20"
    ValidationGroup="RadScheduler1" ShowFooter="true" SelectedView="MonthView" Width="670px"
    ShowFullTime="true" RowHeight="23px" AllowDelete="False" AllowInsert="False"
    Visible="False">
<AppointmentTemplate>
<div class="rsCustomAppointmentContainer">
<a href="finance.aspx">
<%# Eval("FinancialLink.Text")%></a>
<div>
</div>
</div>
</AppointmentTemplate>
<ResourceTypes>
<telerik:ResourceType KeyField="FinancialLogID" Name="FinancialLink" 
TextField="FinancialLogNumber"
ForeignKeyField="FinancialLogID" DataSourceID="EntityDataSource3" />
</ResourceTypes>
    <WeekView HeaderDateFormat="dd MMM yy" />
    <MonthView HeaderDateFormat="MMM yy" />
    <DayView HeaderDateFormat="dddd, MMM d, yy" />
    <TimelineView UserSelectable="false" />
</telerik:RadScheduler>
Peter
Telerik team
 answered on 20 Aug 2012
4 answers
265 views
Hi.  I have a page that contains a RadPanelBar - but within it, I'm trying to put in a RadGrid.  However, for whatever reason, the backend code doesn't recognize the grid inside the PanelBar (ItemTemplate).

Here is what I have.... Am I missing something?
<telerik:RadPanelBar ID="AccountPanels" runat="server" Width="100%" ExpandMode="FullExpandedItem">
    <Items>
        <telerik:RadPanelItem Text="Design History" runat="server" Expanded="True">
            <Items>
                <telerik:RadPanelItem runat="server" Value="OrderHistory">
                    <ItemTemplate>
                        <div style="height:350px; overflow-x:hidden; overflow-y:auto;">
                            <div style="width:97%;">
                                <div>
                                    <asp:Label ID="lblOpenItems" runat="server" Text="If you have any open unsaved items, they will show up in the grid below.  You can choose to edit, save and add to your cart.<br />Or you can choose to remove the item(s) permanently."></asp:Label><br /><br />
                                </div>
                                <asp:Panel ID="PnlOpenItems" runat="server">
                                    <telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server">
                                        <AjaxSettings>
                                            <telerik:AjaxSetting AjaxControlID="grdOpenItems">
                                                <UpdatedControls>
                                                    <telerik:AjaxUpdatedControl ControlID="grdOpenItems" />
                                                </UpdatedControls>
                                            </telerik:AjaxSetting>
                                        </AjaxSettings>
                                    </telerik:RadAjaxManagerProxy>
                                    <telerik:RadGrid ID="grdOpenItems" OnNeedDataSource="Item_NeedDataSource" OnItemDataBound="Item_ItemDataBound" runat="server" AutoGenerateColumns="false" AllowPaging="false">
                                        <ClientSettings>
                                            <Scrolling AllowScroll="True" ScrollHeight="150px" UseStaticHeaders="true" />
                                        </ClientSettings>
                                        <MasterTableView NoMasterRecordsText="You have no unsaved items at this time.">
                                            <Columns>
                                                <telerik:GridBoundColumn HeaderText="Customer ID" DataField="EntityContactNumber" Visible="false">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn HeaderText="Custom ID" DataField="CustomID">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn HeaderText="Item Number" DataField="ItemNumber">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn HeaderText="Template Name" DataField="FriendlyName">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn HeaderText="Date Created" DataField="DateAdded">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn HeaderText="DateModified" DataField="DateModified" Visible="False">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn HeaderText="CartId" DataField="CartId" Visible="False">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridButtonColumn UniqueName="btnEdit" HeaderText="Edit" DataTextField="ItemNumber">
                                                </telerik:GridButtonColumn>
                                                <telerik:GridButtonColumn UniqueName="btnDelete" HeaderText="Remove" DataTextField="CustomID">
                                                </telerik:GridButtonColumn>
                                            </Columns>
                                        </MasterTableView>
                                    </telerik:RadGrid>
                                </asp:Panel>
                            </div>
                        </div>
                    </ItemTemplate>
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
        <telerik:RadPanelItem Text="Previously Shipped Designs" Expanded="True" runat="server">
            <Items>
                <telerik:RadPanelItem runat="server" Value="MyProfile" Height="400px">
                    <ItemTemplate>
                        <telerik:RadAjaxPanel ID="ProfileAjax" runat="server">
                            <div style="height:350px;overflow-x:hidden;overflow-y:auto;">
                                <div style="width:97%;">
                                     
                                </div>
                            </div>
                            <asp:Panel ID="ProfileMessageHolder" runat="server" Visible="false" HorizontalAlign="Center">
                                <strong>Your profile has been saved</strong>
                            </asp:Panel>
                        </telerik:RadAjaxPanel>
                    </ItemTemplate>
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
    </Items>
</telerik:RadPanelBar>

Mark
Top achievements
Rank 1
 answered on 20 Aug 2012
3 answers
110 views
HI,

I am using the ExcelML format to export a grid and have a couple of questions regarding the formatting.
1.  How can apply a border to the header row.  I have looked at the following code that is in the documentation and added it to the

ExcelMLExportStylesCreated event but it gives me an error message Object reference not set to an instance of an object. on this line

- borderStyle.PositionType = DirectCast(i, PositionType)

Also I can't figure out how to apply the style to the header row.

Dim cstyle As New StyleElement("MyCustomStyle")
        Dim borders As New BorderStylesCollection()
        Dim borderStyle As BorderStyles
        For i As Integer = 1 To 4
            'four borders   
            borderStyle.PositionType = DirectCast(i, PositionType)
            borderStyle.Color = System.Drawing.Color.Black
            borderStyle.LineStyle = LineStyle.Continuous
            borderStyle.Weight = 1.0R
            borders.Add(borderStyle)
        Next
        For Each border As BorderStyles In borders
            cstyle.Borders.Add(border)
        Next
        e.Styles.Add(cstyle)

 

2.  How can I insert a row at the beginning of the output.  I have seen many examples on how to do this when using the HTML format but there are no examples when using the ExportML format.  The following can be used for the HTML format but there is no <body> tag in when you use the ExportML

Protected Sub rgSummaryReport_GridExporting(source As Object, e As Telerik.Web.UI.GridExportingArgs)

Dim title As String = If(_reportCriteria.AppIsFinalSubmitted, " Final-Submission Report", "Pre-Submission Report")

Dim strHeader As New StringBuilder("<h3><center>" + title + "</center></h3><br>")

strHeader.Append("<h5><b>Contract ID: " + Session("contract_id") + "<br>")

strHeader.Append("Contract Name: " + Session("contract_name") + "<br><br>")

strHeader.Append("Report data is valid as of " + lblReportTimestamp.Text + "</b></h5>")

e.ExportOutput = e.ExportOutput.Replace("<head>", "<head><style type=""text/css"">td {border: 0.1pt solid #000000;}</style>")

e.ExportOutput = e.ExportOutput.Replace("<body>", "<body>" + strHeader.ToString())

e.ExportOutput = e.ExportOutput.Replace("</body>", "Report Downloaded: " + DateTime.Now.ToString() + "</body>")

End Sub

  


Thank you for your help.

Tracy

Daniel
Telerik team
 answered on 20 Aug 2012
3 answers
101 views
Hi,

I'm evaluating RadComboBox for multi-column drop down support. The scenario is load on demand from webservice and allow users to add new items in the combo from client side.

I can see that there is sample available here but it is without using templates. Using grid inside RadComboBox will be very complex as I have to insert new items to the grid from client side which I'm not sure is possible or not.

How can I add new items to multi column RadCombox? If that is not possible please suggest any possible workarounds or other Telerik controls that can be used.

Regards,
Piyush




Kalina
Telerik team
 answered on 20 Aug 2012
1 answer
115 views
Hi,

I am using three related Rad comboboxes in my application. when i change value in any parent combo box then it causes so much time and shows Rad Ajax Loading panel .How i will improve the performance.

may be its possible that i m using trial version of Telerik Rad Ajax controls.......?
Any ideas? 

Thanks in advance...
Cat Cheshire
Top achievements
Rank 1
 answered on 20 Aug 2012
2 answers
76 views
Hi All,

I am new to Telerik - 1 day total experience.  I have a user control that contains only one control: RadGrid.
My control is in a form.  The form is in the main content of the site.master page.  

At design time, everything looks find.  At run time, the grid does not show up at all.  I tried everything, include setting the PageStyle.AlwaysVisible = true and setting the data source to empty object (.datasource = new object(){}).

What could be wrong?  

Thanks.
Andrey
Telerik team
 answered on 20 Aug 2012
10 answers
205 views
Is IE10 supported in newer versions? I am using Telerik.Web.UI.dll  v.2011.2.712.40 and lots of things arent working.

Thanks

Kevin
Helen
Telerik team
 answered on 20 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?