Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
124 views
Below is my code.  I know that I cannot set the RadGrid to 100% height since
my table row does not have a value.  I have been unable to resize on the
client using .get_element.style.height = xxxx.  Does anyone know why this
would not be working or another way I can expand the grid to fill the height?
Currently, the grid is only about 30px tall.  Thank you in advance.

Joshua

<body> 
 <form id="form1" runat="server">  
  <rad:RadScriptManager ID="RadScriptManager1" runat="server" /> 
  <table cellpadding="0" cellspacing="0" border="0" style="table-layout:fixed;width:100%;height:100%;">  
   <tr style="height:60px;">  
    <td valign="top" style="position:relative;background-color:steelblue;">  
      
    </td> 
   </tr> 
   <tr style="height:100%;">  
    <td style="position:relative;">  
     <rad:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" Width="100%" style="border:0;">  
      <MasterTableView TableLayout="Fixed" /> 
      <ClientSettings> 
       <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
      </ClientSettings> 
     </rad:RadGrid> 
    </td> 
   </tr> 
  </table> 
 </form> 
</body> 
Dimo
Telerik team
 answered on 09 Nov 2009
3 answers
108 views
How does the top div in the default page swith its background color based on the skin a user selects.  Is this the form decorator or skin mamanger doing it??

Thx
Dimo
Telerik team
 answered on 09 Nov 2009
1 answer
138 views
I am using the code which follows to insert a summation row at the bottom of the Data Table which is the result of a triple stacked bar chart.  I set the visibility of the series to false so it does not display in the graph only in the DataTable which works fine.  My only problem is that there is an unused color label associated with this new row in the Data Table, I like the color labels with the other rows because they take the place of the legend, but this one I would like to drop, is this possible?  To drop just the color portion of a series label in a Data Table?

ChartSeries totSer = new ChartSeries(); 
totSer.Name = "Total Contacts"
totSer.Visible = false
for (int i=0; i< conRunning.Series[0].Items.Count; i++){ 
    totSer.Items.Add(new ChartSeriesItem(conRunning.Series[0].Items[i].YValue 
        + conRunning.Series[1].Items[i].YValue 
        + conRunning.Series[2].Items[i].YValue)); 
conRunning.Series.Add(totSer); 
Ves
Telerik team
 answered on 09 Nov 2009
1 answer
123 views
Hello,

Do you know when the VSB will support working with the new Sitefinity skin that is in the Q3 release of the AJAX controls?

Thanks!
Dimo
Telerik team
 answered on 09 Nov 2009
5 answers
265 views
hi..telerik..
is there any way to calculate the total number of hours between start time and end time. i need it to calculate when i save the appointment and display it along with the appointmnet title on schedular,..
Peter
Telerik team
 answered on 09 Nov 2009
2 answers
146 views
Hey guys,
First of all,I'm using the entire radcontrol suite Q2 2009 SP1. The problem I'm having is that I have a page with a rad tab strip that seems to be functioning correctly but in IE, when I click on one tab, they both appear with the style of a selected tab. This is not happeneing in FireFox.
Here is my tabstrip definiton:

<

 

telerik:RadTabStrip ID="tabstrip1" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="0" Skin="Simple">

 

 

<Tabs>

 

 

<telerik:RadTab runat="server" Selected="True" Text="Core Curriculum">

 

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="Organ Systems">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

</

 

telerik:RadTabStrip>
I should say that I have tried several skins and always have the same issue.
Here is an abbreviated version of my multipage setup:

 

<telerik:RadMultiPage id="RadMultiPage1" runat="server" SelectedIndex="0">

    <telerik:RadPageView ID="pageViewCC" runat="server">
  
       <table cellspacing="0" cellpadding="0" width="780" border="0">
          <tbody>
     <tr>
      <td>
       <table border="0" width="100%" cellpadding="7" cellspacing="0" style="background-color:#ffffff;">
        <tr style="padding-bottom:3; padding-left:10; padding-right:10;">
         <td valign="top">
          <span class="font14" style="color:#0f424f;"><b>Browse by Curricular Topics</b></span><br />
          <span class="font11">Find content on our site using this list of topics derived from the ACPE Core Curriculum.</span>
          <br/>

          <table width="100%" cellpadding="0" cellspacing="0" style="background-color:#ffffff;BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; margin-top:5px;">
           <tr>
            <td style="height: 36px;" >
             <telerik:RadAjaxPanel ID="rapViewCC" runat="server">
             <table border="0"   style="height:100%" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
              <!-- details deleted -->
               <td id="tdLeft" width="30%" style="min-width:30%;"  class="font12" valign="top" align="left">
                   <table class="CellHolder" bgcolor="#ffffff"  cellspacing="0" cellpadding="0">
                   <tr><td runat="server" id="tdClinicalScience" style="padding-top:3px; padding-right:3px; padding-left:3px;" class="font11noMarginTRLPadding"> <b><asp:LinkButton ID="lnkbtClinicalScience" runat="server" Text="Clinical Science"></asp:LinkButton></b></td></tr>
                   <tr><td runat="server" id="tdAdministrativePharmacySciences" style="padding-top:3px; padding-right:3px; padding-left:3px;" class="font11noMarginTRLPadding"> <b><asp:LinkButton ID="lnkbtAdministrativePharmacySciences" runat="server" Text="Social, Behavioral, &amp; Administrative Pharmacy Sciences"></asp:LinkButton></b></td></tr>
                   <tr><td runat="server" id="tdPharmaceuticalSciences" style="padding-top:3px; padding-right:3px; padding-left:3px;" class="font11noMarginTRLPadding"> <b><asp:LinkButton ID="lnkbtPharmaceuticalSciences" runat="server" Text="Pharmaceutical Sciences"></asp:LinkButton></b></td></tr>
                   <tr><td runat="server" id="tdBasicBiomedicalSciences" style="padding-top:3px; padding-right:3px; padding-left:3px;" class="font11noMarginTRLPadding"> <b><asp:LinkButton ID="lnkbtBasicBiomedicalSciences" runat="server" Text="Basic Biomedical Sciences"></asp:LinkButton></b></td></tr>
                   <tr><td id="tdSpaceHolder" style="height:100%"  class="font11noMarginRLPadding" ></td></tr>
                   </table>
               </td>
               <td style="width:15px;" >&nbsp;</td>
               <td id="td2" valign="top" class="font12" align="left">
               <table>
               
               <tr><td class="font12" style="vertical-align:top;"><div style="float:left;"><asp:Image ID="imgTopic" runat="server" BorderWidth="0" ImageUrl="~/images/icon_bio.gif" /></div>
               
               
               <div style=" color:#660000; float:left; margin-top:13px; padding-left:10px;"><b><asp:Label ID="lblTopicname" runat="server"></asp:Label></b></div></td></tr>
               
                   <tr><td style="padding-left:30px;">
                   <div  style="width:450px;overflow-x:hidden;">
                      <telerik:RadTreeView style="overflow:hidden;"
                      ID="currTopicTreeView"
                      runat="server" ShowLineImages="False"  
                      OnClientMouseOver="onMouseOver"
                      OnClientNodeClicked="ClientNodeClicked" 
                       OnClientNodeClicking = "ClientNodeClicking"
                                                         
                      >
                      </telerik:RadTreeView>
                      </div>
                      <script type="text/javascript"> 
    function onMouseOver(sender, e) 
    { 
        e.get_node().unhighlight();
        //e.get_node().get_textElement().innerHTML = '<span style=\'color:#660000;\'>' + e.get_node().get_text() + '</span>'
    }  
    function ClientNodeClicked(sender, eventArgs)
{  
    var node = eventArgs.get_node();   
   node.unhighlight();
   node.toggle();

function ClientNodeClicking(sender, eventArgs)
{
    eventArgs.get_node().unhighlight();
}

</script> 

                   <br /></td></tr>
                 
               </table>
               </td>
              </tr>
             </table>
             </telerik:RadAjaxPanel>
            </td>
           </tr>
          </table>
         </td>
        </tr>
       </table>
      </td>
     </tr>
       </tbody>
       </table>
      </telerik:RadPageView>
    <telerik:RadPageView ID="pageViewOS" runat="server">
   
    <table border="0" width="780" cellpadding="7" cellspacing="0" bgcolor="#ffffff">
       <tr style="padding-bottom:3; padding-left:10; padding-right:10;"><td>
       <table cellpadding=0 cellspacing=2>
       <tr><td><img src="/images/icon_organ.gif" border="0"></td>
       
       <td><font class="font14" color="#0f424f"><br><b>Browse by Organ Systems</b></font>
          
          <br class="Spacer2">
          <font class="font11">Find content on our site using this list of organ systems, adapted from the <a href='resourceToc.aspx?resourceID=406'> Pharmacotherapy</a> table of contents. For information on additional clinical topics, please SEARCH the full site.</font></td>
       </tr></table>
       
       
       
          
          </td>
       </tr>
        <tr>
         <td colspan=2>
          
          <table width="100%" cellpadding="0"  cellspacing="0" bgcolor="#ffffff" style="height:100%; BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid">
           <tr>
            <td style="height: 36px" >
             <telerik:RadAjaxpanel ID="rapOS" runat="server">
             <table border="0"   style="height:100%" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
              <tr>
               <td id="tdParentCell" width="200"  class="font12" valign="top" align="left">
               
               <table class="CellHolder" bgcolor="#ffffff"  cellspacing="0" cellpadding="0">
               <asp:Repeater ID="rptParents" runat="server">
                   <!-- details deleted-->
               </asp:Repeater>
               
               </table>
               </td>
               <td width="15" ></td>
               <td id="tdChildCell"  class="font12" valign="top" align="left"> <asp:Label id="lblChild" runat="server"></asp:Label></td>
              </tr>
              
             </table></telerik:RadAjaxpanel>
            </td>
           </tr>
          </table>
         </td>
        </tr>
       </table>
   
    </telerik:RadPageView>
</telerik:RadMultiPage>




Again, it works fine in FF. Has anyone seen this before?

Paul
Telerik team
 answered on 09 Nov 2009
0 answers
106 views
Hi

I have a problem using RADEditor/ImageManager on WSS 3.0.

I have recently created a new web application and for that a site-collection. Then I activated the Rad Editor and created a Announcement list called MyNews. When using ImageManager to select an Image I have an empty ImageManager dialog - no directory to browse in. It is not possible to create a directory -  I get "Could not create". I have tried with various path settings before hitting Create. I am an administrator of this site. Since I have no directory so select and it is not possible to create a directory it's not possible to upload images.

On my other site collections I have no problem to create directory and to add/select images.

Any suggestions on what I can do?
Micael
Top achievements
Rank 1
 asked on 09 Nov 2009
0 answers
102 views
Hi

I have a problem using RADEditor/ImageManager on WSS 3.0.

I have recently created a new web application and for that a site-collection. Then I activated the Rad Editor and created a Announcement list called MyNews. When using ImageManager to select an Image I have an empty ImageManager dialog - no directory to browse in. It is not possible to create a directory -  I get "Could not create". I have tried with various path settings before hitting Create. I am an administrator of this site. Since I have no directory so select and it is not possible to create a directory it's not possible to upload images.

On my other site collections I have no problem to create directory and to add/select images.

Any suggestions on what I can do?
Micael
Top achievements
Rank 1
 asked on 09 Nov 2009
2 answers
119 views
Hi

I have a RadGrid with a template column. Inside the template column there is a RadTextBox with ShowButton=true.

I need to get the index of the row when the generic button is clicked. Any idea?
Ryan Yeow
Top achievements
Rank 1
 answered on 09 Nov 2009
1 answer
94 views
I have setup a RadGird with a custom skin and pager. I have have copied the example for programming the sort order but the only problem once it is applied it does not update the grid until i go to the next page or per page.

I have the gird on a contect page and a scriptmanger and ajaxmanager on the master file

Here is my gird code

<telerik:RadGrid ID="rgdAgentOverview" runat="server" OnNeedDataSource="rgdAgentOverview_NeedDataSource"
                            AllowPaging="True" OnItemDataBound="rgdAgentOverview_ItemDataBound"
                            AutoGenerateColumns="False" GridLines="None"
                            Skin="Resolve" EnableEmbeddedSkins="False" EnableEmbeddedBaseStylesheet="False"
                            OnSelectedIndexChanged="rgdAgentOverview_SelectedIndex"
                            OnItemCommand="rgdAgentOverview_ItemCommand" AllowSorting="True"
                            AllowCustomPaging="True" >
                            <HeaderContextMenu EnableEmbeddedBaseStylesheet="False"
                                EnableEmbeddedSkins="False">
                            </HeaderContextMenu>
                            <MasterTableView CellPadding="0" CellSpacing="0" DataKeyNames="AgentID"
                                GridLines="Vertical" PageSize="30" AllowCustomSorting="true">
                                <Columns>
                                    <telerik:GridTemplateColumn DataField="ColourID" UniqueName="TemplateColumn">
                                        <ItemStyle HorizontalAlign="Center" Width="9px" />
                                        <ItemTemplate>
                                            <div ID="ColourBlock" runat="server" style="height:20px; width: 9px;">
                                            </div>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridBoundColumn DataField="AgentID" HeaderText="AgentID"
                                        UniqueName="column1">
                                        <ItemStyle HorizontalAlign="Center" Width="88px" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="AgentName" HeaderText="Agent Name"
                                        UniqueName="column2">
                                        <ItemStyle HorizontalAlign="Center" Width="182px" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridTemplateColumn DataField="Position" HeaderText="Position"
                                        UniqueName="Position">
                                        <ItemTemplate>
                                            <div style="float: left; margin-top: 2px; margin-left: 10px;">
                                                <rec:RoundedHolder ID="rhbPosition" PositionID='<%# Eval("Position") %>' Opacity="75" DisplayRound="false"  Width="12px" Height="22px"
                                                Value="" runat="server" />
                                            </div>
                                            <div style="float:left;">
                                                <%# Eval("PositionText") %>
                                            </div>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="124px" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridBoundColumn DataField="Rate" HeaderText="Rate"
                                        UniqueName="column5">
                                        <ItemStyle HorizontalAlign="Center" Width="69px" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridTemplateColumn DataField="ColourID" UniqueName="TemplateColumn">
                                        <ItemStyle BorderStyle="None" HorizontalAlign="Center" Width="9px" />
                                    </telerik:GridTemplateColumn>
                                </Columns>
                                <EditFormSettings>
                                    <EditColumn CancelImageUrl="Cancel.gif" EditImageUrl="Edit.gif"
                                        InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif">
                                    </EditColumn>
                                </EditFormSettings>
                                <PagerTemplate>
                                    <div class="GirdFooter">
                                        <div class="GirdFooterInner">
                                            <div class="GirdFooterPageCount">
                                            Current Page : <%# (int)DataBinder.Eval(Container, "Paging.CurrentPageIndex") + 1 %>
                                                            of
                                                            <%# DataBinder.Eval(Container, "Paging.PageCount")%>
                                            </div>
                                            <div class="GirdFooterPre">
                                                <asp:Image ID="ibnPre" CssClass="GirdFooterImage" runat="server" ImageUrl="~/Images/Previous.png" />
                                                <asp:LinkButton ID="lnkPre" runat="server" OnClick="lnkPre_Click">Previous</asp:LinkButton>
                                            </div>
                                            <span style="float: left; font-size: 12px; margin-top: -2px; margin-right: 5px;">|</span>
                                            <div class="GirdFooterNext">
                                                <asp:LinkButton ID="lnkNext" runat="server" OnClick="lnkNext_Click" >Next</asp:LinkButton>
                                                <asp:Image ID="ibnNext" CssClass="GirdFooterImage"  runat="server" ImageUrl="~/Images/Next.png" />
                                            </div>
                                        </div>
                                    </div>
                                </PagerTemplate>
                            </MasterTableView>
                            <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true" >
                            </ClientSettings>
                            <FilterMenu EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False">
                            </FilterMenu>
                        </telerik:RadGrid>

Here is my c# code

protected void rgdAgentOverview_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        var dc = new ResolveDataClassDataContext();

        try
        {

            var AgentsData = (from c in dc.Members
                             select new
                             {
                                 AgentID = c.UserID,
                                 AgentName = c.MemberProfiles.First().Firstname + " " + c.MemberProfiles.First().Surname,
                                 Position = c.MemberType.ID,
                                 PositionText = c.MemberType.TypeOfMember,
                                 Rate = c.MemberType.Commission,
                             }).ToList();

            DataTable CurrentAgents = MyExtenders.FilterResults(AgentsData, true);
            rgdAgentOverview.DataSource = CurrentAgents;

        }
        catch (Exception ex)
        {
            Admin CurrentMaster = (Admin)Page.Master;
            CurrentMaster.DisplayError(ex.Message);
        }
    }

protected void ibnSort_Click(object sender, ImageClickEventArgs e)
    {

        if (rbnAgentID.Checked)
        {
            lblSortNumber.Text = "1.";
            lblCurrentSortOrder.Text = "Agent ID";
        }
        else if (rbnAgentName.Checked)
        {
            lblSortNumber.Text = "2.";
            lblCurrentSortOrder.Text = "Agent Name";
        }
        else if (rbnAgentPos.Checked)
        {
            lblSortNumber.Text = "3.";
            lblCurrentSortOrder.Text = "Position";
        }
        else if (rbnRate.Checked)
        {
            lblSortNumber.Text = "4.";
            lblCurrentSortOrder.Text = "Rate";
        }

        rgdAgentOverview.MasterTableView.SortExpressions.Clear();
        GridSortExpression expression = new GridSortExpression();
        expression.FieldName = "Rate";

        if (ddlSortDirection.SelectedItem.Text == "Ascending")
        {
            ibnArrowUp.ImageUrl = "~/Images/CaseIdArrow.jpg";
            expression.SortOrder = GridSortOrder.Ascending;
        }
        else
        {
            ibnArrowUp.ImageUrl = "~/Images/CaseIdArrowDown.jpg";
            expression.SortOrder = GridSortOrder.Descending;
        }
        rgdAgentOverview.MasterTableView.SortExpressions.AddSortExpression(expression);
        rgdAgentOverview.Rebind();

        rgdAgentOverview.CurrentPageIndex = rgdAgentOverview.CurrentPageIndex + 1;
        rgdAgentOverview.Rebind();

    }

Thank you for any help
Yavor
Telerik team
 answered on 09 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?