Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
67 views
Hi,

i want to know how can Rad filter generated Raddatetimepicker can be validated for proper date.


and how can message be shown for entering proper date in the Raddatetimepicker.

please reply me soon.
bharat veer
Top achievements
Rank 1
 asked on 09 Sep 2011
2 answers
248 views
Hi All,
            in my application i have
one checkbox,
one button &
one RadCombobox

when we check the Checkbox & click on button ,the RadcomboBox's visible property will set to false.

& when we uncheck the Checkbox & click on button ,the RadcomboBox's visible property will set to true.

i.e radComboBox keeps appearing & dissappearing.

in this scenario i am getting the following error,

the target 'xyz' for the callback could not be found or did not implement IcallbackEventHandler.

please help me to solve this.

Thanks in advance.
Amit
Top achievements
Rank 1
 answered on 09 Sep 2011
4 answers
216 views
I am new to asp.net programming and our team is using the latest version of telerik for our web application.
 I would like to replace the ImageUrl attribute with Telerik.Web.UI.Skins.Forest.Dock.CommandSprite.gif contained in the telerik.web.ui.dll or telerik.web.ui.skins.dll.

<asp:Image ID="dockImg" runat="server" ImageUrl="~/images/imagesCANAFTWP.jpg"  onclick="dock()"  style="cursor:pointer"/>

What is the correct way of referencing the imageUrl in the above line of markup to use?

How do I reference the active/inactive part of the image in prticular the middle set?

is there a base image to let the skinmanager "invoke" the correct color icon?

Thanks,
Michael
Michael
Top achievements
Rank 2
 answered on 09 Sep 2011
3 answers
122 views
hello,

my pages use the RadAjaxLoadingPanel, which is cool.

however, when CSS is disabled for my pages, i think it is a bug for the animated loading-gif to visible 100% of the time at the page's bottom. 

the animated loading-gif should only be visible on the area using it, while its actively being used (based on user event).

similarly, it should not render "Loading..." at the bottom of the page all the time on text-only browsers, such as Linq.


telerik, can you address?

thanks!
matt
Jack
Top achievements
Rank 1
 answered on 09 Sep 2011
3 answers
189 views
I have deployed an application to a live server that is running Windows 2008R2 /64bit with IIS7. The application is installed into a virtual application directory. For deployment, I copied the Telerik.Web.UI.dll in the bin directory.

When the webform that contains date selector boxes and list box is generated, the javascript and icons do not load.  The form shows a link that says open the calendar popup where the calendar button should display.

I am using Q2 2010 SP2
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 09 Sep 2011
1 answer
125 views
Just wanted to have a discussion on the formats of the exception rule dates.
Just had a discussion about the meaning of the Z character when used within a time stamp. 

The literal "Z" is actually part of the ISO 8601 datetime standard for UTC times. When "Z" (Zulu) is tacked on the end of a time, it indicates that that time is UTC.

The dates in the exception rule section of the recurrence rule string seem to always contain the Z character indication that the time stamp is in UTC, which I`m seeing is not always accurate. I find that the date time in the exception rule is actually stored in the time zone of the machine that saved the appointment.

Can anyone at telerik comment on this at all?
Would you say that is correct from your perspective? Was this intentional?

regards,
Plamen
Telerik team
 answered on 09 Sep 2011
1 answer
52 views
Hi,

- I am using version 2011.1.519.35 of your ASP.NET for AJAX controls.
- I am using the Treeview with a NodeTemplate.
- In the NodeTemplate I am displaying two things:

  1. Text in an ASP Label
  2. A LinkButton that allows users to navigate to other pages in the web app.  Note that my LinkButton has NO Text Property.

I also use the OnClientNodeClicked event.  When a user clicks on the node, the javascript function executes a RadAjaxManager.ajaxRequest to load other information on the page.

I do want to run the OnClientNodeClicked javascript function when the user clicks on the Node's Text and that works.

I do NOT want to run the OnClientNodeClicked javascript function when the user clicks on the LinkButton in my NodeTemplate.

IMPORTANT:  When my LinkButton has a value set in it's Text Property, I can click on the text of the LinkButton and it does NOT run the OnClientNodeClicked

MY PROBLEM:
But when my LinkButton as NO Text property (I want to only display an image, no text) and when I click on the Image for the LinkButton, the OnClientNodeClicked function is running.

Since my LinkButton's purpose is simply to navigate the user to another page in my web app, I want to NOT run OnClientNodeClicked when they click the image because as I mentioned, it does an ajaxRequest to that same page and updates another user control there.  That is a postback I don't want since I just want to navigate to another page.

Instead of a LinkButton, I've also tried using an asp:Hyperlink control and an asp:Literal with an <a href...> that I build in server-side code.

QUESTION:
So how I can either determine that the Image in the LinkButton was clicked in the OnClientNodeClicked function and then cancel / exit that client event, or how can I set up my NodeTemplate so that the Image in the LinkButton does not fire the OnClientNodeClicked function in the first place?

My treeview is as simple as this:

 

 

<telerik:RadTreeView ID="SavedReportsTreeView" runat="server" Width="100%" Height="500px" SkinID="cbsTreeView"
   OnClientNodeClicked="ClientNodeClicked"
   OnClientNodeExpanding="ModifyCookieOnExpand"
   OnClientNodeCollapsing="ModifyCookieOnCollapse" >
     <NodeTemplate
          <asp:Label ID="Label1" isText="true" runat="server" Text='<%# DataBinder.Eval(Container, "Text") %>' /> 
          <asp:LinkButton ID="runReportLinkButton" runat="server" Text="" >
               <asp:Image ID="runReportInfoImage" style="padding-left: 5px;" runat="server" ImageUrl="~/img/icons/report_go.png" />
          </asp:LinkButton>
     </NodeTemplate>
</telerik:RadTreeView>

  

Thanks,
Michael

Michael Hunt
Top achievements
Rank 1
 answered on 09 Sep 2011
1 answer
114 views
I'm using RadAsyncUploader (latest version of course) to upload multiple images to a page.

However, i'm getting FielNotFoundException in the FileUploaded event all the time and
after some investigation i can see that the file is uploaded ~App_Data/RadUploadTemp with a random generated name.
Later when the program steps into the FileUploaded event it tries to find a file with another  generated name.

What makes this a bit more complicated is that sometimes the filename it tries to access is the uploaded one.

Can you assist me with this issue?

Helen
Telerik team
 answered on 09 Sep 2011
5 answers
241 views
Hi, I have master child grid and export functionality in both parent as well as child grid. 
I do data binding in code behind. Export from the parent grid works fine but when user clicks on Export to Excel in child grid, it throws following exception.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review 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.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.Grid.Export.TableViewExporter.ExcelExportRenderForm(HtmlTextWriter nullWriter, Control form) +878
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +8756077
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +31
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   Telerik.Web.UI.Grid.Export.TableViewExporter.ExcelExportRenderPage(HtmlTextWriter nullWriter, Control page) +92
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060

My ASPX template is:
       <telerik:RadGrid ID="RGModels" runat="server" Width="100%" ShowStatusBar="true" AutoGenerateColumns="false"
               PageSize="10" AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True"
                    AllowAutomaticInserts="false" OnInsertCommand="RGModels_InsertCommand" Visible="true">
                    <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                    <MasterTableView Width="100%" Name="Models" DataKeyNames="ID" AllowAutomaticInserts="false"
                        AllowMultiColumnSorting="True" AutoGenerateColumns="false" HierarchyLoadMode="ServerOnDemand"
                        CommandItemDisplay="Top" EditMode="PopUp">
                        <CommandItemSettings AddNewRecordText="New business model" ShowExportToExcelButton="true" />
                        <EditFormSettings InsertCaption="Add new business model" UserControlName="Templates\DeplObjectCreate.ascx"
                            EditFormType="WebUserControl">
                        </EditFormSettings>
                        <DetailTables>
                            <telerik:GridTableView DataKeyNames="ID" Name="Sets" Width="100%" CommandItemDisplay="Top"
                                EditMode="PopUp">
                                <CommandItemSettings AddNewRecordText="New business (release) set" ShowExportToExcelButton="true" />
                                <EditFormSettings InsertCaption="Add new business (release) set" UserControlName="Templates\DeplObjectCreate.ascx"
                                    EditFormType="WebUserControl">
                                </EditFormSettings>
                                <CommandItemStyle ForeColor="Yellow" />
                                <Columns>
                                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" HeaderStyle-Width="20%"
                                        ItemStyle-HorizontalAlign="Left" />
                                    <telerik:GridBoundColumn DataField="Description" HeaderText="Description" HeaderStyle-Width="30%"
                                        ItemStyle-HorizontalAlign="Left" />
                                    <telerik:GridBoundColumn DataField="ShortName" HeaderText="Short name" HeaderStyle-Width="15%"
                                        ItemStyle-HorizontalAlign="Left" />
                                    <telerik:GridBoundColumn DataField="StateName" SortExpression="StateName" ReadOnly="True"
                                        HeaderText="<%$ Resources:WebResource, State %>">
                                        <HeaderStyle HorizontalAlign="Center" Width="10%" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="BeginDate" HeaderText="Begin date" DataFormatString="{0:dd-MMM-yyyy}">
                                        <HeaderStyle HorizontalAlign="Center" Width="10%" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="EndDate" HeaderText="End date" DataFormatString="{0:dd-MMM-yyyy}">
                                        <HeaderStyle HorizontalAlign="Center" Width="10%" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="ID" HeaderText="ID" HeaderStyle-Width="2%" ItemStyle-HorizontalAlign="Left" UniqueName="ID" />
                                    <telerik:GridBoundColumn DataField="ModelID" HeaderText="MID" HeaderStyle-Width="2%"
                                        ItemStyle-HorizontalAlign="Left" UniqueName="MID" />
                                    <telerik:GridTemplateColumn HeaderText="Account" UniqueName="ColumnRGModelsAccounts" >
                                        <ItemTemplate>
                                            <asp:ImageButton ID="LnkAccount" runat="server" Tooltip="Change deployment set parameters"
                                                     PostBackUrl='<%# "~/DeplAccounts.aspx?ProjectID=" & DataBinder.Eval (Container.DataItem,"DeploymentID").tostring & _   
                                                        "&ModelID=" & DataBinder.Eval(Container.DataItem,"ModelID").tostring & _
                                                        "&SetID=" & DataBinder.Eval(Container.DataItem,"ID").tostring %>'
                                                ImageUrl="./App_Themes/UP/bAccount.gif" meta:resourcekey="LnkEditResource1" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Review" UniqueName="ColumnRGModelsReview" >
                                        <ItemTemplate>
                                            <asp:ImageButton ID="LnkReview" runat="server" Tooltip="Review generated requests"
                                                     PostBackUrl='<%# "~/DeplReview.aspx?ProjectID=" & DataBinder.Eval (Container.DataItem,"DeploymentID").tostring & _   
                                                        "&ModelID=" & DataBinder.Eval(Container.DataItem,"ModelID").tostring & _
                                                        "&SetID=" & DataBinder.Eval(Container.DataItem,"ID").tostring %>'
                                                ImageUrl="./App_Themes/UP/bReview.gif" meta:resourcekey="LnkEditResource1" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Approve" UniqueName="ColumnRGModelsApprove" >
                                        <ItemTemplate>
                                            <asp:ImageButton ID="LnkApprove" runat="server" Tooltip="Approve changed requests"
                                                     PostBackUrl='<%# "~/DeplApprove.aspx?ProjectID=" & DataBinder.Eval (Container.DataItem,"DeploymentID").tostring & _   
                                                        "&ModelID=" & DataBinder.Eval(Container.DataItem,"ModelID").tostring & _
                                                        "&SetID=" & DataBinder.Eval(Container.DataItem,"ID").tostring %>'
                                                ImageUrl="./App_Themes/UP/Approve.gif" meta:resourcekey="LnkEditResource1" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Change" >
                                        <ItemTemplate>
                                            <asp:ImageButton ID="LnkEdit" runat="server" Tooltip="Change deployment set parameters"
                                                PostBackUrl='<%# DataBinder.Eval(Container, "DataItem.ID", "~/DeplBUSetDetails.aspx?ID={0}") %>'
                                                ImageUrl="./App_Themes/UP/Edit.gif" meta:resourcekey="LnkEditResource1" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Remove" meta:resourcekey="TemplateFieldResource2">
                                        <ItemTemplate>
                                            <asp:ImageButton ID="LnkRemove" runat="server" Visible="True" OnClientClick='<%# "DeplSetRemoveBtn(this,""" + DataBinder.Eval(Container.DataItem, "ID").ToString +  """, " + Westwind.Utilities.WebUtils.EncodeJsString(DataBinder.Eval(Container.DataItem, "Name")) +  "); return false;" %>'
                                                AlternateText="Remove deployment model" ToolTip="Assigned requests will be 'orphaned'"
                                                ImageUrl="./App_Themes/UP/bCut.gif" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </telerik:GridTableView>
                        </DetailTables>
                        <Columns>
                            <telerik:GridBoundColumn DataField="Name" HeaderText="Name" HeaderStyle-Width="20%"
                                ItemStyle-HorizontalAlign="Left" />
                            <telerik:GridBoundColumn DataField="Description" HeaderText="Description" HeaderStyle-Width="30%"
                                ItemStyle-HorizontalAlign="Left" />
                            <telerik:GridBoundColumn DataField="ShortName" HeaderText="Short name" HeaderStyle-Width="15%"
                                ItemStyle-HorizontalAlign="Left" />
                            <telerik:GridBoundColumn DataField="StateName" SortExpression="StateName" ReadOnly="True"
                                HeaderText="<%$ Resources:WebResource, State %>">
                                <HeaderStyle HorizontalAlign="Center" Width="10%" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="BeginDate" HeaderText="Begin date" DataFormatString="{0:dd-MMM-yyyy}">
                                <HeaderStyle HorizontalAlign="Center" Width="10%" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="EndDate" HeaderText="End date" DataFormatString="{0:dd-MMM-yyyy}">
                                <HeaderStyle HorizontalAlign="Center" Width="10%" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ID" HeaderText="ID" HeaderStyle-Width="2%" ItemStyle-HorizontalAlign="Left" UniqueName="ID" />
                            <telerik:GridBoundColumn DataField="DeplID" HeaderText="DID" HeaderStyle-Width="2%"
                                ItemStyle-HorizontalAlign="Left"  UniqueName="DID" />
                            <telerik:GridTemplateColumn HeaderText="Change" meta:resourcekey="TemplateField">
                                <ItemTemplate>
                                    <asp:ImageButton ID="LnkEdit" runat="server" AlternateText="Change deployment model parameters"
                                        PostBackUrl='<%# DataBinder.Eval(Container, "DataItem.ID", "~/DeplBUModelDetails.aspx?ID={0}") %>'
                                        ImageUrl="./App_Themes/UP/Edit.gif" meta:resourcekey="LnkEditResource1" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="5%" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Remove" meta:resourcekey="TemplateFieldResource2">
                                <ItemTemplate>
                                    <asp:ImageButton ID="LnkRemove" runat="server" Visible="True" OnClientClick='<%# "DeplModelRemoveBtn(this,""" + DataBinder.Eval(Container.DataItem, "ID").ToString +  """, " + Westwind.Utilities.WebUtils.EncodeJsString(DataBinder.Eval(Container.DataItem, "Name")) +  "); return false;" %>'
                                        AlternateText="Remove business model" ToolTip="Will also remove sibling business sets"
                                        ImageUrl="./App_Themes/UP/bCut.gif" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="5%" />
                            </telerik:GridTemplateColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>

code behind:
 Private Sub RGModels_ItemCreated(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles RGModels.ItemCreated


            '   4 build-in export buttons
            'ExportToExcelButton()
            'ExportToWordButton()
            'ExportToPdfButton()
            'ExportToCsvButton()


            If TypeOf e.Item Is GridCommandItem Then
                Dim ExportToExcelButton As Button = TryCast(TryCast(e.Item, GridCommandItem).FindControl("ExportToExcelButton"), Button)
                If Not ExportToExcelButton Is Nothing Then ScriptManager.GetCurrent(Me.Page).RegisterPostBackControl(ExportToExcelButton)
                Dim ExportToWordButton As Button = TryCast(TryCast(e.Item, GridCommandItem).FindControl("ExportToWordButton"), Button)
                If Not ExportToWordButton Is Nothing Then ScriptManager.GetCurrent(Me.Page).RegisterPostBackControl(ExportToWordButton)
                Dim ExportToPdfButton As Button = TryCast(TryCast(e.Item, GridCommandItem).FindControl("ExportToPdfButton"), Button)
                If Not ExportToPdfButton Is Nothing Then ScriptManager.GetCurrent(Me.Page).RegisterPostBackControl(ExportToPdfButton)
                Dim ExportToCsvButton As Button = TryCast(TryCast(e.Item, GridCommandItem).FindControl("ExportToCsvButton"), Button)
                If Not ExportToCsvButton Is Nothing Then ScriptManager.GetCurrent(Me.Page).RegisterPostBackControl(ExportToCsvButton)
            End If
        End Sub


        Private Sub RGModels_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles RGModels.ItemCommand
            If e.CommandName = Telerik.Web.UI.RadGrid.ExportToExcelCommandName OrElse e.CommandName = Telerik.Web.UI.RadGrid.ExportToWordCommandName OrElse e.CommandName = Telerik.Web.UI.RadGrid.ExportToCsvCommandName Then
                sender.ExportSettings.ExportOnlyData = True
                sender.ExportSettings.IgnorePaging = True
                sender.ExportSettings.OpenInNewWindow = True
                sender.ExportSettings.HideStructureColumns = True
                sender.MasterTableView.HierarchyDefaultExpanded = True
                sender.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML
                Select Case e.CommandName
                    Case "ExportToExcel"
                        sender.MasterTableView.ExportToExcel()
                    Case "ExportToWord"
                        sender.MasterTableView.ExportToWord()
                End Select
            End If
        End Sub
Daniel
Telerik team
 answered on 09 Sep 2011
1 answer
132 views
Hi,

Not sure if this is the correct forum for this sort of question, but here goes:

I have a login page that uses the FormsAuthentication logic to secure the website. It is set up to disallow any access when you are not logged in (other than the login page).

That means literally every file is inaccessible, including .css files and images. Those I need on the login page, I have set up as exceptions, using the <location path="css/login.css"> setting in web.config.

Now, apparently the site's Telerik skin is not active either, so I assume I need to set it as an exception as well, but since all of that is stored within the Telerik dll, I don't know how to allow it.

Any ideas?

Kristof
Helen
Telerik team
 answered on 09 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?