Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
281 views
Hi all,

We recently added 3 VMs  to our Sharepoint Farm and installed Sharepoint 2007 on each, so 2 are WFEs and 1 is the index. (Note: old VMs also had Sharepoint 2007, 2 WFE and 1 Index)

Now the problem we noticed is that the Calibri Font in the page template has disappeared from the drop down box in our sharepoint site.  I have added the following to the ToolsFile, but the radeditor version(4.5.6.0) is not picking up the Calibri Font.  Even when I remove the following from ToolsFile, i can still see the default fonts but not Calibri. Attached screenshot of the toolbar.

 <fontnames>
      <item name="Tahoma"/>
      <item name="Times New Roman"/>
      <item name="MS Sans Serif"/>
      <item name="Calibri"/>
      <item name="Verdana"/>
      <item name="Arial"/>
      <item name="Courier New"/>
    </fontnames>

I have also added the following to the CssEditor file (Note: this csseditor file i just copied from old farm)

BODY
{
    font-family:Calibri !important;
}


  I would really appreciate your help.  Thanks
Zack
Top achievements
Rank 1
 answered on 05 Oct 2011
5 answers
172 views
Hello,

I have a problem with RadComboBox control. In my project I have several of them with static Items list specified in aspx for each one. During the page load I'm supposed to set the selected item of those combo boxes according to data stored in a database (values of those radcomboboxes). This is where the problem begins. When I use RadComboBox.SelectedValue = somevalue; the radcombobox shows the Text of the 1st item in its list instead of the selected item's Text. If I click on the dropdown I can clearly see that for example a 3rd item in the list is selected but the actual Text value is coming from the 1st item in the list. Looking here: http://www.telerik.com/help/aspnet-ajax/combobox-items-server-side-code.html under SELECTING ITEMS it clearly says that I can select items using SelectedValue (which is the same behavior in standard ASP.NET controls) however RadComboBox gives me this issue which I'm not sure how to resolve.

Best regards.
Ivana
Telerik team
 answered on 05 Oct 2011
1 answer
128 views
I have a radgrid with all columns at template columns and grid is in editmode all the time. 
I need to capture row index changed event for each row so whenever user navigates from one row through other
I can validate existing row data before going to new row.
When I click through controls, onActiveRowChanged or onRowSelecting does not seem fire. How can I do that. Is there any client event to validate row
or something else like that.

Here is my client event markup on the grid.








   <ClientSettings Selecting-AllowRowSelect="true" KeyboardNavigationSettings-AllowActiveRowCycle="true">        <ClientEvents OnActiveRowChanged="RowChanged" OnRowSelected="RowChanged" />    </ClientSettings>










Mira
Telerik team
 answered on 05 Oct 2011
1 answer
138 views
Hello,

I have the below code and my combobox is getting disappeared on inline javascript call, but the aspx button has no any issue.

<

 

body>

 

 

<form id="form1" runat="server">

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

 

 

<div>

 

 

<telerik:RadComboBox ID="ddlReportUserViews" runat="server" AutoPostBack="true" AllowCustomText="false"

 

 

AccessibilityMode="true" Skin="Outlook">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="1" Value="1" />

 

 

<telerik:RadComboBoxItem Text="2" Value="2" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

<asp:Button ID="btn1" runat="server" Text="Click" OnClientClick="alert('hi');" />

 

 

 

<script type="text/javascript" language="javascript">

 

alert(

'hi');

 

 

</script>

 

 

</div>

 

 

</form>

 

</

 

body>

Thanks

 

Kevin
Top achievements
Rank 2
 answered on 05 Oct 2011
3 answers
153 views
Hi. I'm looking for how to set the item demension at the bubble chart.
my datasource is like this.
Dim dataTableBubbleData = New DataTable()
    dataTableBubbleData.Columns.Add("Year")
    dataTableBubbleData.Columns.Add("Budget")
    dataTableBubbleData.Columns.Add("Profit")
 
    dataTableBubbleData.Rows.Add(New Object() {"2008", "7", "2"})
    dataTableBubbleData.Rows.Add(New Object() {"2009", "9", "4"})
    dataTableBubbleData.Rows.Add(New Object() {"2010", "7", "3"})
 
    GetBubbleData = dataTableBubbleData
End Function
 and i defined x , y axis on aspx page like this.
<telerik:RadChart ID="RadChartBubbleChart" SkinsOverrideStyles="true" runat="server"
                                    Width="800" Height="400">
                                    <ChartTitle>
                                        <TextBlock Text="Bubble Chart">
                                        </TextBlock>
                                    </ChartTitle>
                                    <PlotArea>
                                        <XAxis DataLabelsColumn="Year">
                                            <AxisLabel Visible="true">
                                                <Appearance Visible="True">
                                                </Appearance>
                                                <TextBlock Text="Year">
                                                </TextBlock>
                                            </AxisLabel>
                                        </XAxis>
                                        <YAxis AxisMode="Normal" MaxValue="12" AutoScale="false">
                                            <Appearance MinorTick-Visible="false" MinorGridLines-Visible="false">
                                                <MinorGridLines Visible="False"></MinorGridLines>
                                            </Appearance>
                                            <AxisLabel Visible="true">
                                                <Appearance Visible="True">
                                                </Appearance>
                                                <TextBlock Text="Budget">
                                                </TextBlock>
                                            </AxisLabel>
                                        </YAxis>
                                    </PlotArea>
                                    <Series>
                                        <telerik:ChartSeries DataYColumn="Budget" Type="Bubble" Name="money flow" Appearance-LabelAppearance-Visible="false">
                                            <Appearance>
                                                <LabelAppearance Visible="False">
                                                </LabelAppearance>
                                            </Appearance>
                                        </telerik:ChartSeries>
                                    </Series>
                                </telerik:RadChart>

ths code works fine indicating bubble. but  i don't know about setting each item's demension.
i wish to set demension value from "profit" datatable field.
Evgenia
Telerik team
 answered on 05 Oct 2011
1 answer
58 views
Hello Telerik Team,

The purpose of this Post is to have a clarification regarding my query.
As shown in the attachments(multiuserdayview and multiuserweekview) we can see that the users in radschedular in Multiuser view  are placed  horizontally but as per my requirement I want to display the users vertically as shown in the Required Day View and RequiredMultiUser MonthView attachments.
Is there any possible way to do so?
If yes in what way can we do it.
Request you to send  some sample code.                          

Wish you would reply to this mail as soon as possible.

Thanks & Regards,

A Ravi Kumar

Peter
Telerik team
 answered on 05 Oct 2011
1 answer
260 views

I am having a RadButton control placed outside the grid ,to delete the multiple selected rows from the grid ,
i have written Client side and Server Side Validation Functions to show Pop-Up if User clicks on Delete Button
without selecting any row from the grid saying "Please select item(s) to delete.!!" using Alert().

on doing so ,my Javascript Function gets executed and gives me the desired Alert PopUp ,on clicking ok button of the PopUp it does PostBack which causes Server Side Validation to fire,
Due to which i am getting 2 PopUps one from Client Side and another From Server Side Code one after the other.

Javascript Function is given below :-

function DeleteSelectedItems(sender, args) {
        var Count=0;
        var grid = $find("<%=grdSearchResults.ClientID %>");
        var masterTable = grid.get_masterTableView();
        for (var i = 0; i < masterTable.get_dataItems().length; i++) {
            var gridStatementElement = masterTable.get_dataItems()[i].findElement("chkSelect");
              
            if (gridStatementElement != null && gridStatementElement.checked==true) {
                Count = Count + 1;
            }
        }
        if (Count == 0) {     //This part is not working fine 
            alert("Please select item(s) to delete.!!") ;
            return false;
             
        }
        else if(Count>0){      //This is working Fine
            ConfirmDeletion(sender, args);
  
        }

Call to Javascript method from RadButton :-

<telerik:RadButton ID="btnDelete" runat="server" Visible="false"
                            Text="Delete"  OnClick="btnDelete_Click" OnClientClicking ="DeleteSelectedItems" >
                            <Icon PrimaryIconUrl="../Images/Common/Delete-icon.png" />
</telerik:RadButton>

I want to stop this additional PostBack so that my Server side validation will not fire.
Kevin
Top achievements
Rank 2
 answered on 05 Oct 2011
6 answers
279 views
Hi, I'm using NeedDataSource since I need to change the criteria according to selection in other controls. So I recreate a data source when conditions change and I do that in the NeedDataSource event handler. It works, but the pager does not update: if the previous criteria had, say, 25 records, it needed 3 pages, but if the new criteria returns 40 records, the pager sticks to 3, and only when I use it once, it updates to the new correct size of 4 pages.

I'm using the 3.5 version. How can I "help" the pager to make it update immediately?
Luciano Vernaschi
Top achievements
Rank 1
 answered on 05 Oct 2011
4 answers
68 views
Hello,

I have a problem.I Have 2 page and 1 usercontrol

Main.aspx
Gridview.aspx
Gridview.ascx


First page Main.aspx i have a html menu,onclick functions i call Gridview.aspx

Here :

callPage('Gridview.aspx','MENUID=" + MENUDT.Rows[j]["MENUID"].ToString() + "','contentdiv')

And my gridview.aspx:



 <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <uc1:Gridview ID="Gridview1" runat="server" />
    </div>


And gridview.ascx(User Control):


<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="gridList">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="gridList" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnGoster">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="lbl" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadGrid ID="gridList" runat="server" AllowFilteringByColumn="True" AllowSorting="True"
    EnableViewState="false" CellSpacing="0" GridLines="None" Culture="Turkish (Turkey)"
    Skin="Vista" AllowMultiRowSelection="True" AllowPaging="True" PageSize="30">
    <HeaderContextMenu>
    </HeaderContextMenu>
    <MasterTableView>
        <Columns>
            <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" />
        </Columns>
        <NoRecordsTemplate>
            Listelenecek kayıt bulunamadı.
        </NoRecordsTemplate>
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <ClientSettings EnableRowHoverStyle="True">
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <FilterMenu EnableImageSprites="False">
    </FilterMenu>
</telerik:RadGrid>
<asp:Button ID="btnGoster" runat="server" Text="RadButton" OnClick="btnGoster_Click">
</asp:Button>
<asp:Label ID="lbl" runat="server" Text="Label"></asp:Label>


Button click and radgrid functions not work but when i call the page localhost/MyProject/Gridview.aspx?MENUID=10

all functions work.

Thanks for helps.
Oguzhan
Top achievements
Rank 1
 answered on 05 Oct 2011
7 answers
274 views
I need a quick programmatic way to click the cancel button of the advanced form to force to close/hide for the user at a specific time.

Ivana
Telerik team
 answered on 05 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?