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

I have a rad grid in which i have a status column where I need to bind the current status from the DB. Also near by the item i have a " + " button when clicking on that, it should drop a list of status coming from dbmaster_status. and the user should be able to select a new status and update the db. what is the best option i have inside rad grid. No other button for updating the status.
Princy
Top achievements
Rank 2
 answered on 15 Mar 2011
1 answer
38 views
I'm using a RadGrid within a RadTab, within a RadWindow.  My local RadGrid attributes are:
<rad:RadGrid runat="server" id="memberGrid" 
                OnNeedDataSource="MemberGridNeedDataSource" 
                OnItemCreated="MemberGridItemCreated"
                OnItemDataBound="MemberGridItemDataBound"   
                ShowHeader="true" BorderWidth="0"  >
                <MasterTableView PageSize="3" >
                    <Columns>
                             ...
                    </Columns>                    
                </MasterTableView>
            </rad:RadGrid>
My global RadGrid skin attributes are:
<rad:RadGrid
    runat="server"
    ImagesPath="~/App_Themes/mySkin/Grid"
    Skin="mySkin"
    EnableEmbeddedSkins="false"
    AutoGenerateColumns="false"
    ShowFooter="true"
    AllowPaging="true" 
    PageSize="25"
    AllowSorting="true"
    Width="100%">
    <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
    </rad:RadGrid>

And my OnNeedDataSource function simply resets the DataSource of the grid:
protected void MemberGridNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            memberGrid.DataSource = Members; // Generic List
        }

I've added 5 items dynamically to the grid, in order each named "First", "Second", "Third", "Forth", "Fifth".  I add these items to a list using Members.InsertAt(0, new CustomListItem("First")).  The "InsertAt(0,...)" forces the next item added to the list to appear in the first row in the grid when rebound.  The issue I'm noticing is when paging, the RadGrid displays the wrong end of the list on the next page.  In the screen shot, I would expect to see, in order, "Second" and "First" on page 2 (screenshot fig b.), but instead it displays "Fifth", "Forth"...which is already being displayed when viewing page 1 (screenshot fig a.).  I've inspected the data source and all items do exist (screenshot fig c.). 

Any ideas on why the range that the RadGrid is selecting to view on the next page is not correctly aligned with the datasource?

Thanks,
Patrick
Veli
Telerik team
 answered on 15 Mar 2011
3 answers
82 views
I want ot make a point chart that has a maximum of .01 and a minimum of 1e-10.  When I try to add decimal values when Y has islogarithmic="true" it makes the maimum 10 no mater what.  I can set AutoScale to true or false and change the max / min / step values to my hearts content but it will still show the chart with a maximum of 10.  Is there a way to fix this.
Ves
Telerik team
 answered on 15 Mar 2011
3 answers
124 views
Hello,

I am creating a page that shows a RadListView of employees, and when an employee is selected I need to populate a radgrid with some further information.

I want to create on observable collection and then bind to my grid. (I can do this ok), but my problme now is how do I get the Paging and sorting ect.. to work.
I am having a difficult time doing this so examples would be great.

Thanks
Keith.
Tsvetina
Telerik team
 answered on 15 Mar 2011
1 answer
149 views
Good morning!

My version of the telerik is RadControls for ASP.NET Ajax 2010 Q3.

I'm trying to remove columns that are inserted with the command gridProntuarios.MasterTableView.Columns.Add() of grid through the command "gridProntuarios.MasterTableView.Columns.Clear();" and
"gridProntuarios.Columns.Clear();" but don't work.

What would the solution for this trouble?

Thanks!
Princy
Top achievements
Rank 2
 answered on 15 Mar 2011
1 answer
75 views
I am trying to use your sample AsyncUpload / Custom Handler

I am getting Exception when I try to cast following code.

Dim sampleConfiguration As SampleAsyncUploadConfiguration = New SampleAsyncUploadConfiguration
 
        Try
            sampleConfiguration = CType(configuration, SampleAsyncUploadConfiguration)
        Catch ex As Exception
 
        End Try
         
        If sampleConfiguration IsNot Nothing Then
            postID = sampleConfiguration.postID
        Else

Here is the ex text:

+                             ex           {"[A]SampleAsyncUploadConfiguration cannot be cast to [B]SampleAsyncUploadConfiguration. Type A originates from 'App_Web_xauu0n21, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Users\myPC\AppData\Local\Temp\Temporary ASP.NET Files\mysite\b2f60de7\7f7ee92\App_Web_xauu0n21.dll'. Type B originates from 'App_Code.e2pu7rre, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Users\myPC\AppData\Local\Temp\Temporary ASP.NET Files\mysite\b2f60de7\7f7ee92\App_Code.e2pu7rre.dll'."}                System.Exception


Because of this ex, I get nothing in the "sampleConfiguration"

Any work around to fix the problem?

Thank you.

Canis Lupus
Top achievements
Rank 1
 answered on 15 Mar 2011
4 answers
237 views
Hello all,

I'm currently having an issue with the RadToolTip flickering on postback. It may just be a mis-use of the intended purpose, but im hoping there may be something I can do.

I like the way the modal works (disabling most of the page and displaying the contents of the tooltip), this is the biggest reason I chose this (perhaps the window tool has something in the same range, I havent looked just yet).

I have searched and found that the tooltip disposes on postback, however the post states one option is to make an ajax request instead of a full postback. I thought the RadAjaxManager would handle that, it partially does, but it still flickers.
Source: http://www.telerik.com/community/forums/aspnet-ajax/tooltip/modal-radtooltip-not-displayed-after-postback.aspx

SCENARIO:
I am creating a user management system. The main page contains search criteria and a result grid. There is a linkbutton used to add a new user. I have a user control that does the adding of the user, and I am attempting to put it in the RadToolTip modal that pops up when the 'add user' link button is clicked. There is server-side functionality on the user control.

Everything seems to work fine, however the modal popup seems to dissapear and come back after every postback (any server-side event inside of the user control).

I have set the tooltips ShowEvent and HideEvent as 'FromCode' and Modal to 'True'. On the 'add user' link button click event, I set the VisibleOnPageLoad property to 'true' and .Show() it to the page. The reason I do the VisibleOnPageLoad property on the event, is so that it doesnt automatically pop-up when the main page loads. I am also using the RadAjaxManager to set ajax on the tooltip on the click event of the link button.

Everything is working perfectly and beatifully, excluding the pop-up clearing and coming back when events are fired from the user control within the tooltip.

Am I missing something that could help me, or mis-using the tooltip? Perhaps my logic is incorrect... Any help is appreciated.

RadAjaxManager Settings On User Management Page
<telerik:RadAjaxManager ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoadingPanel1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="SearchUsersLinkButton">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="UserSearchResultsRadGrid" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="AddNewUserLinkButton">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="AddEditUserRadToolTip" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

Tooltip Code on User Management Page
<telerik:RadToolTip ID="AddEditUserRadToolTip" Modal="true" Skin="Vista" ShowEvent="FromCode" Position="Center" RelativeTo="BrowserWindow" EnableShadow="true" HideEvent="FromCode" runat="server">
    <ACB:ProfileEdit ID="AddEditUserProfileEdit" runat="server" />
</telerik:RadToolTip>

AddNewUserLinkButton_Click Event
protected void AddNewUserLinkButton_Click(object sender, EventArgs e)
{
    AddEditUserProfileEdit.InitializeData(null);
    AddEditUserRadToolTip.VisibleOnPageLoad = true;
    AddEditUserRadToolTip.Show();
}

AddEditUserProfileEdit InitializeData(int? personID) Method and Methods called within (Just in case)
public void InitializeData(int? personID)
{
    if (personID == null)
    {
        //--New User Setup
        SetupCreateUser();
    }
}
private void ClearForm()
{
    ProfileFormInfoLabel.Text = " ";
    this.FirstName = String.Empty;
    this.LastName = String.Empty;
    this.UserNamePrimaryEmail = String.Empty;
    this.AlternateEmail = String.Empty;
    this.PhoneNumber = String.Empty;
    this.UserPassword = String.Empty;
}
private void SetupCreateUser()
{
    //--Title
    ProfileFormTitleLabel.Text = "Add System User";
    //--FormType
    this.FormType = FormTypeEnum.Create;
    //--Roles RadGrid
    UserRolesRadGrid.DataSource = new DataTable();
    UserRolesRadGrid.DataBind();
    ClearForm();
}
Esteban
Top achievements
Rank 1
 answered on 14 Mar 2011
3 answers
81 views
Hi,

How can I make css class of time slots in Radscheduler persist after postback. I am giving a colorful background to special days and times and I loose them after postback.

 protected void rsTicketsSchedule_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
    {
   
        if ( condition1)
              e.TimeSlot.CssClass = "Disabled";
       if ( condition2)
           e.TimeSlot.CssClass = "enabled";
}

To get the styles back, I have to rebind scheduler with every postback from the page. It affecting the performance of my application,  I want to avoid this and make cssclass persist.

Thanks,
Prava
Veronica
Telerik team
 answered on 14 Mar 2011
4 answers
220 views
Is it possible to get the expandable arrows to appear on the left side of the text in my panelbar items?  I have been trying to figure this out to no avail.  Any help would be greatly appreciated.  Thank you.
Srinivas
Top achievements
Rank 1
 answered on 14 Mar 2011
4 answers
81 views
Hi!

I have a RadGrid with 6 columns.
Filter is enabled on all columns.

In my first column, I have used a FilterTemplate to display a DropDown containing all my product categories.

Some of the categories have the same name, but different id's.
When I select a category from the dropdown, a client filtering is performed on the category name.
Now the grid contains all products where the category name is equal to the name in the drop down.

I want the filtering to occure on the value of the dropdown and not the name.
I tried to add a BoundColumn containing the CategoryId and filter on that column. This works fine when the column is visible, but when I set it to Display="false", no filtering occurs.

Any suggestions?

Regards
Per
Per
Top achievements
Rank 1
 answered on 14 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?