Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
452 views
Hi,

Can you please tell me how I can get the headercontextmenu to show up when a user left clicks on a column's header, instead of the usual showing up on right click only?

Currently, left-clicking sorts the column by default. However, since the context menu (that shows up when you right click the header) includes options for sorting ascending or descending, as well as grouping/filtering, etc, we would like the left click to show the context menu.

Is there a mouseclick event I would need to capture or something? Any help is greatly appreciated!

Thanks

Dan
David
Top achievements
Rank 1
 answered on 03 Apr 2013
6 answers
326 views
HI,

I read a lot of articles about this problem but none answer my case :-(

So here is my problem:

I have a complex page with several user control and when i click on the linkbutton (or button) of the commanditemTemplate :
<CommandItemTemplate>
    <table class="rgCommandTable" border="0" style="width:100%;">
        <tr>
            <td style="text-align: left">
                <asp:Panel ID="MakeLotDistribution" runat="server">
                    <asp:Button ID="MakeLotDistributionButton" runat="server" CausesValidation="False" title="Faire un lot de distribution" CommandName="InitInsert" class="rgAdd" OnClientClick="if (!checkIfSelected(this)) return;" />
                    <asp:LinkButton ID="MakeLotDistributionlien" runat="server" CausesValidation="False" Text="Faire un lot de distribution" CommandName="InitInsert" OnClientClick="return checkIfSelected(this);" />
                </asp:Panel>
            </td>
            <td style="text-align: right">
                <asp:Button ID="RefreshButton" runat="server" Text=" " title="Rafraîchir" class="rgRefresh" />
                <asp:LinkButton ID="RebindGridButton" runat="server" CausesValidation="False" >Rafraîchir</asp:LinkButton>
            </td>
        </tr>
    </table>
</CommandItemTemplate>

I get this error in the javascript console:
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

i tried to add :

protected override void OnInit(EventArgs e)
{
    RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(this.DistributionItemGrid);
}

with this line i don't have the exception but that process a full postback and so the first radgrid is collapse..
i also tried with RegisterAsyncPostBackControl but i get the error like if there was nothing

here is the full hierarchy, i use dotnetnuke so i can't change the page validation
ascx ->
ascx -> radAjaxPanel -> radMultipage -> RadPageView ->
ascx -> radgrid -> Nesteviewtemplate -> 
ascx ->  radAjaxPanel -> radMultipage -> RadPageView ->
ascx -> RadAjaxPanel -> radgrid ->
 CommandItemTemplate -> LinkButton

Thank you very much for your time :-)
mathieu
Top achievements
Rank 1
 answered on 03 Apr 2013
2 answers
231 views
my codes upload files with RadAsyncUpload (telerik.web.ui version 2012.3.1016.40), when I uploaded single file, the server event FileUploaded worked well. But when I selected multiple files to upload, the FileUploaded event throw FileNotFoundException at SaveAs(...).

I monitored the temporary folder while uploaded multiple files, all files were uploaded and stored in the temporary folder, but after the first one or two uploaded file(s) were successfully saved, the other files disappeared (were deleted). so when the codes ran to SaveAs, it threw FileNotFoundException. I didn't set TemporaryFileExpiration, so it should be default (4 hours).

So, my question is why those files disappeared after the first files were saved? 

the aspx file section:
=========================================
<div id="uploader">
    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" Culture="zh-CN" EnableEmbeddedSkins="False" 
        EnableInlineProgress="false" TemporaryFolder="~/Temp" Skin="Windows7" OnFileUploaded="RadAsyncUpload1_FileUploaded"
         AllowedFileExtensions="mp3,wav" MultipleFileSelection="Automatic">
    </telerik:RadAsyncUpload>
    <asp:Button ID="Upload" runat="server" ClientIDMode="Static" Text="Upload" Enabled="true" />
    <telerik:RadProgressManager ID="RadProgressManager1" runat="server" RefreshPeriod="10" />
    <telerik:RadProgressArea ID="RadProgressArea1" runat="server" DisplayCancelButton="true" EnableEmbeddedSkins="false"
        Skin="Windows7" Culture="zh-CN">
    </telerik:RadProgressArea>
</div>

the c# code in FileUploaded event:
==========================================
protected void RadAsyncUpload1_FileUploaded(object sender, FileUploadedEventArgs e)
{
        string filewebpath = "Upload/" + System.DateTime.Now.ToString("yyyy-MM-dd") + "/" + ddlWorkSegment.SelectedItem.Text;
        string filelocalpath = Server.MapPath("~/" + filewebpath);
        string fileduration = "";
        MembershipUser u = Membership.GetUser(User.Identity.Name);
 
        // create|check target folder
        if (!System.IO.Directory.Exists(filelocalpath))
        {
            try
            {
                System.IO.Directory.CreateDirectory(filelocalpath);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        foreach (UploadedFile uf in RadAsyncUpload1.UploadedFiles)
        {  
            uf.SaveAs(filelocalpath + "\\" + uf.FileName.ToLower(), true);
            // here is codes for inserting file information into database
        }
        // refresh gridview to show file list
        gdvwFileList.DataSourceID = sqldsFileList.ID;
}



X
Top achievements
Rank 1
 answered on 03 Apr 2013
7 answers
263 views
Is it possible to have both edit modes from the grid working together? Here is the scenario. I have Radgrid which is opened in inplace editor with limited columns with edit button at the end. If user clicks the edit button, it should popup the edit form with more columns.

I have 2 radgrids currently doing these things separately in separate pages and I am trying to merge this functionality for users to have one page to edit. I am having trouble doing it. Any work around would be much appreciated? I was thinking of doing radwindow but then I cannot use RadGrid inbuilt insert/edit functionalities. 
Ganapathy
Top achievements
Rank 1
 answered on 03 Apr 2013
3 answers
178 views
I couldn't seem to find a configurable option for animation speed on those nice chart.
I think since much of their "power" as compared to regular Chart control comes from animation and interactivity, an animation speed parameter would be a nice addon (and maybe even simple to add).
Also I think that Kendo charts still looks better, in particular the PIE chart on Kendo is awesome, both the animation (kind of bouncing) and the graphic. The suggestion is to render it similar.

Thanks for your great support as always.
Danail Vasilev
Telerik team
 answered on 03 Apr 2013
3 answers
133 views
i have a combobox with checkboxes...

i need a javascript that will check/uncheck all items in the list....

here is my markup...

------------------------------------------------

 

<telerik:RadComboBox ID="cmbDeptDCVL" runat="server" AllowCustomText="false" HighlightTemplatedItems="True" Width="100"

 TabIndex="6" DropDownWidth="320px" >

 <HeaderTemplate>

 <table>

 <tr>

 <td width="20">

 <asp:CheckBox ID="chkAllDCVL" runat="server" ToolTip="Select/Deselect All" Text="" />

 </td>

 <td width="80"> Dept </td>

 <td width="220">Description </td>

 </tr>

 </table>

 </HeaderTemplate>

 <ItemTemplate>

 <table>

 <tr align="left">

 <td width="20">

 <asp:CheckBox runat="server" ID="chkSingleDCVL" Text="" />

 </td>

 <td width="80" align="left"> <%#CType(Container.DataItem, PhysicalInventory.Models.ApplCompStructInfo).DeptId%> </td>

 <td width="220" align="left"> <%#CType(Container.DataItem, PhysicalInventory.Models.ApplCompStructInfo).DeptShortDesc%> </td>

 </tr>

 </table>

 </ItemTemplate>

  

<CollapseAnimation Duration="200" Type="OutQuint" />

 </telerik:RadComboBox>

 -----------------

any help

Thanks

Hristo Valyavicharski
Telerik team
 answered on 03 Apr 2013
1 answer
138 views
Hi,

I have a requirement where I have to show multi column radcomboboxes in 4 columns of telerik Grid.Grid will have around 700 records with out pagination.I am using LoadOnDemand Combobox. But when I try to open a combobox , Items are not getting loaded to combobox.When grid records are around 30, Combobox loads the items normally.Please help me how to solve this issue.

Thanks
Himagiri
Hristo Valyavicharski
Telerik team
 answered on 03 Apr 2013
3 answers
130 views
I have a toolbar in a grid CommandItemTemplate. The toolbar contains a TemplateButton and the template holds a label, a combobox and a button. It appears that clicking anywhere within the template button causes the grid ItemCommand event to fire. For instance, clicking on the lable fires the GridCommand event. The CommandName is empty when these events are fired so it doesn't cause any obvious problems, but I am wondering if there is a way to prevent this behavior. I only want the ItemCOmmand event to be fired when the user clicks on the button in the template... not when they make a selection in the combo box or click anywhere in the Button Template.
Kostadin
Telerik team
 answered on 03 Apr 2013
1 answer
101 views
Using the Hay skin causes all axis labels to disappear. 

Forest:
<text fill="#3c4c30" style="font: 16px Arial,Helvetica,sans-serif" transform="translate(-6,6) rotate(-90,25.5,193.25)" fill-opacity="1" y="200" x="10">KGs</text>

Hay:
<text fill="WHITE" style="font: 16px Arial,Helvetica,sans-serif" transform="translate(-6,6) rotate(-90,25.5,193.25)" fill-opacity="1" y="200" x="10">KGs</text>

You can see this by going to your demo page and selecting the Hay skin.
http://demos.telerik.com/aspnet-ajax/htmlchart/examples/overview/defaultvb.aspx

Any work around available?
Danail Vasilev
Telerik team
 answered on 03 Apr 2013
6 answers
147 views
I have the following problem when using compatibility mode in IE9 (so possibly an IE7 problem).

If you paste the following text into the HTML view:

<p>This<o:p></o:p></p>
<p>Is<o:p></o:p></p>
<p>Broken<o:p></o:p></p>

Click design and it looks as expected, however then click html and following html is created:

This<o:p _rdeditor_exists="1"></o:p>Is<o:p _rdeditor_exists="1"></o:p>Broken<o:p _rdeditor_exists="1"></o:p>

Which has removed all <p> tags. This doesn't happen in Chrome, Firefox, Opera, or IE9 in standard mode.

Thanks.
Rumen
Telerik team
 answered on 03 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?