Is there a tool to take photographs and or videos using telerik?
At the image field of my table to browse in images and documents, we are looking at possibilities of being able to take photos
Hello,
I noticed that both the command items "Cancel changes" and "Refresh" fire an event with the name "RebindGrid".
This is happening for both the client side (ClientEvents.OnCommand) and the server side (onItemCommand). And we can't add an argument for those native commands.
So we have a way to intercept those actions (the 2 events I mentionned above) but we can't know if the user has clicked on the "Cancel changes" button or the "Refresh" Button. That's too bad !
I note that we don't have this issue with the "Save changes" button and the "Add new record" button which have their own command names.
Is this something that could be changed in a future release ?
Thank you.
Hi,
Could I achieve to set image to full width of the browser, and it scale up or down on zoom in or out?
Cheers,
Duy
We need to edit the menu/submenu names that are displaying in attachment by double clicking on it.
Is there any possibility to achieve that goal?
<
telerik:RadAjaxLoadingPanel
runat
=
"server"
ID
=
"radLoadingPanel"
/>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"radTabStrip"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"radTabStrip"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"radCenterFrame"
LoadingPanelID
=
"radLoadingPanel"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"radCenterFrame"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"radCenterFrame"
LoadingPanelID
=
"radLoadingPanel"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
script
type
=
"text/javascript"
>
//function radTabStrip_OnClientSelecting(sender, args) {
// if (args.get_tab().get_pageViewID()) {
// alert(args.get_tab().get_test());
// args.get_tab().set_postBack(false);
// }
//}
</
script
>
<
div
>
<
telerik:RadTabStrip
ID
=
"radTabStrip"
runat
=
"server"
SelectedIndex
=
"0"
MultiPageID
=
"radCenterFrame"
OnTabClick
=
"radTabStrip_TabClick"
Orientation
=
"HorizontalTop"
>
</
telerik:RadTabStrip
>
<
telerik:RadMultiPage
ID
=
"radCenterFrame"
runat
=
"server"
SelectedIndex
=
"0"
OnPageViewCreated
=
"radCenterFrame_PageViewCreated"
/>
</
div
>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
RadTab skillTab = new RadTab();
skillTab.Text = "Tab1";
radTabStrip.Tabs.Add(skillTab);
RadTab certTab = new RadTab();
certTab.Text = "Tab2";
radTabStrip.Tabs.Add(certTab);
RadTab aspTab = new RadTab();
aspTab.Text = "Tab3";
radTabStrip.Tabs.Add(aspTab);
RadTab tpTab = new RadTab();
tpTab.Text = "Tab4";
radTabStrip.Tabs.Add(tpTab);
RadPageView pageView = new RadPageView();
pageView.ID = skillTab.Text;
radCenterFrame.PageViews.Add(pageView);
skillTab.PageViewID = pageView.ID;
}
}
protected void radCenterFrame_PageViewCreated(object sender, RadMultiPageEventArgs e)
{
string page = e.PageView.ID;
switch (page)
{
case "Tab1":
AddControl("~/_ControlTemplates/Proj/Tab1Control.ascx", e);
break;
case "Tab2":
AddControl("~/_ControlTemplates/Proj/Tab2Control.ascx", e);
break;
case "Tab3":
AddControl("~/_ControlTemplates/Proj/Tab3Control.ascx", e);
break;
case "Tab4":
AddControl("~/_ControlTemplates/Proj/Tab4Control.ascx", e);
break;
}
}
protected void radTabStrip_TabClick(object sender, RadTabStripEventArgs e)
{
AddPageView(e.Tab);
e.Tab.PageView.Selected = true;
}
private void AddPageView(RadTab tab)
{
RadPageView pageView = new RadPageView();
pageView.ID = tab.Text;
radCenterFrame.PageViews.Add(pageView);
tab.PageViewID = pageView.ID;
}
private void AddControl(string Path, RadMultiPageEventArgs e)
{
Control userControl = Page.LoadControl(Path);
userControl.ID = e.PageView.ID + "_usercontrol";
e.PageView.Controls.Add(userControl);
}
Hi,
We have a scenario whereby we have developed a user control that contains 3 related RadCombBox controls. Each of the comboboxes is loaded via a webservice call with the the parameter used for the second coming from the selected value of the first and the parameter used for the third coming from the selected value for the second.
Server side, setting this up is no problem, and when the SelectedItemChanged even is fired we do a postback and reset the depedent box(es) web parameters. However, when the user deletes the selected value from the first, say, there's no need to do a postback we just want to clear the items in the second and third and clear the web parameters.
Here's our code
onClassificationChanged: function (eventArgs) {
ClearRADCombo(this._nameComboID);
ClearRADCombo(this._valueComboID);
var classificationCombo = this.get_classificationCombo();
var value = classificationCombo.get_value();
if (value === undefined || value === "") {
this.resetParameter(this._nameComboID, "ClassificationID");
this.resetParameter(this._valueComboID, "NameID");
}
},
resetParameter: function (comboID, parameterName) {
var combo = $find(comboID);
var paramAttrib = combo.get_attributes().getAttribute("WebServiceParameters");
if (paramAttrib) {
var parameters = JSON.parse(paramAttrib);
for (var i = 0; i < parameters.length; i++) {
if (parameters[i].Name === parameterName) {
parameters[i].Value = "";
break;
}
}
var str = JSON.stringify(parameters);
combo.get_attributes().setAttribute("WebServiceParameters", str);
combo.get_element().setAttribute("WebServiceParameters", str);
}
},
function ClearRADCombo(controlId) {
var ctrl = window.$find(controlId);
if (ctrl) {
ctrl.clearItems();
ResetRADCombo(controlId);
}
}
function ResetRADCombo(controlId) {
var ctrl = window.$find(controlId);
if (ctrl) {
ctrl.clearSelection();
ResetValidators(controlId);
}
}
Note, the three combos are 'Classification', 'Name' and 'Value' (with Name dependent on 'Classification' and 'Value' dependent on name).
The onClassificationChanged function is linked with the 'OnBlur' event.
The problem is that sometimes the combo boxes successully clear the items but sometimes they don't (even though when debugging we can see that the code is still being hit).
Anybody know why the items wouldn't always clear?
<CommandItemTemplate> |
<asp:LinkButton ID="radWindowAdd" runat="server" CommandName="MultiAdd" Text="Multi-Add" /> |
</CommandItemTemplate> |
Hi
I have a Telerik grid that I need to be filled dynamicly.
I have a menu which is also dynamic, each item of the menu represented by a unique number, according to this number I know which SQL query to run and fill the grid accordingly.
The grid should have the options for: Insert, Update, Delete.
The grid should also have the option of filtering.
I need to change the columns headers as well at runtime while filling the grid.
What is the best way to implement those needs?
Thanks,
Eliran