Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
125 views

I have an application on a site that uses the radasync upload. It is a two part application process. Everyone fills out the first page and upon the answer of a question, it'll load the second page with a certain control. These controls all contain a rad async upload and all have the same temp folder path and have the same expiration timeout. Occasionally, in the error logs I see that some errors come with cannot find file in temp folder. I thought at first i thought that it was the expiration time out was set to 2 hours so i changed all of them to 5 hours, but that did not seem to resolve the issue as I keep receiving these messages. The application does not have a lot of questions so I do not think that it would take long to complete the application and the users should be able to complete the application before the time out expires. Could it be that since all controls are writing to the upload temp folder, that there is conflict?

Hristo Valyavicharski
Telerik team
 answered on 09 Sep 2014
3 answers
165 views
Hi,

I was wondering if anyone had any suggestions as to the cause of an issue we're experiencing with the radgrid under the following scenario.  A user enters filters for grid and the grid updates to reflect the data based on the grid.  Everything works like it should so far.  If the user clicks on the edit icon for an Item in the grid, then the user is taken to the correct editing page for that Item.  Again, everything working properly.  The issue is that if the user has filtered on the grid and leaves the page open for a while (e.g., 15-20 min) then when they click on the edit icon to edit an Item they are taken to the Item that would have been the first one listed in the grid if there were no filters (instead of the actual Item they had clicked on).

For example, lets say I have a grid that contains the names Andy, Bob, and Joe, and by default all the names are shown.  If I filter on the name 'Bob' then the grid updates to show only that row, and if I click on the edit icon for that row I'm taken to an editing page for Bob's data.  All of that works as expected.

However, given the same scenario, if I were to leave the page inactive for a while and then click on the edit icon for the single row in the grid then I'm taken to the editing page for Andy which is what would've been the first row had I not filtered on the grid.

The issue causes problems because our users think they're editing an Item that they filtered on when in actuality they're editing the wrong Item (which is whatever would be the first Item in their default grid with no filtering.

Hopefully my example makes sense!  
Konstantin Dikov
Telerik team
 answered on 09 Sep 2014
2 answers
199 views
Freinds,

We are using RAD Chart control to display bar graphs in our ASP.NET web application which worked fine on Dev and QA servers. But when it was moved to production box, it worked fine first day but next day it started giving error "Error Loading Chart Image". Please find the trace below for your reference

Request path: /OneViewDashboard/ChartImage.axd    User host address: 172.21.253.97    User: PMSI\SeK4211    Is authenticated: True    Authentication Type: Negotiate    Thread account name: PMSI\oneviewprodsvc Thread information:    Thread ID: 50    Thread account name: PMSI\oneviewprodsvc    Is impersonating: False    Stack trace:    at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)   at Telerik.Web.UI.ChartHttpHandler.ProcessRequest(HttpContext context)   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Please note that it started working after restarting application pool but need to know what could have caused this issue. Thanks in advance.

Thanks,
Satish 
Danail Vasilev
Telerik team
 answered on 09 Sep 2014
3 answers
133 views
Hello,

I would to understand , how i can save in my database a new task on a Event

When i use OnTaskInsert

How it's work  , there are no documentation ?

How this event it's Fire ?

thanks Olivier

protected void RadGantt1_TaskInsert(object sender, Telerik.Web.UI.Gantt.GanttEventArgs e)
       {
           foreach (var item in e.Tasks)
           {
               this.oGanttTacheBo.title =  item.Title;
               this.oGanttTacheBo.parentid = item.ParentID;
               this.oGanttTacheBo.OrderID = item.OrderID;
               this.oGanttTacheBo.start = item.Start;
               this.oGanttTacheBo.end = item.End;
               this.oGanttTacheBo.PercentComplete = item.PercentComplete;
               this.oGanttTacheBo.Expanded = item.Expanded;
 
               // Here i can save in my database or i make a sql script ?
              // How this event it's FIRE ?
                   this.oGanttTacheBo.Save();
 
 
           }
       }


protected void RadGantt1_TaskInsert(object sender, Telerik.Web.UI.Gantt.GanttEventArgs e)
        {
            foreach (var item in e.Tasks)
            {
                item.Title = "Nouvelle tache "+DateTime.Now.ToString();
                item.ParentID = null;
                item.OrderID = 10;
                item.Start = DateTime.Now;
                item.End = DateTime.Now.AddDays(1);
                item.PercentComplete = Convert.ToDecimal("0,2");
                item.Expanded = false;
                item.Summary = false;
                //Response.Write(item.Start);
                /*try{
                    this.oGanttTacheBo.Add();
                    this.oGanttTacheBo.gat_parent_id    = Convert.ToInt32(item.ParentID);
                    this.oGanttTacheBo.gat_order_id     = Convert.ToInt32(item.OrderID);
                    this.oGanttTacheBo.gat_title        = item.Title;
                    this.oGanttTacheBo.gat_start        = item.Start;
                    this.oGanttTacheBo.gat_end          = item.End;
                    this.oGanttTacheBo.gat_avancement   = item.PercentComplete;
                    this.oGanttTacheBo.gat_expanded     = item.Expanded;
                    this.oGanttTacheBo.gat_summary      = item.Summary;

                    this.oGanttTacheBo.Save();
                }catch (Exception ex) {
                    //Response.Write(ex.Message);
                    BusinessLayer.TransactionRollback("");
                }*/

                //Response.Write("tache ajoutée");
            }
        }
Bozhidar
Telerik team
 answered on 09 Sep 2014
1 answer
289 views
Hi,

We are using Radio Combobox with multi select checkbox. I need to fire a client side event on checbkox click and henceforth I would like to use OnClientItemChecked. But this event is not firing. If my page is under updatepanel then could it create an issue.

Here is my below code-

<script language="javascript" type="text/javascript">
        function OnClientItemChecked(sender, eventArgs) {
            var item = eventArgs.get_item();          
        }
</script>

<telerik:RadComboBox ID="ddlClient" runat="server" Width="172px"  AllowCustomText="True" OnClientDropDownClosed="onDropDownClosing" OnClientItemChecked="OnClientItemChecked"
                        HighlightTemplatedItems="true" Height="200px" EmptyMessage="Select Clients" Enabled="false" OnItemDataBound="ddlClient_ItemDataBound" CheckBoxes="True" EnableCheckAllItemsCheckBox ="true">
                        <Localization CheckAllString="Select All" />
                    </telerik:RadComboBox>

Thanks,
Punit Singhi
Aneliya Petkova
Telerik team
 answered on 09 Sep 2014
0 answers
159 views
Hi, 

This is my scenario, i am going to Insert/Edit/Delete in my grid using OnNeedDataSource.

while inserting or editing, I have a textbox called code (on code textbox changed event), i need to check the code against the database, if the code is exist i need to populate some values to below 3 textbox. 

Can you guys provide your inputs?
Velkumar
Top achievements
Rank 1
 asked on 09 Sep 2014
4 answers
275 views

Hi,

RadAsyncUpload is working allright in IE 7 when the application is run locally but on deploying the same to the server, the file upload doesnot work in IE7 but does work in FireFox. In IE 7, It seems stuck and after a few mintues gives the red symbol indicating a failure.
Can any one please shed some light on this ?
thanks in advance. \

An update: it does not work in IE 8 also; I am also not seeing any error on using OnClientFileUploadFailed. OnClientFileUploading returns the message alert given in javascript. After that it just stays with the orange ball blinking. it never goes to the next event and never fails .
Also i have made sure that the app pool user has write permissions to the app_data/RadUploadTemp
Please help.

Ronen
Top achievements
Rank 1
 answered on 09 Sep 2014
3 answers
129 views
Hi,

 I create a web user control to store the gridpreference. when i try to get the gridstate , i am able to get for pagesize, groupby expression,sort expressions fine. but issue is column swap and hide settings not stored in the grid state. i used GridPersister class to save the settings and load the settings. so what is the issue in store the hide, swap column settings.
Kostadin
Telerik team
 answered on 09 Sep 2014
5 answers
146 views
Currently have a RadGrid that contains user information which they can click to edit the record or click on a button to download the vCard.  I would like it to refresh the grid after the user has closed the window.  However I do not need it to refresh if they click to download the vCard.  Can't seem to have it both ways at this time.  Any suggestions?  Tried removing the "Ajax" refresh but not positive it was working properly.

                            <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
                                <script type="text/javascript">
                                    function onRequestStart(sender, args) {
                                        if (args.get_eventTarget().indexOf("vCard") >= 0)
                                            args.set_enableAjax(false);
                                    }
 
                                    function ShowEditForm(id, rowIndex) {
 
                                        var grid = $find("<%= _gridContacts.ClientID%>");
 
                                        var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
                                        grid.get_masterTableView().selectItem(rowControl, true);
 
                                        window.radopen("Contacts.aspx?Contact_ID=" + id, "UserListDialog");
                                        return false;
                                    }
 
                                    function ShowInsertForm() {
                                        window.radopen("Contacts.aspx", "UserListDialog");
                                        return false;
                                    }
 
                                    function RowDblClick(sender, eventArgs) {
                                        window.radopen("Contacts.aspx?Contact_ID=" + eventArgs.getDataKeyValue("Contact_ID"), "UserListDialog");
                                    }
                                    function refreshGrid(arg) {
                                        if (!arg) {
                                            $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
                                        }
                                      else {
                                            $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");
                                        }
                                    }
                                </script>
                            </telerik:RadCodeBlock>
                            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
                                <AjaxSettings>
                                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                                        <UpdatedControls>
                                            <telerik:AjaxUpdatedControl ControlID="_gridContacts" LoadingPanelID="gridLoadingPanel"></telerik:AjaxUpdatedControl>
                                        </UpdatedControls>
                                    </telerik:AjaxSetting>
                                    <telerik:AjaxSetting AjaxControlID="RadGrid1">
                                        <UpdatedControls>
                                            <telerik:AjaxUpdatedControl ControlID="_gridContacts" LoadingPanelID="gridLoadingPanel"></telerik:AjaxUpdatedControl>
                                        </UpdatedControls>
                                    </telerik:AjaxSetting>
                                </AjaxSettings>
                            </telerik:RadAjaxManager>
                        <telerik:RadAjaxLoadingPanel runat="server" ID="gridLoadingPanel"></telerik:RadAjaxLoadingPanel>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
                        <ContentTemplate>
                        <telerik:RadGrid ID="_gridContacts" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None"
                             AllowMultiRowEdit="False" HeaderStyle-Font-Bold="true">
                            <MasterTableView CommandItemDisplay="None" DataKeyNames="Contact_ID" ClientDataKeyNames="Contact_ID">
                                <HeaderStyle Font-Bold="True" />
                                <Columns>
                                    <telerik:GridTemplateColumn UniqueName="TemplateEditColumn">
                                        <HeaderStyle Width="20px"></HeaderStyle>
                                        <ItemTemplate>
                                            <asp:HyperLink ID="EditLink" runat="server" Text="Edit">
                                                <img style="border:0px;vertical-align:middle;" alt="" src="/Images/Edit.png"/>
                                            </asp:HyperLink>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridButtonColumn DataTextFormatString="Select {0}"
                                        ButtonType="ImageButton" UniqueName="vCard" HeaderText=" "
                                        ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                                        ImageUrl="/images/vcard-icon.png" CommandName="VCard">
                                        <HeaderStyle Width="40px"></HeaderStyle>
                                    </telerik:GridButtonColumn>
                                    <telerik:GridTemplateColumn UniqueName="FullName" HeaderText="Name">
                                        <ItemTemplate>
                                            <%# DataBinder.Eval(Container.DataItem, "first_name")%> <%# DataBinder.Eval(Container.DataItem, "last_name")%>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridBoundColumn HeaderText="Title" UniqueName="Title" FilterControlAltText="Filter column column" DataField="Title">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Phone" UniqueName="Phone1" FilterControlAltText="Filter column column" DataField="Phone1">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>
                                    <telerik:GridTemplateColumn UniqueName="Contact_Email" HeaderText="Contact Email">
                                        <ItemTemplate>
                                            <a href="mailto:<%# DataBinder.Eval(Container.DataItem, "Contact_Email")%>"><%# DataBinder.Eval(Container.DataItem, "Contact_Email")%></a>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridBoundColumn HeaderText="Previous CEO" UniqueName="Previous_CEO" FilterControlAltText="Filter column column" DataField="Previous_CEO">
                                        <ColumnValidationSettings>
                                            <ModelErrorMessage Text=""></ModelErrorMessage>
                                        </ColumnValidationSettings>
                                    </telerik:GridBoundColumn>
                                </Columns>
                            </MasterTableView>
                            <ClientSettings>
                                <Selecting AllowRowSelect="true"></Selecting>
                                <ClientEvents OnRowDblClick="RowDblClick"></ClientEvents>
                            </ClientSettings>
                        </telerik:RadGrid>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    <Windows>
        <telerik:RadWindow ID="UserListDialog" runat="server" Title="Editing record" Height="680px"
            Width="840px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false"
            Modal="true" Behaviors="Close" OnClientClose="refreshGrid">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
Kostadin
Telerik team
 answered on 09 Sep 2014
1 answer
208 views
I have a chart:

<telerik:RadHtmlChart ID="chrtInvestmentAmount" runat="server" Transitions="true" DataSourceID="SqlDataSource1" Height="256px" Skin="Glow" Width="1024px" RenderMode="Auto">
<PlotArea>
<Series>
<telerik:ColumnSeries DataFieldY="InvestmentsAmount" Name="כמות משקיעים"/>
</Series>
<XAxis DataLabelsField="Month">
<TitleAppearance Text="חודש" />
</XAxis>
<YAxis>
<TitleAppearance Text="כמות משקיעים" />
</YAxis>
</PlotArea>
</telerik:RadHtmlChart>


Now in my body tag I have set the direction of the page to rtl, and when i do that the whole chart gets messed up, the text gets cut off a little and all in all it just doesent look good:

http://i.stack.imgur.com/On2XQ.jpg

for some reason it just gets all messed up. Isn't there some small piece of code which can fix this?
And while i'm asking, another problem i have is after setting the chart type (bars,lines and so on...) it does not update it and i also notice no line of code is added to the HTML. I dont know if something needs to be added, either way i cant change the chart type. Is there some kind of code which can change the chart type?

Thanks.
Stamo Gochev
Telerik team
 answered on 09 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?