Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
234 views
I just have one checkbox and a text that comes in a datasource. Can I use a grid to get the following style?

CB1 Text1    CB2 Text2
CB3 Text3    CB4 Text4

...
Iana Tsolova
Telerik team
 answered on 06 Dec 2011
1 answer
133 views
I have the following code for radtreelist control , due to some issue my usercontrol popup form is not opening up in edit mode, please can i know is their any thing missing in the code thats avoiding pop up to open up.

 
<telerik:RadTreeList ID="RadTreeList1" AllowLoadOnDemand="true" AllowSorting="true" AllowPaging="true"<br>            PageSize="15" AutoGenerateColumns="false" OnChildItemsDataBind="RadTreeList1_ChildItemsDataBind"<br>            OnNeedDataSource="RadTreeList1_NeedDataSource" DataKeyNames="PId" ParentDataKeyNames="P1Id" runat="server" EditMode ="PopUp"><br>             <Columns><br>                <telerik:TreeListEditCommandColumn UniqueName="InsertCommandColumn" ButtonType="ImageButton"<br>                HeaderStyle-Width="60px" ItemStyle-HorizontalAlign="Center" /><br>               <telerik:TreeListButtonColumn UniqueName="DeleteCommandColumn" Text="Delete" CommandName="Delete"<br>                ButtonType="ImageButton" HeaderStyle-Width="30px" /><br>                <telerik:TreeListBoundColumn UniqueName="EmpCode"  HeaderText="Emp Code"<br>                            DataField="EmpCode" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"<br>                            ItemStyle-Width="100px" Visible="true"   /><br>               <telerik:TreeListBoundColumn ReadOnly="true" UniqueName="Status" DataField="Status" HeaderText="Status"<br>                            ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100px" Visible="true"><br>                 </telerik:TreeListBoundColumn><br>                <telerik:TreeListBoundColumn ReadOnly="true" UniqueName="Id" DataField="Id" <br>                            ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" Visible="false"><br>                   </telerik:TreeListBoundColumn><br>              </Columns><br>            <EditFormSettings EditFormType="WebUserControl" UserControlPath="~/Controls/Example.ascx" PopUpSettings-Modal="true" <br>            PopUpSettings-Width="700px"><br>        </EditFormSettings><br>        </telerik:RadTreeList>
Princy
Top achievements
Rank 2
 answered on 06 Dec 2011
1 answer
64 views
Hi,

We had a requirement as

The selection of the record(s) in the radgrid should be toggled by a single click of the mouse on the record. and without the use of any 'Ctrl' key to deselect it.

Is there any way to deselect the record in the radgrid by a click on it and without using 'Ctrl' key (in the case where only one record is selected.)

Can you please share your knowledge on this with me.

Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 06 Dec 2011
4 answers
289 views
I have a webform with a timer and various other controls.  When a button is pressed, the server Enables the timer.  The timer is obviously activated, as postbacks start with the OnTick event.  But once the timer starts ticking, none of the UI components are updated as defined by the ajax settings:
<asp:Panel ID="pnlTimer" runat="server">
  <asp:Timer ID="Timer1" runat="server" Interval="2000" OnTick="Timer1_Tick"
    Enabled="false">
  </asp:Timer>
</asp:Panel>
...
<telerik:AjaxSetting AjaxControlID="Timer1">
  <UpdatedControls>
    <telerik:AjaxUpdatedControl ControlID="pnlTimer" />
    <telerik:AjaxUpdatedControl ControlID="tbah" />
    <telerik:AjaxUpdatedControl ControlID="grPosts" />
    <telerik:AjaxUpdatedControl ControlID="lblErr" />
    <telerik:AjaxUpdatedControl ControlID="lblMsg" />
  </UpdatedControls>
</telerik:AjaxSetting>

The intent here is that on each timer postback some activity will be done which may update an error message or an informational message, and some conditions may cause the timer itself to change interval or disable.  But the labels are not updated, and neither is the timer.

I have a button defined as start/stop, and if I click that the timer does disable.

Note that I have the timer wrapped in a panel to accommodate the old issue where updating the timer throws an exception because it's trying to set a Visible property on the timer which doesn't exist.

What am I missing?  I'm sure it's something simple...  Thanks!
Iana Tsolova
Telerik team
 answered on 06 Dec 2011
1 answer
258 views
Hello

I am getting very desperate, i can not figure out why in


 

 

protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)

 

{

 

 

//initcombos

 

 

 

if (e.Item is GridEditFormItem && e.Item.IsInEditMode)



 

e.Item.IsInEditMode   is always false...

Can you please help?

Thanks

Kati

Princy
Top achievements
Rank 2
 answered on 06 Dec 2011
2 answers
114 views
If I have a RadGrid set up declaratively using an EntityDataSource, how can I set up filtering to cater for entity associations?

For example, in the EntityDataSource, this will not work if I try to filter on "Model":

Select="it.[Id], it.[ModelId], it.[Model].[Name] AS Model"

This results in an error:

Error: Sys.WebForms.PageRequestManagerServerErrorException: LIKE arguments must be of string type. Near member access expression, line 8, column 4.

The auto-generated column (by selecting Refresh Schema in the design view of the EntityDataSource control) is as follows:
<telerik:GridBoundColumn
    DataField="Model"
    DataType="System.String"
    FilterControlAltText="Filter Model column"
    HeaderText="Model"
    ReadOnly="True"
    SortExpression="Model"
    UniqueName="Model">
</telerik:GridBoundColumn>

Richard
Richard Weeks
Top achievements
Rank 2
 answered on 05 Dec 2011
4 answers
87 views
I'll share a problem that could be embarrassing but others may be here at some point too.

I tend to wrap controls into div tags just so that I can set style position x/y.
Within that I'm often confused about when to use a RadAjaxPanel, asp:Panel, asp:UpdatePanel, or a div.
The thing is that the RadAjaxManager creates panels around controls and ajaxifies them for us. But it can only do this if the controls are visible. So what gets me is when I need to make a control visible - it's not there for Ajax to toggle Visible=true. For these controls I think I sometimes need to do the ajaxifying in code-behind. So I split ajaxification between markup and code - which seems sloppy.

Then there are timers, and I have a recent thread going on about this. You can't ajaxify a timer as the updated control directly because it's not a visible control. You "may" need to put the control on a panel and set that as the updated control.  While I've seen this stated many times, examples show timers outside of panels, and I've tried that code and it works. In my more sophisticated pages it seems like sometimes I need the timer in a panel and other times not.  I'm just never sure about which panel to try - it's just a guessing game.  So why does the RadAjaxManager wrap other controls in a panel and not a timer? And what are the firm rules about exactly how this is supposed to be coded?

Here is a simple example that demonstrates some of my confusion related to the above.
I have a tab with a multi-page and a single timer on the page. In each tab is a start/stop button which can toggle the timer. If you press Start on tab 0 the timer is enabled and the button.Text is changed to Stop. Now click Stop, timer.enabled=false and button.text gets reset to Start.  Tab 1 has the same functionality.  The timer does postbacks which perform work, and when the work is complete the timer is supposed to get disabled and the button on the current tab toggled off.  If I pre-ajaxify the buttons in markup so that Timer1 updates both of them, only one of the buttons is visible at any given time, so I'll get an error at runtime. So I think I need to ajaxify controls in page_load for each pageview, depending on which tab is active. I also find that sometimes my controls ajaxify but the timer does not, or the timer ajaxifies but the controls do not. The effect is that on a timer_tick, (1) control updates are not reflected on the client, or (2) when I set timer.enabled=false, the client doesn't get that message and the timer keeps ticking.

I have spent exactly one week on nothing but the above problems, getting absolutely nothing productive done.  The code for these things is always too extensive to send to Telerik Support, though those great people are always eager to help us workout issues like this.  Over the last year I've spent many hours trying to balance RadAjaxManager with various panels and controls and codebehind code to accomplish the task of the day, and quite often the end result is "I don't know why that worked but I'll accept it".  That's unprofessional, I want to understand this better better.  What I'd rather see is a very clearly defined set of rules for when we need specific panels, and exactly what happens in the RadControls black-box "for" us, so that I know what to expect in my code.

This situation is causing me to re-consider using web forms for this stuff, and maybe to switch to MVC to eliminate a lot of the black-box activity that makes some of these very helpful tools yet another layer for debugging.  I don't know if that will really help.  Any comments?

Thanks for your time, and any feedback or links to indepth blogs or articles on this topic.
TonyG
Top achievements
Rank 1
 answered on 05 Dec 2011
3 answers
105 views
Hi everyone,
In my previous post i asked how to get the uniquename of column if you click on a cell. The issue was succesfully answered; the code will retrieve the column name on the client side. But how to get the column name directly on the server-side?

Ciao Peter.
Chris
Top achievements
Rank 1
 answered on 05 Dec 2011
1 answer
61 views
Hello,

I am loading my RadRibbonBar from an XML and wanted to know the format in which i can add a RibbonBarTemplateItem . The example at the demo site does not mention anything about a template ribbon items. Also is it possible to show a ribbon button without an image and just the TEXT also how do i wrap the text of the Button im adding .. ???

Thanks & Regards,
Francis P.
Damon
Top achievements
Rank 1
 answered on 05 Dec 2011
0 answers
102 views
I have a google map inside of a RadAjaxPanel. I want to add a panel or table to display a custom legend.

Basically a table that sits on top of the map.

I'm not sure what control to use to accomplish this.

I want the map to be 1000px by 500px. I want the legend to always be on top and in the lower right hand corner.



PATRICIA SEIFERT
Top achievements
Rank 1
 asked on 05 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?