Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
152 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
168 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
66 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
285 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
296 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
75 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
317 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
2 answers
192 views

Hello Telerik Team,

As shown in the attachments 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
3 answers
373 views
Hi,

I use <telerik:RadButton CssClass="sth" runat="server" />.

Is it possible to set class for rendered <input> tag instead of <a>?
In my example class "sth" will be set for <a> tag.
<a class="sth" ...>
...
<input type="button" ...>
...
</a>

I wanted to modify <input> CSS class.

Regards,
Dawid Niedzwiedz
Bozhidar
Telerik team
 answered on 05 Oct 2011
1 answer
80 views
Hi
I am finding that controls listed in the UpdatedControls section of an AjaxManager or AjaxMangerProxy perform partial postbacks.
Is this the expected behaviour? Is there a way to stop this?

Below are the details of my problem
As shown below an  AjaxManagerProxy has been configured to update a datarepeater after a button is clicked (or postsback).
telerik:RadAjaxManagerProxy runat="server" ID="RadAjaxManager1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RefreshDasboardButton">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="DashboardRepeater" LoadingPanelID="LoadingPanel1"/>
            </UpdatedControls>
        </telerik:AjaxSetting>                      
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

Inside the repeater i have a list of asp linkbuttons. Clicking one of the link buttons should cause changes to a radgrid. Instead the linkbutton does a partial postback (executes all the code as expected and rebinds new data to a radgrid) but does not display the changes to the radgrid.

If the repeater is removed from the updatedcontrols list then the link buttons perform a full postback as expected and refreshes the radgrid.

Once again I would like to know
1. After controls have been listed in the UpdatedControls section will they perform parital or full postbacks?
2. Has anyone got any ideas on how I can fix this.
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?