Is it possible to access controls in the InsertItemTemplate of the GridTemplateColumn? I have the following:
<telerik:GridTemplateColumn UniqueName="Company" HeaderText="Company Name"> <ItemTemplate> <asp:Label ID="lblName" runat="server" Text='<%#Eval("Name")%>'></asp:Label> </ItemTemplate> <InsertItemTemplate> <telerik:RadAutoCompleteBox runat="server" ID="CompanyList" EmptyMessage="select company"></telerik:RadAutoCompleteBox> </InsertItemTemplate></telerik:GridTemplateColumn>In the code behind I have:
if (e.Item is GridEditableItem && e.Item.OwnerTableView.IsItemInserted){ GridEditableItem item = e.Item as GridEditableItem; RadAutoCompleteBox ab = item["Company"].FindControl("CompanyList") as RadAutoCompleteBox;}I also tried:
if (e.Item is GridDataItem && e.Item.OwnerTableView.IsItemInserted){ GridDataItem item = e.Item as GridDataItem; RadAutoCompleteBox ab = item["Company"].FindControl("CompanyList") as RadAutoCompleteBox;}In both cases ab returns null. When I placed the control inside ItemTemplate, I get the control. I also tried using FindControl on e.Item and item itself and still get null. Basically I want to add a datasource to the autocomplete box only when inserting...on edit I only show the label. I want to bind the control using Telerik Data Access.

Hi, I've a problem very stupid.
I want use a RadWindow as "Confirm dialog" for an action.
The problem is the text of RadWindow.
If I set the title of RadWindow directly work very well, if I use a variable as title the radwindow not work (click of button don't show me the radwindow) PAGE ASPX
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server"> <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> function confirmCallbackFn(arg) { if (arg) //the user clicked OK { __doPostBack("<%=HiddenButton.UniqueID %>", ""); } } </script> </telerik:RadCodeBlock> <asp:Button ID="Button1" Text="call the RadConfirm" OnClick="Button1_Click" runat="server" /> <asp:Button ID="HiddenButton" Text="" Style="display: none;" OnClick="HiddenButton_Click" runat="server" />
Example A : This Work
protected void Button1_Click(object sender, EventArgs e)
{
rwmMain.RadConfirm("Are you sure you want to perform this action?", "confirmCallbackFn", 300, 200, null, "Confirm");
}
Example B : This work
protected void Button1_Click(object sender, EventArgs e){ string message = "Are you sure you want to perform this action?"; rwmMain.RadConfirm(message , "confirmCallbackFn", 300, 200, null, "Confirm");}
Example c : This not work
protected void Button1_Click(object sender, EventArgs e)
{
string message = GetGlobalResourceObject("MainResources", "DeleteConfirmCompany").ToString();
rwmMain.RadConfirm(message , "confirmCallbackFn", 300, 200, null, "Confirm");
}
Example D : This not work
protected void Button1_Click(object sender, EventArgs e){ string message = lblDeleteConfirm.Text; rwmMain.RadConfirm(message , "confirmCallbackFn", 300, 200, null, "Confirm");}
I must translate the text.
Currently, We are using ‘telerik:RadUpload’control to browse file from network location. ‘telerik:RadUpload’ is not allowed to browse FTP site using IE; however we can browse FTP site using Firefox and Chrome browser.
How can we upload/download file from FTP site using IE browser??
Hi everybody,
I want to store uploaded files into Different drive (suppose E:drive) and want to specify upload file in web config file.
<add key="Telerik.AsyncUpload.TemporaryFolder" value="D:\temp-backup"/>
How to refer in the code block.
protected void RadAsyncUpload1_FileUploaded(object sender, FileUploadedEventArgs e)
{
List<ListItem> files = new List<ListItem>();
int counter = 1;
var file = e.File;
string targetFolder = AsyncUpload1.TargetFolder;
string targetFileName = System.IO.Path.Combine(targetFolder,
file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
while (System.IO.File.Exists(targetFileName))
{
counter++;
targetFileName = System.IO.Path.Combine(targetFolder,
file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
}
file.SaveAs(targetFileName);
}
where should i specify the appsetting string? THanks in advance
Hi,
I gave Items per request as 50 records. So 1st time you scroll the list has 50 Records,2nd time you scroll the list has 100 records and 3rd time you scroll the list has 150 records ..etc. I have total 4050 records are available.
But here problem is it starting at the beginning of the list instead of the next displayed records. i.e. when you scroll till the end and it loads next 50 records and jumps to first item of total loaded list instead pointing to the 51 record.
So how to start scroll from the next loaded list . i.e. 1st time you scroll will be at the start 1 Record, 2nd time scroll will be at the start of 51 record etc...

var masterTable = $find("<%= Radgrid1.ClientID %>").get_masterTableView();var rows = masterTable.get_dataItems();
Sorry I wasn't in web development for years... so this mobile design trend is completely new to me.
Anyways, supposed I want to go with a 3 column design. I want to be able to "minimize" the left column in XS or SM mode (so that I can make the column reappear by either clicking a tiny column, or swipe from the left bezel to screen. Is this possible?
If (e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("OPLEIDING_GEBIED_NIVEAU") > 0) Then CType(dataBoundItem.FindControl("chkIsBeroepsdeel"), CheckBox).Visible = FalseEnd Iffunction ItemCreated(sender, eventArgs) { var item = eventArgs.get_item(); if (item.get_dataKeyValue("OPLEIDING_GEBIED_NIVEAU") > 0) { item.findControl("chkDoorrekenen").style.display = 'none'; }}JavaScript runtime error: Object doesn't support property or method 'findControl'
Hello Telerik,
I am using ASP.Net Ajax Ribbon Bar control.
I am facing problem of flickering ribbon bar while refreshing.
My page completely loads in approximately 1 sec. Until the page is fully loaded, the Ribbon bar is partially created as attached image (on_page_loading.png).
And once the page is loaded, ribbon bar is completely created as attached image(after_page_load.png)
This happens at the time of page refresh as well as page postback.
I want ribbon bar to be created at once or at least appear only after it is completely created.
Please advise.