Hi guys!
Sorry, dumb question:
How can I show a lightbox automatically when the page loads?
I have a login form that I would like to pop up after the page "login.aspx" is loaded ... all I get is an empty page ....
"<asp:LoginView ID="LoginView1" runat="server">
<AnonymousTemplate>
<asp:Login ID="Login1" runat="server">"
How can I achieve that?
Thanks in advance for your help
Tom


I'm using the RadCloudUpload to load files to S3 but want to resize them before they are uploaded. I can't seem to find any examples of how to do this. Is this possible and if so, can you point me in the right direction?
Thanks!
Issue 1:
I'm trying to add a radcolorpicker to a grid such that when inserting or updating a row, the color picker will display and it's selected value will show in the "Color" column field.
Using a templates i've added it to the edit column, but it doesn't do anything, can't even select colors, and when compiled and ran I get a javascript error: "Sys" is undefined.
I'm sure I have the basic idea of how to use it wrong. Of course. :)
I have a scriptmanager in place, although I'm not going to speculate on what that does. :)
Any ideas on what I'm missing, or doing wrong?
Issue 2:
| protected void RadColorPicker1_ColorChanged(object sender, EventArgs e) |
| { |
| Label1.Text = ColorTranslator.ToHtml(RadColorPicker1.SelectedColor); |
| } |
When compiling this gives me a compile time Error --
"The name 'RadColorPicker1' does not exist in the current context ..."
How do I ensure it's context?
Al
| <radG:RadGrid |
| ID="RadGrid2" runat="server" |
| Height="100px" |
| Width="500px" |
| Title="Rules" |
| BorderStyle="Solid" |
| BorderWidth="1px" |
| DataSourceID="ObjectDataSource1" |
| GridLines="None" |
| AllowAutomaticInserts="True" |
| AllowAutomaticUpdates="True" |
| AutoGenerateColumns="False" |
| MasterTableView-AllowPaging="true" |
| OnDeleteCommand="RadGrid2_DeleteCommand" |
| OnPreRender="RadGrid2_PreRender" |
| OnItemEvent="RadGrid2_ItemEvent" |
| OnItemInserted="RadGrid2_ItemInserted" |
| OnItemUpdated="RadGrid2_ItemUpdated" |
| OnCancelCommand="RadGrid2_CancelCommand" |
| OnDataBound="RadGrid2_DataBound" > |
| <MasterTableView |
| DataKeyNames="idExceptionRule" |
| DataSourceID="ObjectDataSource1" |
| AllowPaging="True" > |
| <ExpandCollapseColumn Visible="False"> |
| <HeaderStyle Width="19px" /> |
| </ExpandCollapseColumn> |
| <RowIndicatorColumn Visible="False"> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <Columns> |
| <radG:GridBoundColumn DataField="decMin" HeaderText="From" UniqueName="From"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="decMax" HeaderText="To" UniqueName="To"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="hexColourFont" HeaderText="Color" UniqueName="Color"> |
| <ItemStyle BackColor="White" BorderColor="#404040" BorderStyle="Solid" BorderWidth="1px" |
| HorizontalAlign="Left" VerticalAlign="Middle" /> |
| </radG:GridBoundColumn> |
| <radG:GridTemplateColumn DataField="hexColourFont" ShowSortIcon="False" UniqueName="TemplateColumn"> |
| <EditItemTemplate> |
| <telerik:RadColorPicker ID="RadColorPicker1" runat="server" Preset="Web216" |
| ShowIcon="True" OnDataBinding="RadColorPicker1_ColorChanged" AutoPostBack="True" OnColorChanged="RadColorPicker1_ColorChanged"> |
| </telerik:RadColorPicker> |
| <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> |
| </EditItemTemplate> |
| </radG:GridTemplateColumn> |
| <radG:GridEditCommandColumn> |
| </radG:GridEditCommandColumn> |
| <radg:GridButtonColumn CommandName="Delete" Text="Delete" |
| UniqueName= "DeleteColumn" ButtonType="ImageButton" ImageUrl=".\delete.gif" /> |
| </Columns> |
| <EditFormSettings> |
| <EditColumn UniqueName="EditCommandColumn1"> |
| </EditColumn> |
| </EditFormSettings> |
| </MasterTableView> |
| <ValidationSettings CommandsToValidate="PerformInsert,Update,Delete" /> |
| </radG:RadGrid> |


It is possible resize icon added in searchboxbutton?. I'have a bootstrap page that changes font size
<telerik:RadSearchBox ID="rsbGenero" runat="server" Skin="Bootstrap" RenderMode="Lightweight" Width="100%" MaxResultCount="10" DataValueField="ID" DataTextField="NOM" DataKeyNames="ID, NOM" DataSourceID="SqlDataSource" OnDataSourceSelect="rsbGenero_DataSourceSelect" OnSearch="radsearchbox_Search" OnButtonCommand="radserchbox_ButtonCommand" OnClientSearch="OnClientSearch" OnClientButtonCommand="OnClientButtonCommand"> <DropDownSettings Height="300"> </DropDownSettings> <Buttons> <telerik:SearchBoxButton CommandName="AddGenero" Position="Left" AlternateText="<%$ Resources:appGlobales,Alta %>" ImageUrl="../../imagenes/Telerik/Add-icon.png" /> </Buttons></telerik:RadSearchBox>
I've tried it by CSS (cssclass on the button) but I can't do it. I also add another button dynamically (on search):
SearchBoxButton btnClean = new SearchBoxButton();btnClean.ImageUrl = "~/imagenes/Telerik/close-icon.png";btnClean.Position = SearchBoxButtonPosition.Right;btnClean.CommandName = "Clean";searchBox.Buttons.Add(btnClean);
Thank you in advance

Hi sir,
I use radradiobuttonlist in that i have two item on item i too long and i use radwindow in that i show the radio button. in that first item is go outside the window.
the example is show in screenshot.
Note :
I need wrap text pls reply ASPA

Hi !
Is the first time i've got this problem and i'm sure is not unique for my next years.
Explanations :
A listview (with 5 records for example) generate 5 rows with link, data and buttons(full postback) and 2 buttons for ajaxPostback.
<asp:ListView runat="server" ID="lvTest" OnItemCommand="lvTest_ItemCommand" DataKeyNames="Idkey" > .... </asp:ListView>
2 buttons :
- One :
CommandArgument='<%#Eval("MyIDForTreatment1") %>' CommandName="CmNameButton1"- Second :
CommandArgument='<%#Eval("MyIDForTreatment2") %>' CommandName="CmNameButton2"RadAjaxManager (conditional is for specifics button for fullpostback (example : download document):
<telerik:RadAjaxManager ID="RAM1" runat="server" UpdatePanelsRenderMode="Inline" ClientEvents-OnRequestStart="conditionalPostback" > <telerik:AjaxSetting AjaxControlID="lvTest" EventName="ItemCommand"><UpdatedControls> <telerik:AjaxUpdatedControl ControlID="Zone1" /> </UpdatedControls></telerik:AjaxSetting> </telerik:RadAjaxManager> in code behind :
Protected Sub lvTest_ItemCommand(sender As Object, e As ListViewCommandEventArgs) Case "CmNameButton1" 'update content of zone 1 and visible true Case "CmNameButton2" 'update content of zone 2 and visible true End SelectEnd Sub
how to specify if i click on button1 : update Zone1
how to specify if i click on button2 : update Zone2
can't set commandName in AjaxSetting eventname ? for distinguished sender event ?
thanks for your help !

I've done drag and drop on other grids but for some strange reason, when I add the drag and drop column to the grid I get another (first) postback when I click on the containing tab. No client side script, no events on tab clicks for the tab control. So strange.
<telerik:GridDragDropColumn HeaderStyle-Width="18px" ></telerik:GridDragDropColumn>I am using a javascript to check for unsaved changes, but when editing, adding a new line or refreshing the grid, the unsaved changes message box appears. how can i stop this? javascript code below:
<script type="text/javascript">
// Store form state at page load
var initial_form_state = $('#form1').serialize();
// Store form state after form submit
$('#form1').submit(function () {
initial_form_state = $('#form1').serialize();
});
// Check form changes before leaving the page and warn user if needed
$(window).bind('beforeunload', function (e) {
var form_state = $('#form1').serialize();
if (initial_form_state != form_state) {
var message = "You have unsaved changes on this page. Do you want to leave this page and discard your changes or stay on this page?";
e.returnValue = message; // Cross-browser compatibility (src: MDN)
return message;
}
});
</script>
