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

This code is working in ASP.NET Web Application, but is not working in SharePoint 2007 WebPart?
When I click on Detail Table, page is postback.
Wherein maybe cause?


<telerik:RadScriptManager ID="RadScriptManager" runat="server" />

        <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All"
            EnableRoundedCorners="false" />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdateInitiatorPanelsOnly="true">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1">
                        </telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
            
            <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False">
            
                <MasterTableView Width="100%">
                <Columns>
                    <telerik:GridBoundColumn DataField="Column1" HeaderText="Column1">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Column2" HeaderText="Column2">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Column3" HeaderText="Column3">
                    </telerik:GridBoundColumn>
                </Columns>

                <DetailTables>
                <telerik:GridTableView Name="OrderDetails" Width="100%">
                    <ItemTemplate>
                        
                        <table>
                            <tr>
                                <td>
                                    A
                                </td>
                                <td>
                                    B
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    C
                                </td>
                                <td>
                                    D
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    E
                                </td>
                                <td>
                                    F
                                </td>
                            </tr>
                        </table>

                    </ItemTemplate>
                </telerik:GridTableView>
                </DetailTables>

                </MasterTableView>
            
            </telerik:RadGrid>

        </telerik:RadAjaxPanel>
Angel Petrov
Telerik team
 answered on 04 Mar 2014
2 answers
90 views
Hi All,

I have an editable RadGrid, and the RadDateInputs, in edit mode, look different from the standard alpha-numeric textboxes.  Is there a way to convert them to textboxes while maintaining date validation?

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 04 Mar 2014
3 answers
153 views
Hi Team,

Am using a RadPanelbar as a Menu structure for my website. V 2013.2.717.40

This PanelBar is populated from a SQL Datasource and is placed in a Masterpage.

Now when I click on the item, It will go to the corresponding page. I want the Panelbar to be expanded and the selection on the selected page.

When I was using static Panelbar, it was working perfect.

Once I changed it to Databinding to SQL Datasource, the FindItemByText method is returning 'Nothing'

So I cant make the item expanded..

Here is my masterpage code.
<telerik:RadPanelBar ID="rdMenuBar" Runat="server" Width="200px"
               ExpandMode="FullExpandedItem" DataFieldID="Forms_PK_ID"
               DataSourceID="SqlDataSource1"
               DataValueField="Forms_PK_ID" DataFieldParentID="Forms_ParentID"
               DataNavigateUrlField="Forms_Url" DataTextField="Forms_Name"  
                    OnItemDataBound
="rdMenuBar_ItemDataBound">
<DataBindings>
<telerik:RadPanelItemBinding Depth="0" ImageUrlField="Forms_Icon" TextField= "Forms_Name" />
<telerik:RadPanelItemBinding Depth="1" ImageUrlField="Forms_Icon" TextField= "Forms_Name" />
</DataBindings>
</telerik:RadPanelBar>

Am using the Databound event also

Protected Sub rdMenuBar_ItemDataBound(sender As Object, e As Telerik.Web.UI.RadPanelBarEventArgs) Handles rdMenuBar.ItemDataBound
      Dim dataRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView)
      e.Item.Attributes("Text") = dataRow("Forms_Name").ToString()
      e.Item.Text = e.Item.Attributes("Text")
  End Sub

And to make the Selection expanded in the other page, am using the code as below in page_load event

Dim rdMenuBar As RadPanelBar = Master.FindControl("rdMenuBar")
Dim ExpandedItem As RadPanelItem = rdMenuBar.FindItemByText("Configurations")
Dim SelectedItem As RadPanelItem = rdMenuBar.FindItemByText("Service")
ExpandedItem.Expanded = True
SelectedItem.Selected = True


Can anyone help me to sort out this..

Thanks and Regards

Renju

Kate
Telerik team
 answered on 04 Mar 2014
1 answer
579 views
Hello All.

I am using rad grid with batch editing ,  in the edit mode I am changing the radcombobox description value and want pass the selected value to database.

on the grid batch edit command for command type update,  I want to pull the selected value instead of text for command.NewValues["Description"],

    <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">    

         <telerik:RadListBox runat="server" ID="SavedChangesList" Width="100%" Height="100px" Visible="false"  ForeColor="Red"></telerik:RadListBox>

    <telerik:RadGrid  id="rgReleaseSchedule" runat="server"  AutoGenerateColumns="false"        OnNeedDataSource="rgReleaseSchedule_NeedDataSource"   OnBatchEditCommand="rgReleaseSchedule_BatchEditCommand" OnPreRender="rgReleaseSchedule_Prerender" AllowAutomaticInserts="true" 

        AllowAutomaticUpdates="true" >

        <MasterTableView  CommandItemDisplay="TopAndBottom"  ClientDataKeyNames="ID,Description" EditMode="Batch"  DataKeyNames="ID,Description" NoMasterRecordsText="No records found"  >       

            <BatchEditingSettings EditType="Cell" />

            <Columns>

                <telerik:GridBoundColumn  HeaderText="ScheduleID" DataField="ID" UniqueName="ID" ></telerik:GridBoundColumn>

              

            

               

              <telerik:GridTemplateColumn   HeaderText="Description" DataField="Description"    ColumnEditorID="TitleID" UniqueName="Description" HeaderStyle-Width="65%" >

                    <ItemTemplate>

                        <%# Eval("Description") %>                                             

                        </ItemTemplate>                  

                    <EditItemTemplate  >

                        <telerik:RadComboBox  runat="server" ID="rdDescription" Width="650" Height="400"   OnClientSelectedIndexChanged="SelectedChanged" AutoPostBack="true"   OnSelectedIndexChanged="rdDescription_selectedIndexChanged"></telerik:RadComboBox>                          

                        <asp:RequiredFieldValidator runat="server" ID="rfvdesc" ErrorMessage="Required" ForeColor="Red" ControlToValidate="rdDescription"  Display="Dynamic" ></asp:RequiredFieldValidator>

                    </EditItemTemplate>

                </telerik:GridTemplateColumn>              

              

                <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="Delete" ConfirmText="Are you sure you want to delete this Release?" ConfirmDialogType="RadWindow"

                    ConfirmTitle="Delete" HeaderText="Delete" ButtonType="ImageButton" HeaderStyle-Width="50px">

                </telerik:GridButtonColumn>                                  

               </Columns>

          

                 </MasterTableView>

          <ClientSettings>

          <ClientEvents OnBatchEditCellValueChanging="BatchEditCellValueChanging"  OnBatchEditCellValueChanged="CellValueChanged" OnRowSelected="RowSelected"    OnRowClick="rowClick"/></ClientSettings>

         

     </telerik:RadGrid>

        </telerik:RadAjaxPanel

>






protected void rgReleaseSchedule_BatchEditCommand(object sender, Telerik.Web.UI.GridBatchEditingEventArgs e)

{

try

{

SavedChangesList.Items.Clear();

SavedChangesList.ForeColor = System.Drawing.Color.Red;

foreach (GridBatchEditingCommand command in e.Commands)

{

Hashtable newvalues= command.NewValues;

if (command.Type == GridBatchEditingCommandType.Update)

{

if (command.NewValues["Date"].ToString() != "" && command.NewValues["Time"].ToString() != "" && command.NewValues["Description"].ToString() != "")

{

Int32 result = IoC.Current.Resolve<IReleaseService>().ReleaseListUpdate((Int32)command.Item.OwnerTableView.DataKeyValues[command.Item.ItemIndex]["ID"],

command.NewValues["Description"]);

}

protected void rgReleaseSchedule_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

{

rgReleaseSchedule.DataSource = IoC.Current.Resolve<IReleaseService>().ReleaseListSelect(_userContext.CurrentUser.UserId, Convert.ToInt16(ddlYear.SelectedText));

}

protected void rgReleaseSchedule_Prerender(object sender, EventArgs e)

{

{

SavedChangesList.ForeColor = System.Drawing.Color.Red;

RadComboBox ddlDesc = rgReleaseSchedule.FindControl(rgReleaseSchedule.MasterTableView.ClientID + "_Description").FindControl("rdDescription") as RadComboBox;

var description = IoC.Current.Resolve<IReleaseService>().ReleaseListScheduleTitle();

ddlDesc.DataSource = description;

ddlDesc.DataTextField = "Description";

ddlDesc.DataValueField = "TitleID";

ddlDesc.DataBind();

}

}

 

Maria Ilieva
Telerik team
 answered on 04 Mar 2014
1 answer
213 views
Hi,

I spent a lot of time to fix the bug in my page.
I have a "div", where i can drop files for my Telerik AsyncUpload-Control. This "div" changes color, when i'm dragging files to it, but not in IE, and i don't know why. 
When i try the demo-page in IE it works fine (http://demos.telerik.com/aspnet-ajax/asyncupload/examples/draganddrop/defaultcs.aspx)

I debugged my JavaScript-File and saw, that the $telerik.isIE10Mode isn't true. In Chrome the "isFile" gets true, so the color-change works (RadAsyncUpload.cs line 52).

Do you know, how i can fix this bug?
Boyan Dimitrov
Telerik team
 answered on 04 Mar 2014
2 answers
141 views
Hello,

What is the maximum value of RadScheduler.TimelineView.NumberOfSlots?

I am getting errors (System.ArgumentOutOfRangeException) when I go over a certain number, but I have not determined what that number is. I would like to reduce the number of slots to the maximum if I am about to exceed the maximum value.

Thanks!
T.J.
Top achievements
Rank 1
 answered on 04 Mar 2014
3 answers
92 views
Hi All,

I have an entirely code-behind (C#) RadGrid that is being used in a SharePoint web-part, and I would like to use a RadAjaxManager with it.  Can anyone please tell me and/or point me in the right direction for implementing one?

Thanks,
Mark
Maria Ilieva
Telerik team
 answered on 04 Mar 2014
3 answers
103 views
I am using Rad List box control of Telerik.Web.UI for allowing user to select items from the availbale items  by moving it to right list box from left one.

But whenever I try to move the items by selecting lot of them, It gives me error as

"Stop running this script?
A script on this page is causing Internet Explorer to run slowly.
If it continues to run, your computer might become
unresponsive."

I am using  IE8 for my application.

can someone please help me on this,

Thanks in advance..!!
Plamen
Telerik team
 answered on 04 Mar 2014
1 answer
72 views
how i can set max selected column count , when i select example 4 checkbox other checkbox is disabled and enabled when selected checkbox count less then 4

or


 <telerik:RadGrid 
.....


  <ClientSettings EnableRowHoverStyle="true">
                <ClientEvents OnFilterMenuShowing="filterMenuShowing" />
               <ClientEvents OnColumnHidden="onColumnHidden" OnColumnShown="onColumnShow" />
                <Selecting AllowRowSelect="True" />
            </ClientSettings>

.........................


 function onColumnShow(sender, args) {
                                     
                                        //calculate selected checkbox count
                                    }


how calculate selected checkbox count
           
Viktor Tachev
Telerik team
 answered on 04 Mar 2014
4 answers
285 views
I have a RadTabStrip with an ontabclick event.  How can I cancel the event after a tab is clicked so that the user stays on the current tab?

I am using version 2010.3.1215.40

Thanks.
Daniel
Top achievements
Rank 1
 answered on 04 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?