Hi,
I currently use a splitter, within one of the panels I want to embed a youtube video and importantly allow the option for full screen:
<iframe width="560" height="315" src="https://www.youtube.com/embed/sNIMCdVOHOM" frameborder="0" allowfullscreen></iframe>
However because the way the 'RadPane' is constructed in the background it uses an iframe without the "allowfullscreen" flag here is the code telerik generates:
<telerik:RadPane ID="ContentPane" runat="server" ContentUrl="​MainPage.aspx">
Generates
<iframe name="ContentPane" id="RAD_SPLITTER_PANE_EXT_CONTENT_ContentPane" src="MainPage.aspx" frameborder="0" scrolling="auto" style="border: 0px; height: 191px; width: 824px;"></iframe>
If there any way I can append "allowfullscreen" onto this iframe?
Thanks
I'd like my Grid footer--where I have my grand totals to display--to move when rows within the grid are collapsed.
See screenshot for desired results.
Thanks!
Hello,
I am trying to use this example: http://docs.telerik.com/devtools/aspnet-ajax/controls/tilelist/how-to/select-a-tile-with-left-click
I works as expected on a desktop. My problem is that this example does not work when viewing the page on a touch screen device (iPhone for example). Any ideas of how you can get a tile to become selected by touching the tile on a mobile device?
Thanks in advance!
Hi everyone and firstly apologies if this post is in the wrong location but I am having issues with a couple of your controls. I have an asp page which used to use a dropdownlist to initially select a recipient which would then use its selectedValue as a select parameter for a datasource. On selectedindexchange I populate a radlistbox using the datasource. This all worked perfectly with no issues but I am now trying to introduce a radcombobox instead of the dropdownlist to allow me to search the items. The problem is on the selectedindexchange of the radcombobox I get a JScript runtime error 'Telerik.Web.UI.RadListBox' is null or not an object. I have updated the select parameters to use the new controls value and have tried a couple of things but cannot seem to resolve the issue.
Please any support will be greatly appreciated.
Regards
Charlie
<
telerik:RadNotification
ID
=
"rnSessionTimeOut"
runat
=
"server"
Skin
=
"Black"
AutoCloseDelay
=
"60000"
Title
=
"Continue Your Session"
TitleIcon
=
""
EnableRoundedCorners
=
"true"
ShowInterval
=
"61000"
Value
=
"Search.aspx"
OnCallbackUpdate
=
"OnCallbackUpdate"
Position
=
"Center"
>
<
ContentTemplate
>
<
div
class
=
"infoIcon"
>
<
img
id
=
"Img1"
src
=
"~/images/infoIcon.png"
runat
=
"server"
alt
=
"info icon"
/></
div
>
<
div
class
=
"notificationContent"
>
Time remaining: <
span
id
=
"timeLbl"
>60</
span
>
<
asp:Button
ID
=
"btnContinue"
runat
=
"server"
Text
=
"Continue Session"
OnClientClick
=
"ContinueSession(); return false;"
/>
</
div
>
</
ContentTemplate
>
</
telerik:RadNotification
>
<
script
type
=
"text/javascript"
>
//update the text in the label in RadNotification
//this could also be done automatically by using UpdateInterval. However, this will cause callbacks [which is the second best solution than javascript] on every second that is being count
function UpdateTimeLabel(toReset) {
var sessionExpired = (seconds == 0);
if (seconds == 0) {
stopTimer("timeLeftCounter");
//redirect to session expired page - simply take the url which RadNotification sent from the server to the client as value
window.location.href = $find("RadNotification1").get_value();
}
else {
var timeLbl = $get("timeLbl");
timeLbl.innerHTML = seconds--;
}
}
function ContinueSession() {
var notification = $find("rnSessionTimeOut");
//we need to contact the server to restart the Session - the fastest way is via callback
//calling update() automatically performs the callback, no need for any additional code or control
notification.update();
notification.hide();
//resets the showInterval for the scenario where the Notification is not disposed (e.g. an AJAX request is made)
//You need to inject a call to the ContinueSession() function from the code behind in such a request
var showIntervalStorage = notification.get_showInterval(); //store the original value
notification.set_showInterval(0); //change the timer to avoid untimely showing, 0 disables automatic showing
notification.set_showInterval(showIntervalStorage); //sets back the original interval which will start counting from its full value again
stopTimer("timeLeftCounter");
seconds = 60;
updateMainLabel(true);
}
</
script
>
Sub OnCallbackUpdate()
End Sub
Hello
I have a little problem with a GridButtonColumn in a RadGrid. First of all, the grid is completeley created by code. I need to manage editing, insert and delete operations. Everythimg works good, except that I would like to have a confirm message before the delete command occurs.
Here follows the code:
RadGrid grid = new RadGrid();
grid.ID = "instGrid";
grid.DataSourceID = "sqlInst";
grid.PageSize = 15;
grid.AllowPaging = true;
grid.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;
grid.AutoGenerateColumns = false;
grid.AllowAutomaticUpdates = false;
grid.AllowAutomaticInserts = false;
grid.AllowAutomaticDeletes = false;
grid.ItemCommand += new GridCommandEventHandler(instGrid_ItemCommand);
//2.1 Add Customers table
grid.MasterTableView.DataKeyNames = new string[] { "id_badmstorage", "value" };
grid.MasterTableView.EditMode = GridEditMode.EditForms;
grid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;
GridBoundColumn boundColumn = new GridBoundColumn();
boundColumn.DataField = "id_badmstorage";
boundColumn.HeaderText = "ID";
boundColumn.ReadOnly = true;
grid.MasterTableView.Columns.Add(boundColumn);
//2.2 SET SQL DATA SOURCE...
sqlInst.SelectCommand = "SELECT * FROM DataTable WHERE variableID=" + bv.ID + " AND siteID=438 AND dataStatus=0";
//3. Add grid columns...
GridTemplateColumn tempC = null;//new GridTemplateColumn();
tempC = new GridTemplateColumn();
tempC.DataField = "value";
tempC.HeaderText = bv.Name;
tempC.ItemTemplate = new MyTemplate("value", bv.CvIndex, true);
tempC.EditItemTemplate = new CustomEditTemplate("value", true, bv.Unit, bv.CvIndex);
grid.MasterTableView.Columns.Add(tempC);
//4. Edit commands
GridEditCommandColumn eCol = new GridEditCommandColumn();
grid.MasterTableView.Columns.Add(eCol);
eCol.UniqueName = "EditCommandColumn";
//5. delete command
GridButtonColumn delCol = new GridButtonColumn();
grid.MasterTableView.Columns.Add(delCol);
delCol.HeaderText = "Delete";
delCol.UniqueName = "Delete";
delCol.CommandName = "Delete";
delCol.ConfirmDialogType = GridConfirmDialogType.Classic;
delCol.ConfirmTitle = "Delete";
delCol.ButtonType = GridButtonColumnType.ImageButton;
// Add the grid to the placeholder
this.PlaceHolder1.Controls.Add(grid);
//AJAX SETTINGS...
AjaxSetting ajax = new AjaxSetting(grid.ID);
AjaxUpdatedControl up=new AjaxUpdatedControl();
up.ControlID=grid.ID;
ajax.UpdatedControls.Add(up);
up = new AjaxUpdatedControl();
ajax.UpdatedControls.Add(up);
RadAjaxManager1.AjaxSettings.Add(ajax);
The grid is created in the Page_Init event
A preview of the page can be found at this link (select INST_MODEL from the list)
If you try to delete a record, no confirm window appears (deletion is disabled for now)
Thanks
Diego​
I have a grid that uses a form template for editing the grid items. When the user clicks the edit command for a row in the grid it opens the FormTemplate that contains a FileExplorer. I need to then set the configuration path of the file explorer as it's different for each item in the grid.
It seems the FileExplorer paths can only be set on the page_load event, but at that time I don't have access to the GridEditFormItem that allows me to get the file explorer control and set the paths.
Is there a way to make this work? It seems pretty strange that the view paths can only be set in the page_event.
Thanks