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

Hello,

I've got a system, where I want to check how often it run.
Now I've got 80 values with value 0 or 1 and Datetime.

Now I want to see how long it run in the last 24h.
X Axis is DateTime and Y Axis is 0 and 1

The first issue is, that it draws every Datetime value in the x axis, which really took long and wasnt really my target, cause 
through the wide of the line the user should see approximately how long it run.
If I change the BaseUnit to hour its fast, but all the smaller values get lost.

I added a picture what I am planning to do

Regards

Vessy
Telerik team
 answered on 06 Oct 2020
1 answer
150 views

I was using a textbox inside a RadGrid, to enter data in a column. This field was a list of donors. I did have a (rather large) lookup list of current donors (from a table) and I decided to try replacing the TextBox with a RadComboBox. A RadDropDown box, given the size of the list, would be rather clumsy, so a RadCombo Box made sense.

 

When I select a person from my dropdown, the batch edit block is closed. It looks like the postback wipes out the batch edit.

 

I'm trying to include a RadComboBox inside a RadGrid. When I select a person from my dropdown, the batch window is closed and the batch edit is reset

 

        <telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True"
            AllowAutomaticInserts="True" PageSize="10" OnItemDeleted="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted"
            OnItemUpdated="RadGrid1_ItemUpdated" AllowAutomaticUpdates="True" AllowPaging="True"
            AutoGenerateColumns="False" OnBatchEditCommand="RadGrid1_BatchEditCommand" DataSourceID="SqlDataSourceDonations">

            <MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="DonationID" DataSourceID="SqlDataSourceDonations" HorizontalAlign="NotSet" EditMode="Batch" AutoGenerateColumns="False">
                <BatchEditingSettings EditType="Cell" HighlightDeletedRows="true"/>


                    <telerik:GridTemplateColumn UniqueName="Donor" HeaderText="Donor" SortExpression="Donor" ItemStyle-Width="300px">
                        <FooterTemplate>Template footer</FooterTemplate>
                        <FooterStyle VerticalAlign="Middle" HorizontalAlign="Center" />
                        <ItemTemplate>
                            <%#DataBinder.Eval(Container.DataItem, "Donor")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadComboBox RenderMode="Lightweight" runat="server" ID="RadComboBox1" EnableLoadOnDemand="True" DataTextField="Donor"
                                OnItemsRequested="RadComboBox1_ItemsRequested" DataValueField="DonorID" AutoPostBack="true"
                                HighlightTemplatedItems="true" Height="140px" Width="300px" DropDownWidth="300px" >
                                <HeaderTemplate>
                                    <ul>
                                        <li class="col1">Donor</li>
                                    </ul>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <ul>
                                        <li class="col1">
                                            <%# DataBinder.Eval(Container, "Text")%>
                                        </li>
                                    </ul>
                                </ItemTemplate>
                            </telerik:RadComboBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>

 

Am I going to have to scrap Batch Edit, or can I prevent the postback when an item is selected?

What are my options?

Greg
Top achievements
Rank 1
Veteran
 answered on 03 Oct 2020
3 answers
128 views

May I ask about How to keep the file after validation for Telerik RadAsync Upload?

<telerik:RadScriptManager runat="server" ID="RadScriptManager"></telerik:RadScriptManager>        
<telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" ID="RadAsyncUpload1"></telerik:RadAsyncUpload>

I had put the Ajax settings, but its not work.

<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
 
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadAsyncUpload1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadAsyncUpload1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
 
            </AjaxSettings>
        </telerik:RadAjaxManager>

And I used Asp.net C# Web-Form 

 

bryan
Top achievements
Rank 1
 answered on 02 Oct 2020
2 answers
439 views

Thanks for help with this.

I am passing a loaded datatable using a Session (Datatable) variable from another form to another form.  I then copy the Session (Datatable) variable to a local datatable and then bind this datatable  to a radgrid. 

 

When a cell changes value and the "Save Changes" is clicked.  All runs well but the entry.Value (newValue) is still showing old value.
changedRows[0][(string)entry.Key] = entry.Value;  

Also, I tried to loop through the grid in the same routine but I still see the old value as well.  I included the HTML code along with the update subroutine.  

 

<telerik:RadGrid ID="grdIncome" runat="server" AllowAutomaticUpdates="True" AllowMultiRowSelection="True" Font-Names="Arial" 
                                OnColumnCreated="grdIncome_OnColumnCreated" OnItemDataBound="grdIncome_ItemDataBound" 
                                OnUpdateCommand="grdIncome_UpdateCommand" 
                                OnItemUpdated="grdIncome_ItemUpdated" OnEditCommand="grdIncome_EditCommand" OnNeedDataSource="grdIncome_NeedDataSource1"
                                Skin="Silk" Width="100%" Font-Size="Small" ShowFooter="True"  GridLines="None" AllowPaging="true" PageSize="20"  >
                                <MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="AccountID"
                                    AutoGenerateColumns="true" HorizontalAlign="NotSet" EditMode="InPlace" >
                                    <BatchEditingSettings  EditType="Cell" HighlightDeletedRows="true"/>

                                    <Columns>
                                                                                        
                                    </Columns>
                                </MasterTableView>

                            </telerik:RadGrid> 

 

 

        protected void grdIncome_UpdateCommand(object sender, GridCommandEventArgs e)
        {
            GridEditableItem editedItem = e.Item as GridEditableItem;

            if (!UpdateRow(editedItem))
            {
                e.Canceled = true;
            }
        }

        private bool UpdateRow(GridEditableItem editableItem)
        {

            //Locate the changed row in the DataSource
            DataRow[] changedRows = SessionDataSource.Select(string.Format("AccountID = {0}", editableItem.GetDataKeyValue("AccountID")));

            if (changedRows.Length != 1)
            {
                this.Label1.Text += "Unable to locate the Income Account for updating.";
                return false;
            }

            for (int i = 0; i < grdIncome.MasterTableView.Items.Count; i++)
            {
                GridDataItem dataItem = (GridDataItem)grdIncome.MasterTableView.Items[i];
                string strItemId = dataItem.GetDataKeyValue("AccountID").ToString();
                Console.Write(dataItem["MM01"].Text);
            }


            //Update new values
            Hashtable newValues = new Hashtable();
            editableItem.OwnerTableView.ExtractValuesFromItem(newValues, editableItem);
            changedRows[0].BeginEdit();
            try
            {
                foreach (DictionaryEntry entry in newValues)
                {
                    changedRows[0][(string)entry.Key] = entry.Value;
                }
                changedRows[0].EndEdit();
            }
            catch (Exception ex)
            {
                changedRows[0].CancelEdit();
                Label1.Text += string.Format("Unable to update Orders. Reason: {0}", ex.Message);
                return false;
            }

            return true;
        }

John
Top achievements
Rank 1
 answered on 02 Oct 2020
1 answer
166 views

 

In the EditingWcfServices file in this demo, the namespace: using Model.ReadWrite  is not recognized, what assembly do I need to get this running as a stand alone

 

 

https://demos.telerik.com/aspnet-ajax/dataform/data-binding/client-data-source-binding/defaultcs.aspx

 

 

Thanks in advance for any help.

Doncho
Telerik team
 answered on 02 Oct 2020
2 answers
173 views

Please state whether your WSP for RadEditor is available on SharePoint Online as a sandbox app, or in some other format. If it is not available, please state whether you plan on making it available in the near future. Thank you. 

 

Pistle
Top achievements
Rank 1
Veteran
 answered on 02 Oct 2020
2 answers
107 views

Hi, we successfully implemented RadEditor on sharepoint 2010.

Whenever a user is inserting a picture (using Picture Manager) and assigning a link to that picture, it's surrounded by default blue link frame/border. The user might be able to edit HTML to get rid of it. However, most users aren't familiar with HTML editing.
Is there a way to suppress the default behavior with a simpe setting in the ListConfigFile.xml ?

 

Thanks in advance

Wolfgang

Pistle
Top achievements
Rank 1
Veteran
 answered on 02 Oct 2020
4 answers
83 views

Hi Everyone,

versus most articles here about a disabled tab or upload button I noticed for most users a red bulb beside any picture they are trying to upload via Rad Editor (2016.2.504.35) image manager. Picture sizes are below the limitation settings in ConfigFile.xml/ListConfigFile.xml

Permissions to the three named localizations are set to Contribute to the relevant SharePoint group.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
 <property name="EditModes">Design,Html</property>
 <property name="Height">300px</property>
 <property name="Width">500px</property>
 <property name="UseRadContextMenu">false</property>
      
 <property name="ImagesPaths">
   <item>/Corp Comm use only images</item>
   <item>/Corp Comm use only documents</item>
   <item>/News Images</item>
        </property>
 <property name="MediaPaths">
   <item>/Corp Comm use only images</item>
   <item>/Corp Comm use only documents</item>
        </property>
 <property name="FlashPaths">
   <item>/Corp Comm use only images</item>
   <item>/Corp Comm use only documents</item>
        </property>
        <property name="ImagesFilters">
         <item>*.jpg</item>
  <item>*.jpeg</item>
         <item>*.gif</item>
         <item>*.png</item>
        </property>
        <property name="MaxMediaSize">5242880</property>
        <property name="MaxFlashSize">5242880</property>
        <property name="MaxImageSize">204800</property>
</configuration>

 

Pistle
Top achievements
Rank 1
Veteran
 answered on 02 Oct 2020
17 answers
302 views

When I am opening RadGrid Designer page, it is showing me HTTP 403 Forbidden. I have site collection administration permissions.

http://abd-sps-devfe/_layouts/15/Telerik.Ajax.SharePoint/GridWebPartDesigner.aspx

I am using this version Telerik_Web_Parts_For_Sharepoint2013_2015_2_826.

 

Pistle
Top achievements
Rank 1
Veteran
 answered on 02 Oct 2020
6 answers
201 views

We have telerik:RadMultiPage with 3 RadPageView control on a Visual Webpart in sharepoint site.

When this webpart is opened user enters few detail and then click on next button which will take then to next RADPageView .

But on Production server we are getting following error when user click on Next button 

ScriptResource.axd?d=OuxNwVWHD89YhOJQ8KoflBg1KGlPeB5feLGISY35w5AR9riq5maPEdVKtJ3yHJoTRwy9UXHCxY_UZt…:5 Uncaught Sys.WebForms.PageRequestManagerParserErrorException: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '
<!DOCTYPE html PUB'.

We are not having this issue in dev or Test environment , We have tried checking Firewall setting to check if Ajax header information is gettgin trimmed but it is not .

Please let me know If there is anything we can try , or there is any known issue regrading this ?

Pistle
Top achievements
Rank 1
Veteran
 answered on 02 Oct 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?