Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
269 views
This is probably really simple, but for some reason the grid is not pulling back any data when the filter is run. i have 2 grids on the page and you click grid1 it runs the datasource for grid2. this is all done with a postback in grid2. the new data is there and i want to filter it by say a "first name". so i click in the filter and type "Jim" - the grid is blank - no message nothing. but...
 
<telerik:GridBoundColumn DataField="FirstName" DataType="System.String" HeaderText="Name" UniqueName="FirstName" Reorderable="true" AutoPostBackOnFilter="false" CurrentFilterFunction="Contains" FilterDelay="1000" ShowFilterIcon="false">
<ItemStyle Width="100px" />
</telerik:GridBoundColumn>

...i click on the grid1 row that was selected and it does a postback and shows the filtered data using "Jim". why is it not filtering out when i am done entering the filter as the GridBoundColumn is coded. I have to select the Grid1 for the data to refresh the Grid2 data with the filter working. 

Grid2 below:
<telerik:RadGrid runat="server" ID="RadGridMembers" Height="825px" Width="600px" AutoGenerateColumns="false" AllowMultiRowSelection="false" AllowFilteringByColumn="true">
<GroupingSettings CaseSensitive="false" ></GroupingSettings>
<MasterTableView DataKeyNames="MemberId, FirstName" ClientDataKeyNames="MemberId">

There has to be something simple here that needs to make it postback and grab the data with the filter in place instead of clicking on the Grid1 to make it NeedDataSource

Thoughts, ideas, answers?
Thanks!
Angel Petrov
Telerik team
 answered on 26 Feb 2013
1 answer
140 views
Hello,

I'm adding new values to the comboBox client-side, including an icon. Unfortunately, the image won't work. In fact, all icons of already existing items (which were added server-side) disappear. The imageUrl is correct, I also used the imageUrl of the currently selectected item.

This is my code:
var caption = "Test";
var id = "123";
var img = "inc/img/Ps/Img1.png"
 
  var items = this.get_comboBox().get_items();
      this.get_comboBox().trackChanges();
      var comboItem = new Telerik.Web.UI.RadComboBoxItem();
      comboItem.set_text(caption);
      comboItem.set_value(id);
      comboItem.set_imageUrl(img);
 
      items.add(comboItem);
      this.get_comboBox().commitChanges();

Am I missing something?

Edit: If I don't set the ImageUrl to the client-side item, the other icons disappear anyway.
JP
Top achievements
Rank 1
 answered on 26 Feb 2013
6 answers
209 views
Hi,

I want to open a new appointment dialog using code behind or javascript, not clicking on the scheduler. I have played around with that but see no luck.

The scenario is that when I click on an external button outside the scheduler, it will open a new appointment dialog with current date.

Thanks,

Khoa
Wayne Wilson
Top achievements
Rank 1
 answered on 26 Feb 2013
2 answers
110 views
Hi,

I am defining a AppointmentTemplate in my RadScheduler. When I do so I lose the reminder bell icon that appears in the appointment label on the calendar when there is a pending reminder. Is there a way that I can retain that functionality with a custom appointment template?

Here is my Template:

<AppointmentTemplate>

<%# Eval("Subject") %> 

<%# Eval("Amount").Decimal().Equals(0M) ? "" : ": Amount : " + Eval("Amount").Decimal().ToString("C2")%>

</AppointmentTemplate>


Thanks

Wayne Wilson
Wayne Wilson
Top achievements
Rank 1
 answered on 26 Feb 2013
1 answer
48 views
I've noticed that in my project, as well as on the online load-on-demand demo's, when the user clicks on expand multiple times, the node generates multiple loading images but only removes one of these images when the child-nodes are returned.

How can I deal with this issue?
Bozhidar
Telerik team
 answered on 26 Feb 2013
2 answers
127 views
Hi,

I am using a RadDatepicker in my form. I want to display a warning near the RadDatePicker if some invalid character is entered?

Thank you,
Merlin.
Merlin
Top achievements
Rank 1
 answered on 26 Feb 2013
2 answers
168 views
Hi,
I have added a RadPanelBar in the master page of my web application. I want to collapse all the items on a certain page load only and so I thought of writing the code in client side page load, but my JS shows some error and is not working properly. Can anyone help me with the client side code?

Thanks,
Anly.
Anly
Top achievements
Rank 1
 answered on 26 Feb 2013
5 answers
207 views
Hello,
            I want to know that about Radeditor, Can we save the value of Form Control's Value in database.

For Example- I have took the Text Box in RadEditor and fill some text in text box, And when i have take the html of this RadEditor it's look like as -

<span><input style="width: 100px; height: 22px;" type="text"></span> But i need the Value of this text box -

<span><input style="width: 100px; height: 22px;" type="text" value="RAJKS"></span> Please let me know is it possible because i have save same string in database.
Rumen
Telerik team
 answered on 26 Feb 2013
4 answers
190 views
I have a RadGrid that uses a SqlDataSource and the column are auto-generated by the data source. Each column represents a date between a selectable date range. The grid works fine except if I want to use GridGroupByExpression. If that is enabled, I get an message stating (for example):

Column '2013-02-19' does not belong to table .

I'm not performing a postback and I don't have anything being called during Page Load or Init. The fields that are aggregated are whole integers.The columns displayed would be something like, 2013-02-19, 2013-02-20, 2013-20-21... again, this works fine if I don't use the grid group by expression and I can group manually... I'm trying to have the grouping by default.

Below is my ASPX:
<telerik:RadGrid ID="RG_SLASummary" runat="server" CellSpacing="0" DataSourceID="SDS_SLASummary" GridLines="None" ShowGroupPanel="True" style="margin:10px" ShowFooter="True" Height="750" OnColumnCreated="RG_SLASummary_ColumnCreated">
    <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">
        <Selecting AllowRowSelect="True" />
        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
    </ClientSettings>
    <AlternatingItemStyle Width="100px" />
    <GroupHeaderItemStyle Width="100px" />
    <GroupingSettings RetainGroupFootersVisibility="true" />
    <MasterTableView DataSourceID="SDS_SLASummary" ShowGroupFooter="true">
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <SelectFields>
                    <telerik:GridGroupByField FieldName="Region" FieldAlias="Region" />
                    <telerik:GridGroupByField FieldName="Status" FieldAlias="Status" />
                    <telerik:GridGroupByField FieldName="Scheduler" FieldAlias="Scheduler" />
                </SelectFields>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="Region" />
                    <telerik:GridGroupByField FieldName="Status" />
                    <telerik:GridGroupByField FieldName="Scheduler"  />
                </GroupByFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
        <SortExpressions>
            <telerik:GridSortExpression FieldName="Region" SortOrder="Ascending" />
            <telerik:GridSortExpression FieldName="Status" SortOrder="Ascending" />
            <telerik:GridSortExpression FieldName="Scheduler" SortOrder="Ascending" />
        </SortExpressions>
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"/>
        </RowIndicatorColumn>
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"/>
            <ItemStyle Width="20px" />
        </ExpandCollapseColumn>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <EditItemStyle Width="100px" />
    <FilterItemStyle Width="100px" />
    <ActiveItemStyle Width="100px" />
    <ItemStyle Width="100px" />
    <SelectedItemStyle Width="100px" />
    <FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>
 
<asp:SqlDataSource ID="SDS_SLASummary" runat="server" ConnectionString="<%$ ConnectionStrings:CWFMO %>" SelectCommand="ESP_SchedulerSLASummary" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:ControlParameter ControlID="RDP_StartDate" DbType="Date" Name="startdate" PropertyName="SelectedDate" />
        <asp:ControlParameter ControlID="RDP_EndDate" DbType="Date" Name="enddate" PropertyName="SelectedDate" />
    </SelectParameters>
</asp:SqlDataSource>

Below is my code behind:
protected void RG_SLASummary_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
        {
            if (e.Column is GridNumericColumn)
            {
                GridNumericColumn gridNumericColumn = (GridNumericColumn)e.Column;
                gridNumericColumn.Aggregate = GridAggregateFunction.Sum;
            }
        }


Maria Ilieva
Telerik team
 answered on 26 Feb 2013
1 answer
74 views
Hello,

I have an application that loads UserControls dynamically; using LoadControl("~/...")

In the usercontrol I bind the AutoCompleteBox to a IList (List(Of Long, String))
I have done this in the load and the Init.
When I run it, the AutoComplete is not working... (Probably because the datasource is reset every time?)
I do see a list, and can select something, but the logical first item is not selected, always the first.
The demo however does show this to be a solution (binding in load)

Any idea how I can bind it correct?

Erik
Bozhidar
Telerik team
 answered on 26 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?