Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
Hi

I wanted to display dates on x axis and i visited on of forum post and implemented in the way which is defined in that post. The Post is here http://www.telerik.com/community/forums/aspnet-ajax/chart/show-date-value-on-x-axis.aspx .

In this post Admin has provided solution by Adding date range to Chart. Here is the the problem. Let me explain my scenario.

In my case i have to show the report chart based on date range (Min date and Max date) has been selected from the  filter page.It is fine if user will select a date range that is not too long, means if user will generate report for 10 to 15 days then the chart will show the result for 15 days starting from Minimum date to Maximum date. The problem is, when user will select a date range for one year then it will try to display all the dates in X-Axis and which shows dates which are not having any data.

So, is there any property by which i can Hide the date(s) which are not having any data ? and it will show only those dates which are having some values attached to it.

can anybody help me in this?

Thanks,
Vimal Panchal


Ves
Telerik team
 answered on 02 Jun 2010
4 answers
369 views

I have a radWindow with the following javascript code:

<script type="text/javascript">  
        //This code is used to provide a reference to the RadWindow "wrapper"  
        function GetRadWindow() {  
            var oWindow = null;  
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog  
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)  
            return oWindow;  
        }  
 
        function CloseOnReload(prmMsg) {  
            if (prmMsg.length > 0) {  
                alert(prmMsg);  
            }  
            GetRadWindow().Close();  
        }  
    </script> 

I have the following in my code-behind:

Dim closescript As String = "<script>CloseOnReload('" & strMsg & "')</" + "script>"  
        ScriptManager.RegisterStartupScript(Me.Page, Me.GetType(), "CloseOnReload", closescript, False) 

When I run this, I correctly get an alert message, followed by the page closing after the user hits the [OK] button.

I would like to show a radAlert instead of the normal javascript alert.  I have a radWindowManager on the page and I changed

alert(prmMsg);

to

radalert(prmMsg, null, null, 'My Title');

This is not working though.  How can I change my alert to be a radalert instead?

Thanks.

Steve

Steven Black
Top achievements
Rank 1
 answered on 02 Jun 2010
1 answer
108 views
Hello, for my latest assignment, I need to put linkbuttons above certain columns of my radgrid. In my viewpoint, this could best be done by adding these to the commanditem of the grid, but I run into 2 issues with this that I can't seem to find the solution for:

1) Is it possible to add linkbuttons dynamically to the commanditem of the radgrid in the code behind of the .aspx page it is on? I've seen and used examples where you can retreive existing linkbuttons in the itemCreated event by checking for CommandItems there, but with that option you can seemingly only edit the existing items, and not add new ones.

2) Is it possible for commanditems to be alligned to certain columns of the radgrid it belongs to? Since the page my radgrid is on can be resized, I can't just use static spaces to have a commandbutton above a certain column all the time.


Iana Tsolova
Telerik team
 answered on 02 Jun 2010
1 answer
678 views
I am having a problem with a RadListView.  I am binding the listview on the NeedDataSource event.  For some reason, the ItemDataBound event only fires every other item.  The listview is in an ItemTemplate of a RadPanelBar.  I am attaching these 2 events at runtime.

        <telerik:RadPanelItem Text="Contacts" Expanded="true" runat="server">  
            <Items> 
                <telerik:RadPanelItem> 
                    <ItemTemplate> 
                        <!-- Contact List --> 
                        <div id="zonePartyContacts" style="padding:5px">  
                            <telerik:RadListView ID="rlvContacts" runat="server" ClientDataKeyNames="NameAddrCode" DataKeyNames="NameAddrCode" AllowPaging="true" > 
                                <LayoutTemplate> 
                                    <div> 
                                        <table cellpadding="0" cellspacing="0" style="padding-top:10px; padding-bottom:5px">  
                                            <tr valign="top">  
                                                <td id="itemPlaceholder" runat="server">  
                                                </td> 
                                            </tr> 
                                        </table> 
                                        <telerik:RadDataPager ID="rdpContacts" runat="server" PageSize="3">  
                                            <Fields> 
                                                <telerik:RadDataPagerButtonField FieldType="Numeric" /> 
                                            </Fields> 
                                        </telerik:RadDataPager> 
                                    </div> 
                                </LayoutTemplate> 
                                <ItemTemplate> 
                                    <td style="padding-right:10px;">  
                                        <asp:Label ID="lblContact" runat="server" Text='<%# Eval("Name") %>' CssClass="contactName"></asp:Label><br /> 
                                        <div id="zoneTitle" runat="server">  
                                            <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Title") %>'></asp:Label><br /> 
                                        </div> 
                                        <div id="zonePhone" runat="server">  
                                            <asp:Image ID="imgPhone" runat="server" ImageUrl="~/Images/miniPhone.gif" ImageAlign="Middle" AlternateText="Phone Number" ToolTip="Phone Number" />&nbsp;<asp:Label ID="lblPhoneNumber" runat="server" Text='<%# Eval("Phone") %>'></asp:Label>&nbsp;<asp:Label ID="lblExtension" runat="server" Text='<%# Eval("PhoneExtension") %>' /><br /> 
                                        </div> 
                                        <div id="zoneFax" runat="server">  
                                            <asp:Image ID="imgFax" runat="server" ImageUrl="~/Images/miniFax.gif" ImageAlign="Middle" AlternateText="Fax Number" ToolTip="Fax Number" />&nbsp;<asp:Label ID="lblFaxNumber" runat="server" Text='<%# Eval("Fax") %>'></asp:Label><br /> 
                                        </div> 
                                        <div id="zoneEmail" runat="server">  
                                            <asp:Image ID="imgEmail" runat="server" ImageUrl="~/Images/miniEmail.gif" ImageAlign="Middle" AlternateText="Email Address" ToolTip="Email Address" />&nbsp;<asp:Label ID="lblEmail" runat="server" Text='<%# Eval("EmailAddress") %>'></asp:Label><br /> 
                                        </div> 
                                        <asp:HyperLink ID="hlNotes" runat="server" Text="Notes" NavigateUrl="#" Visible="false"></asp:HyperLink> 
                                        <telerik:RadToolTip ID="rttNotes" runat="server" RelativeTo="Element" TargetControlID="hlNotes"></telerik:RadToolTip> 
                                    </td> 
                                </ItemTemplate> 
                            </telerik:RadListView>   
                        </div> 
                    </ItemTemplate> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelItem> 
 

' PageLoad  
        rlvContacts = oPanelItemContacts.FindControl("rlvContacts")  
        AddHandler rlvContacts.NeedDataSource, AddressOf rlvContacts_NeedDataSource  
        AddHandler rlvContacts.ItemDataBound, AddressOf rlvContacts_ItemDataBound  
 
' NeedDataSource  
        Dim oParams As New NameValueCollection  
 
        oParams.Add("ParamNameAddrCode", _PartyCode)  
 
        Dim oResponse As wsProcedureManagement.procedureResponseClass = RunProcedure("GetNameAndAddressContacts", oParams)  
 
        rlvContacts.DataSource = oResponse.DataTableResult  
 
' ItemDataBound  
        If e.Item.ItemType = RadListViewItemType.DataItem Then 
            Dim oDataItem As RadListViewDataItem = CType(e.Item, RadListViewDataItem)  
            Dim oZone As HtmlGenericControl  
 
            ' Show or Hide title if it is available  
            oZone = e.Item.FindControl("zoneTitle")  
            oZone.Visible = oDataItem.DataItem("Title").ToString.Trim.Length > 0  
 
            ' Show or Hide phone if it is available  
            oZone = e.Item.FindControl("zonePhone")  
            oZone.Visible = oDataItem.DataItem("Phone").ToString.Trim.Length > 0 AndAlso oDataItem.DataItem("Phone").ToString.Trim <> "0" 
 
            ' Show or Hide fax if it is available  
            oZone = e.Item.FindControl("zoneFax")  
            oZone.Visible = oDataItem.DataItem("Fax").ToString.Trim.Length > 0 AndAlso oDataItem.DataItem("Fax").ToString.Trim <> "0" 
 
            ' Show or Hide email if it is available  
            oZone = e.Item.FindControl("zoneEmail")  
            oZone.Visible = oDataItem.DataItem("EmailAddress").ToString.Trim.Length > 0  
 
            ' Show or Hide notes if they are available  
            Dim oNotesLink As HyperLink = e.Item.FindControl("hlNotes")  
 
            oNotesLink.Visible = oDataItem.DataItem("Notes").ToString.Trim.Length > 0 Or oDataItem.DataItem("NotesLine2").ToString.Trim.Length > 0  
 
            If oNotesLink.Visible Then 
                Dim oPopup As RadToolTip = e.Item.FindControl("rttNotes")  
 
                If oDataItem.DataItem("Notes").ToString.Trim.Length > 0 Then 
                    oPopup.Text = oDataItem.DataItem("Notes").ToString  
                End If 
 
                If oDataItem.DataItem("NotesLine2").ToString.Trim.Length > 0 Then 
                    If oPopup.Text.Length > 0 Then 
                        oPopup.Text &= "<br />" 
                    End If 
                    oPopup.Text &= oDataItem.DataItem("NotesLine2").ToString()  
                End If 
            End If 
        End If 
 
Rosen
Telerik team
 answered on 02 Jun 2010
2 answers
164 views
Hi,
     I am using radmenu and binding it dynamcially from database.I have some issues regarding styling of radmenu . is there anyway to apply different class during active,hover and selected state to masteritem and childitem programtically?

Thanks,
Dwarak

    

dwarak kanniah
Top achievements
Rank 1
 answered on 02 Jun 2010
5 answers
252 views
Hi,

I put a Panel in the nestedViewTemplate of a RadGrid. On the panel, I have a toolBar, then a inner grid.
What I want is:
When I click the button (export) on the toolBar, I will export the content of the inner grid.
What I did is:
I attached a OnOnClick="toolSearchResultsInner_OnClick" to the toolBar. In the code behind, I will set the export formatting for the innerGrid.
The problem is:
1) I can't get the reference control (inner grid) in the toolSearchResultsInner_OnClick event.
2) I searched a lot and found that people suggested using outGrid.itemCreated to access the controls inside the nestedViewTemplate. However, in my case, I want to export the inner grid only when I click the export button on the toolBar.

Can anybody help me?

Here is the code:
 <Telerik:RadGrid ID="dgResults" runat="server" AllowPaging="True" AllowSorting="True">  
<MasterTableView > 
 <NestedViewSettings > 
     <ParentTableRelation> 
       <telerik:GridRelationFields DetailKeyField="GeneralID" MasterKeyField="GeneralID" /> 
                        </ParentTableRelation>                                                
                   </NestedViewSettings> 
                    
                   <NestedViewTemplate> 
                   <asp:Panel runat="server" ID="InnerContainer" CssClass ="viewWrap" Visible="true">         
                <radtlb:radtoolbar runat="server" id="toolSearchResults1"  OnOnClick="toolSearchResultsInner_OnClick" AutoPostBack="true">  
         <items>                    
                                                <radtlb:radtoolbarbutton ID="toolExport" DisplayType="TextImage"  CommandName="Export to Excel" ButtonImage="IFExcel.jpg" Hidden="False" runat="server" style=" font-weight:normal;font-family:Tahoma" ButtonText="Export" /> 
                                <radTlb:RadToolbarSeparator ID="RadToolbarSeparator31" runat="server" /> 
                                <radtlb:radtoolbarbutton ID="toolPrint" DisplayType="TextImage"  CommandName="Print" ButtonImage="print.gif" Hidden="False" runat="server" style=" font-weight:normal;font-family:Tahoma" ButtonText="Print" /> 
                                                                </item></radtlb:radtoolbar>   
      <telerik:radGrid ID ="innerGrid" runat ="server"  AllowPaging="True" AllowSorting="True" OnExcelExportCellFormatting="Inner_ExcelExportCellFormatting" 
</MasterTableView > 
      <MasterTableView TableLayout ="auto" >                 
 
 
              </MasterTableView> 
                              
            </telerik:radGrid> 
 
          </asp:Panel> 
        </NestedViewTemplate> 
     </MasterTableView> 
</Telerik:RadGrid> 
 

Best regards,
Heng
Pavlina
Telerik team
 answered on 02 Jun 2010
1 answer
85 views
Hi,

I am using radgrid with enabledembeddedskins set to false and using visual style builder i have built custom skin.I have applied PagerStyle-Mode="NextPrevAndNumeric" but it is get wrapping up in many lines instead of one lines .Here is sample image i have attached.Is there any way to display in a single line without wrapping.


Thanks,
Dwarak
Pavlina
Telerik team
 answered on 02 Jun 2010
1 answer
163 views
Hi, I'm having problems customizing the css styles drop down of a radeditor for dnn.

in the ConfigFile.xml I have
<configuration>
  <property name="CssFiles">/Portals/_default/Skins/MySite/skin.css</property>
  <property name="CssFiles">/Portals/_default/Skins/MySite/index.css</property>
  <property name="CssFiles">/Portals/_default/Skins/default.css</property>
  <property name="CssFiles">/Portals/_default/Skins/portal.css</property>
  <property name="CssClasses">Normal, Strong, Large</property>
</configuration>
 
and in the ToolsFile.xml I have

  <classes>
  <class name="Clear Class" value="" />
  <class name="Links Class" value="a.link" />
  <class name="Images Class" value=".img" />
  <class name="My Red Text" value=".redText" />
  </classes>

in addition, I also have this in the web.config

 <add name="RadEditorProvider" type="Telerik.DNN.Providers.RadEditorProvider" CssFiles="~/Portals/_default/Skins/MySite/skin.css, ~/Portals/_default/Skins/MySite/index.css, ~/Portals/_default/Skins/default.css/, ~/Portals/_default/Skins/portal.css" providerPath="~/DesktopModules/TelerikWebUI" AutoCreatePaths="true" FilterHostExtensions="True" CssClasses="Bright, BlueSky"/>

but nothing seems to be loading correctly.

My goal is to have css styles loaded only if they exist inside the radeditor. Can somebody help me accomplish this. I'm using DNN 5.01.04.

Thanks


Rumen
Telerik team
 answered on 02 Jun 2010
1 answer
126 views
the
hello everyone:
can you tell me  How to change the size of the radMenu's font?

my menu conbined wity sitemapdatasource

I try to  change the   font's size='X-Large'     under   menu's property 


 <telerik:RadMenu ID="RadMenu2" runat="server" DataSourceID="SiteMapDataSource1" EnableRoundedCorners="true"
                        EnableShadows="true" Font-Bold="True" Font-Size="Larger" Style="z-index: 4" Width="363px">
                    </telerik:RadMenu>






but it doesn't work


please  help me  :
I'm  waiting online
Shinu
Top achievements
Rank 2
 answered on 02 Jun 2010
0 answers
83 views
Dear sir,

How Can i know clicked slot have any appointment or not .
if there is an appointment then how can i get its attributes or subject.

Please Help me.

Thank You.
Chandan Kumar
Top achievements
Rank 1
 asked on 02 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?