Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
339 views
I've been having a heck of a time trying to get Javascript to populate a textbox in a RadGrid.  I've tried many methods found on the site, but can't seem to get it working.

My EditItemTemplate is as follows:

<EditItemTemplate>
   <asp:TextBox ID="reasonsTextBox" runat="server" Text='<%# Bind("reasons") %>'></asp:TextBox>
</EditItemTemplate>

I have a RadWindow that opens, some options are selected, then the value is converted to a string, and returned.  I have my value passing fine, but just can't get it to populate into the textbox.

Any help would be appreciated.
Adam Wills
Top achievements
Rank 1
 answered on 20 Jul 2011
5 answers
136 views
I have a RadMultiPage with a RadPageView in it.
In the latter one I have an <asp:ImageButton control which should perform a postback to download a file and put it into the response stream. Of course Ajax doesn't allow this because of the partial rendering.

If I try this I get the following error which is understandable:
Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near ...




How should I solve this? How can I force the ImageButton to perform a full postback or is there a better solution?

Thanks,
Stephan
Dimitar Terziev
Telerik team
 answered on 20 Jul 2011
3 answers
109 views
HI,
      What I am trying to do is use the UI of RadSchedulerRecurrenceEditor and save the pattern string into database. Then a windows service will pick this up and update the next occurence into database.
Is there a way to do this?
Are there any APIs that I can use in win service or a console application to get the next occurence from the pattern string?

Thanks & Regards.
Peter
Telerik team
 answered on 20 Jul 2011
4 answers
77 views
Help. I have the grid showing a master/detail via EntityDataSources just fine. And I see all the columns from the master table but cannot see any columns for the detail table. I can add bound columns manually but I don't want to type all that markup.

How can I have the property editor show me all the selected columns automatically so I can edit thema s to their headers, visibility etc. without have to add each column manuallay tot he markup?

VS2010 using the trial version published a few months ago.

Dave
Iana Tsolova
Telerik team
 answered on 20 Jul 2011
2 answers
484 views
Hi,

I wish to loop through all rows in a RadGrid, not just the ones that are currently displayed, to extract the value of a cell. I am using the following code:
For Each item As GridDataItem In RadGrid1.Items
          Response.Write("Custid=" & item("custid").Text & "<BR>")
Next

This works fine but only for the currently displayed items. I wish to do this for all items in RadGrid, not just the ones that are displayed.

Thanks

Tim
Danny
Top achievements
Rank 1
 answered on 20 Jul 2011
1 answer
170 views

Hi,

I am evaluating your product, and can't figure out how to set the date range for a TimeLineView.

I am trying to display this week and next week, weekdays only, always starting on Monday of this week and ending on Friday of next week.  I would also like a break between weeks so that week 1 shows up above week 2.

I am doing this server side in C#:

The below code works but displays a date range from today though to the number of slots specified.

schd.DataSource = datasource;

schd.DataKeyField = "ID";

schd.DataSubjectField = "NumSwaps";

schd.DataStartField = "Roll_Date";

schd.DataEndField = "Roll_Date";

schd.SelectedView = SchedulerViewType.TimelineView;

schd.TimelineView.ColumnHeaderDateFormat = "dddd MM/dd";

schd.TimelineView.NumberOfSlots = 5;

schd.ShowNavigationPane = false;

schd.FirstDayOfWeek = DayOfWeek.Monday;

schd.LastDayOfWeek = DayOfWeek.Friday;

schd.ShowFooter = false;

schd.ShowAllDayRow = false;

schd.ShowHoursColumn = false;

schd.OverflowBehavior = OverflowBehavior.Expand;

schd.DataBind();

<telerik:RadScheduler ID="schd" runat="server" ShowViewTabs="false" ReadOnly="true">

</telerik:RadScheduler>

 

Screenshot attached, and thanks!

Dawn

Peter
Telerik team
 answered on 20 Jul 2011
1 answer
64 views
Hi there,

I'd like to suggest that you add each of the RadGrid column types as items to the Visual Studio toolbox. The default behaviour could be to include a configurable list of column properties as the starting point when you drag a column type from the toolbox into your grid markup.

Any thoughts?

Rob
Iana Tsolova
Telerik team
 answered on 20 Jul 2011
1 answer
73 views
Hi there,
         I have using Radtabstrip with 5 radtabs.In the  Radmultipageview i am using only one page view with one asp:Placeholder  .In that page i have created Radgrid dynamically using pageInt event.When i click anyone of the tab, Radgrid shows the respected data for different radtabs and dynamically added it to the placeholder.So each tabs show the different datas in the single Radgrid in a single pageview..My problem is,that scenario works fine for some browsers..But in the case of  browser like moZila,....every tabs shows the grid same as first tab  which has contain first tab content...What mistake i have done..Please explain..

my code ..
protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        if (!Page.IsCallback)
        {
            if (!Page.IsPostBack)
            {
                Session["table"] = null;
            }
            if (null == Session["table"])
            {
                if (Session["userID"] != null)
                {
                    //do something
                }
                Session["table"] = tableName;
            }
            else
            {
                tableName = Session["table"].ToString();
            }
           //Creating grid contents
            PopulateGrid(tableName);
        }
        else
        {
            //Do nothing
        }
    }
Iana Tsolova
Telerik team
 answered on 20 Jul 2011
1 answer
99 views
I am considering using the scheduler control for resource planning.  One of the requirements is being able to plan shift workers.  These workers work on a 2 week rotating schedule, for example:

Monday, Tuesday ON
Wednesday, Thursday OFF
Friday, Saturday, Sunday ON
Monday, Tuesday ON
Wednesday, Thursday, Friday OFF
Saturday, Sunday ON


Is there a way to set up a reoccurrence rule to handle this?


 
Plamen
Telerik team
 answered on 20 Jul 2011
1 answer
220 views
The RadTextBox with multiline property on is having a really annoying problem while typing. Every keypress is reflected after a few seconds, and makes the control unusable. We are having this problem with the latest version (2011.2.712.40); where the previous one did not have this issue.

We do recall this problem from previous versions (probably 2010 versions) of ASP.NET Ajax library; so it is back.

Worst of all, we went live without noticing this; and now the customers are struggling with the problem.

Please very very urgent solution ASAP.
Martin
Telerik team
 answered on 20 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?