Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
281 views

Is there a way to prevent the temporarily files from being deleted when IIS application pool is recycled?  

Peter Filipov
Telerik team
 answered on 28 Jan 2016
6 answers
146 views
Hi,

I have a RadGrid binding to a datatable which works fine when the active page of the Wizard is set to the be page of the wizard where the RadGrid is, however if the RadGrid is a wizard page that is not displaying when the page first loads the grid will not display correctly.

<asp:Wizard ID="ConnectorWizard" runat="server" ActiveStepIndex="0"   
<WizardSteps> 
     <asp:WizardStep Title="Configuration"
     </asp:WizardStep>                              
     <asp:WizardStep Title="Devices Configuration">                             
          <telerik:RadGrid ID="CTIMonitorGrid" runat="server" AutoGenerateColumns="true"
          </telerik:RadGrid> 
</WizardSteps> 
</asp:Wizard> 

so if i set the ActiveStepIndex to 1 it will display the grid but not if set to 0

I am populating the grid on the page load by using

        DataTable dtCTIMonitors = webSess.MasterSystem.CTISystem.SelectCTIMonitorsView(3);       
        CTIMonitorGrid.DataSource = dtCTIMonitors

I have tried populating the grid each time the pageindex of the wizard control changes - but this does not seem to make any difference.

thanks
Toby


Eyup
Telerik team
 answered on 28 Jan 2016
10 answers
206 views
How to set scrabbler for all day event section if events crossing more than some height. if we create more than 20 events, Time slot is not showing in the scheduler. find attached screen shots for the same.

Please let us provide the solution ASAP.

Thanks in advance.


Dhiraj
Top achievements
Rank 1
 answered on 28 Jan 2016
7 answers
449 views

Folks, environment:  UI for ASP.Net Ajax Q1 2016 With VS 2013. and using below Telerik link as a prototype in my project.

I have a sql table in SQL Server that has 2 columns, 1) Link 2) URL (i.e. https://www.google.com/ or https://www.yahoo.com/) In my edit form, 
hyperlink button is pulling data (i.e. URL in Item Databound event.  Works fine.

  <table>
          <tr>
            <td style="font-size: 11px">Community District: </td>
            <td>
                <asp:TextBox ID="CDTextBox" Font-Size="11px" Text='<%# Bind( "CD") %>'
                    runat="server" TabIndex="8">
 
                </asp:TextBox>
                     
                <asp:HyperLink ID="HyperLinkCD" Style="text-decoration: underline; border-color: InfoBackground; margin: inherit; font-size: 12px; color: #228B22; font-family: Calibri; font-weight: 700"
                 Text="Link" Target="_blank"
                 runat="server" TabIndex="9"></asp:HyperLink>
            </td>
        </tr>
 
</table>
   
  protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    
   {  
 
        
    if (e.Item is GridEditableItem && e.Item.IsInEditMode && e.Item.OwnerTableView.Name == "Master")
    {
 
        GridEditableItem editem = (GridEditableItem)e.Item;
        TextBox txtcd = (TextBox)editem.FindControl("CDTextBox");
        string Stcd = txtcd.Text.ToString().TrimEnd();
        SqlCommand cmdcontrol = new SqlCommand("SELECT Link from Cd_Link" +
            "WHERE [CD] = '" + Stcd + "'", SqlConnection);
 
 
         SqlConnection.Open();
         
         SqlDataReader objDR = cmdcontrol.ExecuteReader();
         if (objDR.Read())
           {
        
               string stnycUrlLink = objDR["Link"].ToString().TrimEnd(); Pulling URL from SQL Column ex: https://www.google.com/ or https://www.yahoo.com/
               stnycUrlLink = "" + stnycUrlLink + "";
             
               HyperLink hyperLinkCD = (HyperLink)editem.FindControl("HyperLinkCD");
               hyperLinkCD.NavigateUrl = stnycUrlLink;
               hyperLinkCD.Attributes["href"] = "#";
               hyperLinkCD.Attributes["onclick"] = String.Format("return Show_CDMap('{0}');", stnycUrlLink);
               Session["MapSource"] = "Program";
               Session["Sturl"] = stnycUrlLink;
               
           }
                  
       }
         
  }
    
   function Show_CDMap(seltxt)
   {
               var seltxtbx = seltxt.value;
               alert(seltxt);       ex: https://www.google.com/ or https://www.yahoo.com/
               var oWind = window.radopen("ShowCDMaps.aspx", "UserListDialog");
               oWind.setSize(document.body.scrollWidth - 170, document.body.scrollHeight + 180);
               oWind.set_modal(true);
               oWind.Center();
               oWind.Maximize();
 
              return false;
       }
 
    

I would like to pass that URL to edit form and open that URL. Another word if hyperlink button is grabing https://www.yahoo.com/ from  SQL Table, then open https://www.yahoo.com/

inside edit dialog form.

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

My codes are below. Any help will be appreciated.
gc_0620

Marin Bratanov
Telerik team
 answered on 28 Jan 2016
1 answer
64 views
My developer license was active until 10/2012 and since then there have been many updates to the telerik products.  Using the version I have available to me, there is issues with the grid rendering correctly (and even freezing) on an IE11 browser as well as it does not support the new office formats (docx, xlsx, etc).  If I were to renew the license to get the latest version of telerik, will the grid issue rendering be resolved?  All I see in the browser support page for the current version is that it says it supports IE8+.  I just want to be sure spending the 4k for the renewal license is going to solve our issues.  Thanks!
Marin Bratanov
Telerik team
 answered on 28 Jan 2016
9 answers
128 views
I have a grid I am trying to do a batch update but I need to loop through the grid and save all the values.  I need to be able to get any value that was update along with values that were left alone.  Is this possible?  All I have been able to find is how to get new values or the old values.  I need them both at the same time in a loop through the grid so when my user hits the save button I can save the entire grid to a new database table.  vb.net.

Thanks,
Eyup
Telerik team
 answered on 28 Jan 2016
1 answer
125 views

Hi telerik

I have to dinamicy add new row to radgrid without postback and i want to access values of rows (radgrid) in code behind .

How can i immpement it ?

please help me

Eyup
Telerik team
 answered on 28 Jan 2016
5 answers
586 views

In my RadGrid, if I set EditMode="EditForms", the checkmark and x  for update and cancel disappear and get replaced with text. However, if I set EditMode="InPlace", I get the icons. How can I get the icons with EditForms?

01.<telerik:RadGrid ID="rgPackagesHistory" AllowSorting="true" GridLines="Horizontal" AllowAutomaticDeletes="false"
02.    AllowAutomaticInserts="false" AllowAutomaticUpdates="false" runat="server" PageSize="10"
03.    AllowPaging="true" AllowFilteringByColumn="false" ShowStatusBar="true" AllowMultiRowSelection="true"
04.    OnItemCommand="rgPackagesHistory_ItemCommand" OnItemDataBound="rgPackagesHistory_ItemDataBound"
05.    OnUpdateCommand="rgPackagesHistory_UpdateCommand" OnDeleteCommand="rgPackagesHistory_DeleteCommand">
06.    <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
07.    <MasterTableView Width="100%" CommandItemDisplay="None" DataKeyNames="Package_ID" HorizontalAlign="Center"
08.        AutoGenerateColumns="False" EditMode="EditForms">
09.        <CommandItemSettings />
10.        <NestedViewTemplate>
11.            <b>Any other benefits:</b> <%# Eval("Package_AnyOtherBenefit") %><br />
12.            <b>Comments:</b> <%# Eval("Package_Comments") %><br />
13.        </NestedViewTemplate>
14.        <Columns>
15.            <telerik:GridNumericColumn DataField="Package_MinAge" UniqueName="Package_MinAge" ReadOnly="false" MaxValue="255" />
16.            <telerik:GridNumericColumn DataField="Package_MaxAge" UniqueName="Package_MaxAge" ReadOnly="false" MaxValue="255" />
17.            <telerik:GridBoundColumn DataField="Package_DownPayment" UniqueName="Package_DownPayment" ReadOnly="false" MaxLength="50" />
18.            <telerik:GridBoundColumn DataField="Package_AdminFees" UniqueName="Package_AdminFees" ReadOnly="false" MaxLength="50" />
19.            <telerik:GridBoundColumn DataField="Package_InterestRate" UniqueName="Package_InterestRate" ReadOnly="false" MaxLength="50" />
20.            <telerik:GridBoundColumn DataField="Package_InsuranceRate" UniqueName="Package_InsuranceRate" ReadOnly="false" MaxLength="50" />
21.            <telerik:GridNumericColumn DataField="Package_MaxPeriod" UniqueName="Package_MaxPeriod" ReadOnly="false" MaxValue="255" />
22.            <telerik:GridBoundColumn DataField="Package_BaloonPayment" UniqueName="Package_BaloonPayment" ReadOnly="false" MaxLength="50" />
23.            <telerik:GridBoundColumn DataField="Package_AnyOtherBenefit" UniqueName="Package_AnyOtherBenefit" ReadOnly="false" MaxLength="50" Visible="false" />
24.            <telerik:GridBoundColumn DataField="Package_Comments" UniqueName="Package_Comments" ReadOnly="false" MaxLength="200" Visible="false" />
25.            <telerik:GridDateTimeColumn DataField="Package_Date" UniqueName="Package_Date" DataFormatString="{0: dd/MM/yyyy}" ReadOnly="true" />
26.            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
27.                ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="50" ItemStyle-CssClass="MyImageButton" />
28.            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" Text="Delete"
29.                EditFormColumnIndex="1" UniqueName="column1abc" ConfirmDialogType="RadWindow"
30.                ShowInEditForm="false" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="50" ItemStyle-CssClass="MyImageButton" />
31.        </Columns>
32.        <CommandItemSettings ShowRefreshButton="false" ShowAddNewRecordButton="True" />
33.        <PagerStyle AlwaysVisible="True" />
34.    </MasterTableView>
35.    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
36.    <ClientSettings EnableRowHoverStyle="true">
37.        <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
38.        <KeyboardNavigationSettings EnableKeyboardShortcuts="true" />
39.    </ClientSettings>
40.</telerik:RadGrid>

Eyup
Telerik team
 answered on 28 Jan 2016
1 answer
212 views

I have an EntityDataSource

 

<asp:EntityDataSource
    ID="InventoryEntityDataSource"
    runat="server"
    ConnectionString="name=myEntities"
    DefaultContainerName="myEntities"
    EnableFlattening="False"
    EntitySetName="Inventory"
    Select="it.[InventoryID],
            it.[InventorySalesRepUserID],
            it.[SalesRep_Table].[DisplayName] AS SalesRep_DisplayName,
            "
    EntityTypeFilter=""
    OrderBy="it.[InventoryID]">
</asp:EntityDataSource>

And RadGrid

<telerik:RadGrid
        ID="InventoryRadGrid"
        runat="server"
        AutoGenerateColumns="False"
        DataSourceID="InventoryEntityDataSource"
        AllowFilteringByColumn="True"
        AllowPaging="True"
        AllowSorting="True"
        ShowGroupPanel="True"
        Width="100%"
        ShowFooter="True"
        GroupPanelPosition="Top"
        ResolveRenderMode="Classic"
        CellSpacing="-1"
        GridLines="Both">
        <PagerStyle Mode="NextPrevAndNumeric" />
        <GroupingSettings CaseSensitive="false" />
        <MasterTableView
            DataSourceID="InventoryEntityDataSource"
            DataKeyNames="InventoryID"
            EnableViewState="true"
            TableLayout="Fixed">
            <Columns>
                <telerik:GridTemplateColumn
                    DataField="InventoryID"
                    SortExpression="InventoryID"
                    DataType="System.Int32"
                    FilterControlAltText="Filter InventoryID column"
                    HeaderText="Item #"
                    UniqueName="InventoryID"
                    Visible="False">
                    <ItemTemplate>
                        <asp:HyperLink
                            ID="HyperLink1jkl"
                            runat="server" Text='<%# Eval("InventoryID") %>'
                        </asp:HyperLink>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                 
                <telerik:GridBoundColumn
                    DataField="InventorySalesRepUserID"
                    FilterControlAltText="Filter InventorySalesRepUserID column"
                    HeaderText="Sales Rep ID"
                    UniqueName="InventorySalesRepUserID"
                    Visible="False"
                    SortExpression="InventorySalesRepUserID">
                </telerik:GridBoundColumn>
                 
                <telerik:GridBoundColumn
                    DataField="SalesRep_DisplayName"
                    FilterControlAltText="Filter InventorySalesRepUserName column"
                    HeaderText="Sales Rep Name"
                    UniqueName="InventorySalesRepUserName"
                    Visible="False"
                    SortExpression="SalesRep_DisplayName">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
</telerik:RadGrid>

It loads fine and filter on radgrid also works fine when filtering InventoryID and SalesRepID but when i filter for SalesRep_DisplayName give me an error.

'SalesRep_DisplayName' is not a member of type 'myDB_Model.tblInventory' in the currently loaded schemas. Near simple identifier.

 

 

Maria Ilieva
Telerik team
 answered on 28 Jan 2016
5 answers
126 views
I have two RadSchedulers on the same page, and I would like to drag an appointment from RadScheduler1 to RadScheduler2, is this achievable?
Plamen
Telerik team
 answered on 28 Jan 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?