Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
I am trying to validate a button click on a rad toolbar control.

I want the user to click the button...It will prompt the user with a yes/cancel radconfirm dialog...upon clicking 'yes' the button will resume normal functionality and postback. if they click "cancel' then the dialog will close and the page will not postback.

Thanks
Veselin Vasilev
Telerik team
 answered on 22 Oct 2008
3 answers
145 views
Hi,

I implemented a Grid inside an Iframe.
The grid is correctly showed inside the iframe.

But, for exemple, i want to navigate inside the grid with the pager or if i want to edit a record, i see wel the loadingpanel but after is the result a blank page inside the panel.

Any idee about this problem ?

Here is the code:

 

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

 

 

<asp:Panel ID="PanelBody" runat="server" SkinID="PageBody">

 

 

<asp:Panel ID="PanelTitle" runat="server" SkinID="PageHeader">

 

</

 

asp:Panel>

 

<asp:Panel ID="PanelOverviewCountry" runat="server" SkinID="PageContent">

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" Height="75px" Width="75px" Transparency="20">

 

 

<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" />

 

 

</telerik:RadAjaxLoadingPanel>

 

 

<telerik:RadGrid ID="RadGrid1" Skin="WebBlue" Width="99%"

 

 

AllowSorting="True" PageSize="18" AllowPaging="True"

 

 

AllowMultiRowSelection="False" runat="server" Gridlines="None"

 

 

AutoGenerateColumns="False" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"

 

 

OnItemUpdated="RadGrid1_ItemUpdated" OnItemInserted="RadGrid1_ItemInserted"

 

 

OnDataBound="RadGrid1_DataBound" OnItemCreated="RadGrid1_ItemCreated" ShowGroupPanel="true">

 

 

 

<MasterTableView Width="99%" Summary="RadGrid table" AutoGenerateColumns="false"

 

 

commandItemDisplay="TopAndBottom" DataKeyNames="CountryId" EditMode="InPlace">

 

 

<Columns>

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">

 

 

<ItemStyle CssClass="MyImageButton" />

 

 

</telerik:GridEditCommandColumn>

 

 

<telerik:GridBoundColumn DataField="CountryId" HeaderText="Id" ReadOnly="true" SortExpression="CountryId" UniqueName="CountryId" Visible="false"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="DisplayName" HeaderText="Display Name" SortExpression="DisplayName" UniqueName="DisplayName"></telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="name" UniqueName="Name"></telerik:GridBoundColumn>

 

 

 

</Columns>

 

 

<EditFormSettings ColumnNumber="2" CaptionDataField="DisplayName" CaptionFormatString="Edit properties of Country {0}">

 

 

<FormTableItemStyle Wrap="False"></FormTableItemStyle>

 

 

<FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>

 

 

<FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White" Width="100%" />

 

 

<FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />

 

 

<FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>

 

 

<EditColumn ButtonType="ImageButton"

 

 

InsertText="Insert country" UpdateText="Update country" UniqueName="EditCommandColumn1" CancelText="Cancel edit">

 

 

</EditColumn>

 

 

</EditFormSettings>

 

 

</MasterTableView>

 

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

 

</telerik:RadGrid>

 

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue">

 

 

</telerik:RadWindowManager>

 

 

 

</asp:Panel>

 

</

 

asp:Panel>

 


Thanks for your help.

Daniel
Telerik team
 answered on 22 Oct 2008
1 answer
54 views
Hi

I have a button inside GridTemplateColumn

                                        <telerik:GridTemplateColumn ItemStyle-Width="100">
                                            <ItemTemplate>
                                                <asp:Button ID="DeleteBtn" CommandName="Delete" CommandArgument="1" runat="server" CssClass="SmallRedBtn" Text="delete" />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>

But clicking the button doesn't fire OnItemCommand, however if I replace button with LinkButton event successfully firing, any ideas?

Daniel
Telerik team
 answered on 22 Oct 2008
1 answer
92 views
Hi All,

I am using RadScheduler.,RadTabstrip

My application are as follows

Tab1-contain
 RadGrid
Tab2-contain
  RadScheduler
Tab3-Contain
 RadGrid
Tab4-contain
    RadGrid.


On client side event of appointment delete.
I am opening radwindow. On ok click of radwindow button i closed the window and refreshing the parent page by _dopostback.
But When i goes from Tab2 to any other tab.
The radgrid skin are removed.

How can i fixed this problem.

Thanks
.

Maria Ilieva
Telerik team
 answered on 22 Oct 2008
1 answer
333 views
I am using a databound RadDatePicker in a custom edit form of a RadGrid. How do I set the default date to the current date?
Daniel
Telerik team
 answered on 22 Oct 2008
1 answer
86 views
I have a radwindow that opens up on a toolbar button...  I would like to load the dialog window brandnew with the navigationurl.

I tried setting reloadonshow=true which does reload the window..

however there is functionatly that runs only on first load, Not Page.IsPostBack..  so this doesn't fire on the "reload"  Is there a another way?

Georgi Tunev
Telerik team
 answered on 22 Oct 2008
6 answers
153 views
Hello,
       We have a issue with telerik controls while the page is postbacked. Here is the situation. We have a telerik combobox followed by telerik text boxes and a asp button. Telerik combobox has a OnSelectedIndexChanged event and the telerik boxes its own OnTextChanged events. When we hit server click event of asp button it first fires all the text change events and then it goes to combobox. It is not going in control order. We have a few things doing on combobox change event as it occurs last we are not able to proceed. If we replace standard asp combobox and asp textbox then it goes in the order. Is this is a know issue. Please let me know. Below is my sample test application where i faced this problem. 

Regards,
Elango

<

asp:ScriptManager ID="ScriptManager1" runat="server" />

<div>

<asp:DropDownList ID="ddl" runat="server"

onselectedindexchanged="ddl_SelectedIndexChanged">

<asp:ListItem Text="test1">

</asp:ListItem>

<asp:ListItem Text="test2"></asp:ListItem>

<asp:ListItem Text="test3"></asp:ListItem>

</asp:DropDownList>

<asp:Button ID="btn" Text="button" runat ="server" />

<telerik:RadComboBox ID = "TypeComboBox" runat="server" MarkFirstMatch= "True" Width = "225px"

Skin="Vista" OnTextChanged="TypeComboBox_TextChanged"

OnSelectedIndexChanged="TypeComboBox_SelectedIndexChanged">

<CollapseAnimation Type = "OutQuint" Duration = "200" ></CollapseAnimation>

<Items>

<telerik:RadComboBoxItem Text="A" />

<telerik:RadComboBoxItem Text="B" />

</Items>

</telerik:RadComboBox>

<telerik:RadTextBox ID="RateTextBox" runat="server" OnTextChanged="RateTextBox_TextChanged"

MaxLength="30" Skin="Default" Width="225px"></telerik:RadTextBox>

 

<telerik:RadTextBox ID = "NameTextBox" runat = "server" OnTextChanged = "NameTextBox_TextChanged" Width="225"

Skin = "Default" MaxLength="30"></telerik:RadTextBox>

<asp:TextBox ID="txt" OnTextChanged="txt_TextChanged" runat="server"></asp:TextBox>

</div>


c# 

protected

void ddl_SelectedIndexChanged(object sender, EventArgs e)

{

Response.Write(ddl.Text);

}

protected void TypeComboBox_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)

{

Response.Write(e.Text);

}

protected void NameTextBox_TextChanged(object sender, EventArgs e)

{

Response.Write(((

RadTextBox)sender).Text);

}

protected void RateTextBox_TextChanged(object sender, EventArgs e)

{

Response.Write(((

RadTextBox)sender).Text);

}

protected void TypeComboBox_TextChanged(object sender, EventArgs e)

{

Response.Write(

"text change");

}

protected void txt_TextChanged(object sender, EventArgs e)

{

Response.Write(

"asp text change");

}

Rosi
Telerik team
 answered on 22 Oct 2008
1 answer
113 views
Just a question out of curiosity, What we'd like to have in our application is a web simulation of the way that the Visual studio sliders work.

At the moment it is possible to dock one Pane ontop the sliding zone. by pressing the "Pins" at the top of the pane. so when this item is pinned, is it possible to allow users to still roll over the other SlidingPanes and for these to appear ontop of the docked pane? but not actually docking them, just expanding them so when the mouse disappears from this area the SlidingPane will unexpand and the original docked pane still appears..

Hope that makes sense

Thanks for your time
Regards
Kevin R.
Svetlina Anati
Telerik team
 answered on 22 Oct 2008
2 answers
108 views
Hi,

when I minimize a window I get in the titlebar the restore button.
But what I want is, when I minimize a window there should be the maximize button. Or pressing the restore button should maximize the window.
How can I achieve this?

Thank you for your answers.

Thomas
Tommy
Top achievements
Rank 1
 answered on 22 Oct 2008
1 answer
165 views

Hi,

I am using a RadSplitter to divide the page horizontally in a top section and content section. The content section has a RadSplitter as well, to divide it vertically in a sliding zone on the left and a "main" area, which will held the actual page's content.

Using the default skin, this works excellent, but switching to the Vista skin, I get scrollbars in the lower section. This happens on IE7, FF3 and Safari (not tested on other browsers).

The code I'm using:


 

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

 

<telerik:RadScriptManager ID="ScriptManager1" runat="server">

 

</telerik:RadScriptManager>

 

<telerik:RadSplitter ID="RadSplitter1" runat="server" FullScreenMode="True" Orientation="Horizontal"

 

BorderSize="0" BackColor="Transparent" VisibleDuringInit="False"

 

PanesBorderSize="0" SplitBarsSize="" EnableEmbeddedSkins="true" Skin="Vista">

 

<telerik:RadPane ID="RadPane1" runat="server" Height="60">

 

</telerik:RadPane>

 

<telerik:RadSplitBar ID="RadSplitBar1" runat="server" EnableResize="false" Visible="false" />

 

<telerik:RadPane ID="RadPane2" runat="server">

 

<telerik:RadSplitter ID="RadSplitter2" runat="server" VisibleDuringInit="false" EnableEmbeddedSkins="true"

 

Skin="Vista">

 

<telerik:RadPane ID="RadPane3" runat="server" Width="25" Locked="true">

 

<telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" Width="25" ClickToOpen="true">

 

<telerik:RadSlidingPane ID="RadSlidingPane1" Title="Zone 1" runat="server" Width="200"

 

TabView="TextOnly" MaxWidth="200" MinWidth="200" EnableResize="false">

 

</telerik:RadSlidingPane>

 

<telerik:RadSlidingPane ID="RadSlidingPane2" Title="Zone 2" runat="server" Width="200"

 

TabView="TextOnly" MaxWidth="200" MinWidth="200" EnableResize="false">

 

</telerik:RadSlidingPane>

 

<telerik:RadSlidingPane ID="RadSlidingPane3" Title="Zone 3" runat="server" Width="200"

 

TabView="TextOnly" MaxWidth="200" MinWidth="200" EnableResize="false">

 

</telerik:RadSlidingPane>

 

</telerik:RadSlidingZone>

 

</telerik:RadPane>

 

<telerik:RadSplitBar ID="RadSplitBar2" runat="server" Visible="false" />

 

<telerik:RadPane ID="RadPane4" runat="server">

 

</telerik:RadPane>

 

</telerik:RadSplitter>

 

</telerik:RadPane>

 

</telerik:RadSplitter>

 

</form>

 


Is there a suggested fix for this or am I doing something wrong?

Svetlina Anati
Telerik team
 answered on 22 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?