Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
Hi,
I Have a RadGrid in which I have enabled the headercontextmenu (EnableHeaderContextMenu="True" / EnableHeaderContextFilterMenu="True")

For a templatecolumn I want to disable the headercontextmenu. How do I do this?

Paul
Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Feb 2013
1 answer
874 views
Hi,
I want to be able to upload and download files (.doc, .docx, .pdf) to binary field in SQL Server database using RadGrid and AsyncUpload. A row in the grid should have a download link in the first column and document name and description in other columns. When in edit mode, I need to be able to upload file using AsyncUpload and add document name and description through textboxes in different collumns.
Please, is there any example of such scenario?
Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Feb 2013
6 answers
171 views
Hi
Question 1
I am using Radeditor. When I tried to change the skin I am getting a message skin assembly not found please add referecne to telerik.web.ui.skin.

Where should I download this from and if already this is downloaded on my machine which folder it is present

Question2
It adds grey background in the editor always. how to chaneg it to white background.

Question 3
It adds a grey bar at the end when in design mode. How to get rid of that.

I have also atatched two images showing the problem that is happening
Please advise
Sureshkumar
Top achievements
Rank 1
 answered on 21 Feb 2013
1 answer
81 views
Hi,

I need to use RadAsyncUpload to upload the files and then save the file into database in code-behind. Everything works fine except the "InputStream" throws a file not found exception. I looked at the folder where the files are uploaded. Originally, the file name contains a series of number then the actual file name. After post, the file got renamed back to the actual file name! That's why the UploadedFile.InputStream cannot find the file. If the file is renamed, the input stream should look for the file with the renamed file name.

I can go around this problem of course, but I think you guys should fix this issue. (I have the latest version of Telerik library.) By the way, I can't use the "OnFileUploaded" event because I need to create my own object first. Then, these files are the attachments of my object.

If you want to see some code:
.aspx:
<telerik:RadAsyncUpload runat="server" ID="rauAttachment" HideFileInput="true" MultipleFileSelection="Automatic" TargetFolder="~/UserFiles/Temp/" Localization-Select="Attach Files" Width="88" OnClientValidationFailed="RauValidationFailed" />

.aspx.cs: Submit button click event:
Stream stm = rauAttachment.UploadedFiles[0].InputStream; //File not found exception occurs.

Regards,

Roger
Roger
Top achievements
Rank 1
 answered on 21 Feb 2013
8 answers
175 views
Hi All!

I am trying to insert/delete RibbonBarMenuItems in RibbonBarMenu using Javascript clientside.
I cannot find any documentation on how this is done.

I have tried doing it the same as it is done in RadMenu:
    menu.trackChanges();
    menu.get_items().add(item);
    menu.commitChanges();
but this attempt was unsuccessful.

Any help will be much appreciated.
Thanks in advance!!
PieterDevill
Kate
Telerik team
 answered on 21 Feb 2013
1 answer
422 views

How can I validate that the file I have uploaded has right mime type if compared with the file extension?

I want to support all browsers. It means well that I must do the validation on the server. Or?
And how should I do?

Right now I use RadUpload and validates against the file extensions, it works well. But like I say I also want to make sure that the file extension matches the mine type.

Grateful for the tips!
Best regards,
Foppa

Plamen
Telerik team
 answered on 21 Feb 2013
1 answer
306 views
Hi,

I've implemented a load-on-demand radtabstrip with radmultipage using the telerik demo. This works fine. Each tab shows an ascx control which holds a different Radgrid.
I then tried to implement the RenderSelectedPageOnly by setting this to "true" & setting AutoPostBack to "true" on the TabStrip.
However, this did not work. When i load my page, the default tab loads & when i click on to another tab then this loads correctly.
BUT if i click back on to a tab i already viewed, it displays a blank tab with no radgrid. I tried to trace the AutoPostBack but it does not seem to be firing.
All i want to do is render the selected page of the TabStrip but when another tab is selected (regardless of whether it has been rendered before) load the newly clicked Tabs page contents.
My code is as follows:

HTML:
<telerik:RadTabStrip OnClientTabSelecting="onTabSelecting"     ID="RadTabStrip1" SelectedIndex="0"       runat="server" MultiPageID="RadMultiPage1"
    OnTabClick="RadTabStrip1_TabClick" Width="900px" AutoPostBack="true" >
</telerik:RadTabStrip>
 
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" OnPageViewCreated="RadMultiPage1_PageViewCreated" Width="900px" RenderSelectedPageOnly="true" >
</telerik:RadMultiPage>


JAVASCRIPT:
function onTabSelecting(sender, args) {
    if (args.get_tab().get_pageViewID()) {
        args.get_tab().set_postBack(false);
    }
}

.CS
protected void Page_Load(object sender, EventArgs e)
{      
     if (!Page.IsPostBack)
    {
        AddTab("MyForms");
        AddPageView(RadTabStrip1.FindTabByText("MyForms"));
        AddTab("MyApprovals");
        AddTab("MySystemsApprovals");
        AddTab("MyGateKeeperApprovals");
    }
}
 
private void AddTab(string tabName)
{
    RadTab tab = new RadTab();
    tab.Text = tabName;
    RadTabStrip1.Tabs.Add(tab);
}
 
private void AddPageView(RadTab tab)
{
    RadPageView pageView = new RadPageView();
    pageView.ID = tab.Text;
    RadMultiPage1.PageViews.Add(pageView);
    pageView.CssClass = "pageView";
    tab.PageViewID = pageView.ID;
}
 
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
{
    AddPageView(e.Tab);
    e.Tab.PageView.Selected = true;
}
 
protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
{
    string userControlName = e.PageView.ID + "CS.ascx";
 
    Control userControl = Page.LoadControl(userControlName);
    userControl.ID = e.PageView.ID + "_userControl";
 
    e.PageView.Controls.Add(userControl);
}

Can anyone tell me what i'm doing wrong or why the autopostback is not firing when a viewed tab is selected again?
Is there a different way of getting the TabStrip to render selected page only but reload a different tab when clicked on?

Regards,

Shuja



Nencho
Telerik team
 answered on 21 Feb 2013
5 answers
80 views
Hello

We are using Telerik V2010 - Q1.  It seems that there is an issue with using RadToolTipManager with RadGrid and RadAjaxManagerProxy in that the tooltip shows up but almost immediately disappears.  Could someone please suggest a fix if there is any?  We need to use the RadAjaxManagerProxy.

Thank you
Raka
Marin Bratanov
Telerik team
 answered on 21 Feb 2013
1 answer
62 views
Hi All,

I am new to this Telerik world, i need some help with a task, when a aspx webform is closed, it should invoke a code behind method and i need to do some cleanup of some custom objects. Heard from my techinical lead that i shud be using RAD control to do it but never worked on it. Any help is appreciated and code samples will help..

Thanks,
Srinivas.
Rumen
Telerik team
 answered on 21 Feb 2013
3 answers
211 views
Hi,

  I have a RadProgressManager and RadProgressArea on my ASPX Page which opens in a RadWindow.
<telerik:RadProgressManager id="Radprogressmanager1" runat="server" RegisterForSubmit="false" />            
                    <telerik:RadProgressArea id="RadProgressArea1" runat="server" /> 

We try to copy data from one table to another table when that copy is occuring the Progressmanager kicks in ans shows how much percent of copying is done. 

After the copying is started it, progress bar is getting stuck in certain point and giving the attached error message.
 RadUploadAjax callback error : Source url returned error : 12002.

I don't know why it is behaving like this.

I registered it correctly in web.config. Don't what is triggering this issue.

Any help would be appreciated.

Thanks,
Nirmala Kalakonda


 
  


Suthish
Top achievements
Rank 2
 answered on 21 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?