Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
269 views
All

Here is my scenario...
I have a combo box control with some values in it. Based on the selected value, I run a stored procedure to return a table of data. Each of the items in the combo box will call a different stored procedure, which will return a totally different result set. I need to do everything dynamically without hard coding any column names. 

I can get this all to work. My issue comes when I do the sorting on the grid. With each sort, it initiates a postback thus resetting to the default value of the grid and not sorting the correct grid/datatable that was most recently populated. I have seen some topics similar around the forum, but nothing that I found helpful. 

Hope you guys can help!
- JB
Casey
Top achievements
Rank 1
 answered on 03 Apr 2013
4 answers
108 views
Hello Telerik,

In new version Q1 2013 I have issue how to show all items (records) when user typed to combobox some characters, choose filtered item and then delete selected item's text. In previous versions Q2 2013, this worked without problems.

You can find the same behaviour in demo example:
http://demos.telerik.com/aspnet-ajax/combobox/examples/overview/defaultcs.aspx

Steps to reproduce my problem.
1. Type to first combobox text anis
2. Records are filtered and just one record  has left with text Aniseed Syrup
3. Clik on selected item or press Enter key. Now, combobox has selected item
4. Click on same combobox stelected item and press Delete key

After set 4, normally all records had been shown, but in Q1 2013 nothing is shown. Is is bug or do I make some mistake ?

This problem is appeared only in IE browsers (v.8,v.9).

Please help me to solve this issue.

Best regrads

Vasssek 
Vasssek
Top achievements
Rank 1
 answered on 03 Apr 2013
4 answers
475 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
354 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
249 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
297 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
189 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
138 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
140 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
135 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?