Hi,
Here are my needs :
I would like to select multiple files to upload, then click "open" and at this moment (OnClientFilesSelected) I would like to do some tests against the file names. If file name does not validate the test, I would like to remove it from the files to upload (one by one). But in OnClientFilesSelected, I can only get the number of files and cancel the whole selection.
How can I have access to the selected files collection, edit it, and then continue ?
The final goal is to "group" files by their names (without extension) : if I upload a.pdf and a.png, I would like to have a row for a.pdf and create an associated input to it instead of creating a row for each file.
Do you have some ideas ? I didn't find what I want in the AsyncUpload API.
Hi,
How can i add dynamic templated items to ImageGallery?
I define a template:
class
ImageGalleryContentTemplate : ITemplate
{
public
String BackgroundImage {
get
;
set
; }
public
String HTMLTemplate {
get
;
set
; }
public
void
InstantiateIn(Control container)
{
String strC =
""
;
if
(BackgroundImage !=
""
)
strC = String.Format(
"<div style=\"background-image: url({0})\">{1}</div>"
, BackgroundImage, HTMLTemplate);
else
strC = HTMLTemplate;
container.Controls.Add(
new
LiteralControl(strC));
}
}
I tried to use it following way:
ImageGalleryTemplateItem igti =
new
ImageGalleryTemplateItem();
ImageGalleryContentTemplate template =
new
ImageGalleryContentTemplate();
template.BackgroundImage = strBigImgUrl;
template.HTMLTemplate = strTemplate;
template.InstantiateIn(igti);
template.InstantiateIn doesn't accept ImageGalleryTemplateItem and if i use InstantiateIn(ImageGalleryTemplateItem container) instead of InstantiateIn(Control container), i don't use container.Controls.Add(...), because ImageGalleryTemplateItem hasn't .Controls() property.
if I use igti.ContentTemplate = template instead of template.InstantiateIn(igti) project running without errors, but other slides than first not showing.
Please look at this page: http://v2.gom.com.tr/anasayfa
Just below the menu;
- First slider done with RadRotator. Customer wants selector dots and seamless animation.
- Second slider with RadImageGallery, which has this problem (running with igti.ContentTemplate = template).
- Third slider with RadImageGallery, but has only images and working perfectly. But customer wants texts and link button.
How can i add dynamic templated items to ImageGallery OR how to handle it with RadRotator?
the Server Template option in the examples provided for TabStrip do not fill in any of the tab views - instead put in a message that it was blocked by enhanced security
the machine I am working on is a Windows 10 from bought this summer (version 1703?)
Hi,
I have a Combobox that uses a itemtemplate that is bound to a class object and OnSelectedIndexChanged I need to get the dataitem of that item to get the class object but cant seem to get this to work. Any suggestions?
<
telerik:RadComboBox
runat
=
"server"
ID
=
"cmbOptions"
AutoPostBack
=
"true"
EmptyMessage
=
"Please select..."
OnSelectedIndexChanged
=
"cmbOptions_SelectedIndexChanged"
>
<
ItemTemplate
>
<
img
/>
<%#Eval("Text") %>
</
ItemTemplate
>
</
telerik:RadComboBox
>
private
webService.DetailedPart pa;s
protected
void
Page_Load(
object
sender, EventArgs e)
{
su = Common.getSession(Session);
service =
new
webService.SrvCoreClient();
pa = service.GetPart(su.id, partId);
if
(pa.GroupedParts !=
null
)
{
cmbOptions.EmptyMessage = pa.GroupedParts.Header;
cmbOptions.DataSource = pa.GroupedParts.GroupedParts;
cmbOptions.DataBind();
}
}
protected
void
cmbOptions_SelectedIndexChanged(
object
sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
//How do I get the dataitem of the selected index??
}