Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
110 views

Hi All

Not sure this is possible, can't find any examples, so thought I'd ask.

We want to create a calendar, preferably using the RadCalendar, that shows the first day of the current week + 14 days. Ie, rather than showing the entire current month, just show this week and next week.

We'll then use the Day Render event to show relevant information in that cell for that day. 

Has anyone seen something like this done with RadCalendar?

Shane

Konstantin Dikov
Telerik team
 answered on 03 Jun 2015
2 answers
91 views

Hello,

we have a mix from auto generated columns and custom columns.

GridBoundColumn boundColumn = new GridBoundColumn();                       
grid.MasterTableView.Columns.Add(boundColumn);
boundColumn.HeaderText = page.GetMessage(name);
boundColumn.UniqueName = name;
boundColumn.SortExpression = name;
boundColumn.Display = false;
 

When we try to Group any column in the Grid, we get the following Javascript-Exception:

Sys.WebForms.PageRequestManagerServerErrorException: An item with the same key has already been added

 

What are we doing wrong?

Thank you in advance!
Roxane

 

 

 

 

Roxane
Top achievements
Rank 1
 answered on 03 Jun 2015
4 answers
122 views

Hi,

 I have an asp:textbox and I wanted to display red lines under incorrect words.

I try to use telerik RadSpell in hebrew but I get spelling only on button click and it's not display the red lines.

I use Internet Explorer so I don't have red lines in default.

 How can I do it?

 

Thanks

elad
Top achievements
Rank 1
 answered on 03 Jun 2015
1 answer
112 views

When using GridClientSelectColumn, AllowRowSelect and AllowMultiRowSelection multiple selections can be made only by click the checkboxes not the rows.

Steps to Duplicate

1. Goto the following URL

http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/columns/column-types/defaultcs.aspx

2.Click all 3 checkboxes one after the other. Notice that after doing so all 3 checkboxes are selected.

3. Uncheck the checkboxes or refresh the page.

4. Now try to select all rows by clicking on the row, not the checkbox. Notice that only one checkbox can be selected.

 

Konstantin Dikov
Telerik team
 answered on 03 Jun 2015
1 answer
82 views

I have about 20 or so columns. I am looking for a way to lay them out in Edit or Add New Record (EdititemTemplate) so they are not all in a vertical line. Normaly I would use tables but since I am using the GridTemplateCoumn I am not sure how to create a layout. Here is a sample. I would like the text boxes to display the first 10 or so on the left and the last 10 on the right. Can I use tables  with the GridTemplateColumns? Yeah I am new to Telerik and somewhat new to Web Dev.

 Thanks in advance.

 

<telerik:GridTemplateColumn DataField="Last_Name" HeaderText="Last Name" SortExpression="Last_Name" UniqueName="Last_Name">
                   <EditItemTemplate>
                       <div>
                       <asp:TextBox runat="server" ID="Last_NameTextBox" Text='<%# Bind("Last_Name") %>'></asp:TextBox>
                   </div>
                           </EditItemTemplate>
                   <ItemTemplate>
                       <asp:Label runat="server" ID="Last_NameLabel" Text='<%# Eval("Last_Name") %>'></asp:Label>
                   </ItemTemplate>
                   <FilterTemplate>
                       <telerik:RadComboBox ID="LastNameComboFilter" runat="server" DataSourceID="SqlDataSourceLastName"
                           DataTextField="Last_Name" DataValueField="Last_Name" AppendDataBoundItems="True"
                           SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Last_Name").CurrentFilterValue %>'
                           OnClientSelectedIndexChanged="Last_NameChanged"
                           MarkFirstMatch="True"
                           Filter="StartsWith"
                           AllowCustomText="True" Width="110px">
                           <Items>
                               <telerik:RadComboBoxItem Text="All" />
                           </Items>
                       </telerik:RadComboBox>
                       <telerik:RadScriptBlock ID="RadScriptBlockLastName" runat="server">
                           <script type="text/javascript">
                               function Last_NameChanged(sender, args) {
                                   var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                   tableView.filter("Last_Name", args.get_item().get_value(), "EqualTo");
                               }
                           </script>
                       </telerik:RadScriptBlock>
                   </FilterTemplate>
               </telerik:GridTemplateColumn>


               <telerik:GridTemplateColumn DataField="First_Name" HeaderText="First Name" SortExpression="First_Name" UniqueName="First_Name">
                   <EditItemTemplate>
                       <asp:TextBox runat="server" ID="First_NameTextBox" Text='<%# Bind("First_Name") %>'></asp:TextBox>
                   </EditItemTemplate>
                   <ItemTemplate>
                       <asp:Label runat="server" ID="First_NameLabel" Text='<%# Eval("First_Name") %>'></asp:Label>
                   </ItemTemplate>
                   <FilterTemplate>
                       <telerik:RadComboBox ID="FirstNameComboFilter" runat="server" DataSourceID="SqlDataSourceFirstName"
                           DataTextField="First_Name" DataValueField="First_Name" AppendDataBoundItems="True"
                           SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("First_Name").CurrentFilterValue %>'
                           OnClientSelectedIndexChanged="First_NameChanged"
                           MarkFirstMatch="True"
                           Filter="StartsWith"
                           AllowCustomText="True" Width="110px">

                           <Items>

                               <telerik:RadComboBoxItem Text="All" />

                           </Items>

                       </telerik:RadComboBox>
                       <telerik:RadScriptBlock ID="RadScriptBlockFirstName" runat="server">
                           <script type="text/javascript">
                               function First_NameChanged(sender, args) {
                                   var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                   tableView.filter("First_Name", args.get_item().get_value(), "EqualTo");
                               }
                           </script>
                       </telerik:RadScriptBlock>
                   </FilterTemplate>
  
               </telerik:GridTemplateColumn>

Konstantin Dikov
Telerik team
 answered on 03 Jun 2015
2 answers
117 views

Hello,

 

Having a bit of an odd issue where the styling is changing on a RadGrid after rebinding. To begin with its starting with the first row rendered above the bottom of the header row - which isn't ideal as well as showing a blank footer bar. Afterwards the top row is rendered correctly under the header row and the blank footer bar has disappeared.

 

Any idea what this could be?

Images attached and code below: -

 

<div style="horiz-align: center">
            <span style="text-align: center; font-size: large; padding-bottom: 15px;">Please select the relevant campaign: -</span>
            <div style="padding-bottom: 5px;">Search Campaigns: <asp:TextBox ID="CampaignFilter" AutoPostBack="true" runat="server"/><span style="padding-left: 5px;"><asp:button runat="server" Text="Search" id="SearchButton" OnClick="SearchButtonOnClick" /></span></div>
            <telerik:RadGrid ID="CampaignGrid" runat="server" OnNeedDataSource="CampaignGridNeedDataSource" 
                AllowPaging="False" Skin="WebBlue" Height="350px">
                <ClientSettings EnableRowHoverStyle="True" Scrolling-UseStaticHeaders="True" Scrolling-AllowScroll="True">
                    <ClientEvents OnRowClick="CampaignRowClicked" />
                </ClientSettings>
                <MasterTableView AutoGenerateColumns="False" AllowSorting="False" AllowFilteringByColumn="False" TableLayout="Fixed">
                    <Columns>
                        <telerik:GridTemplateColumn DataField="Name" SortExpression="Name" HeaderText="Campaign Name" UniqueName="Name">
                            <ItemTemplate>
                                <div class="TableCellNoOverflow" id="CampaignName"><%# Eval("Name") %></div>
                                <asp:HiddenField runat="server" ID="HdnCampaignId" Value='<%# Eval("Id") %>'/>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </div>

 

 

protected void CampaignGridNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        List<DataRow> campaigns = Campaigns.AsEnumerable().ToList();
        campaigns = campaigns.Where(r => ((string) r["Name"]).ToUpper().Contains(CampaignFilter.Text.ToUpper())).ToList();
        if(campaigns.Count > 0)
            CampaignGrid.DataSource = campaigns.CopyToDataTable();
        else
        {
            DataTable dt = new DataTable();
            dt.Columns.Add("Name");
            CampaignGrid.DataSource = dt;
        }
    }
 
    protected void SearchButtonOnClick(object sender, EventArgs e)
    {
        CampaignGrid.Rebind();
    }

 

Maria Ilieva
Telerik team
 answered on 03 Jun 2015
5 answers
132 views

Hello all,

Is it possible to display a custom "Edit task" page?

For example: I  would like to either :

1. Display my own modal popup "Edit Task" page to capture lots of extra task information, save it to the database (using a custom provider ) and then refresh the Gantt task line, or

2. On double click, navigate to a custom "Edit Task"  page, then on "Save" go back to the Gantt page.  

Chris.

 

Nencho
Telerik team
 answered on 03 Jun 2015
1 answer
86 views

Hi,

I am planning to use RadFileExplorer and it's build in RadAsyncUpload. I have a requirement to open multiple RadAsyncUpload dialogs at the same time.

Let's say one is for parent folder and the other one is for the subfolder in the parent folder.  Is it possible?

 

Thanks

Ivan Danchev
Telerik team
 answered on 03 Jun 2015
1 answer
1.1K+ views

Hi,

I try to bind an attribute to a ASP.NET Textbox in a ListBox.

However I get the error ​"Server tag is not well formed"

<asp:TextBox runat="server" Text="<%# DataBinder.Eval(Container, "Attributes['page_template_name']")%>" />

When I try to follow the way in this older thread: http://www.telerik.com/forums/server-tag-is-not-well-formed-with-trying-to-assign-am-attribute-to-a-text-field, by escaping the quotes, I still get the same error.

What is the correct way to bind the attribute?

Thanks.

 

XiMnet Malaysia
Top achievements
Rank 1
 answered on 03 Jun 2015
1 answer
96 views

Hi!

Are there any news regarding to the problem described here:
http://www.telerik.com/forums/radgrid-model-binding-selectmethod-fires-twice#_kZEWgTau0KuyscVphStNQ

Thanks in advance!

Chris

Konstantin Dikov
Telerik team
 answered on 03 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?