Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
173 views
i Have a case where the First two Columns of radgrid are fixed and are template columns.i need those columns for itemdatabound processing.
Also i have set the autogeneratecolumns to true as number of columns are not fixed.
When the grid page first loads i am unable to see the Fixed Template columns.when i scroll the grid horizontally to end .these fixed columns appear on the right side.

Please help me on this  as i have to show the template columns from the load itself.
Shinu
Top achievements
Rank 2
 answered on 24 Mar 2010
1 answer
95 views
Hi, since installing q1 2010 rad control and reporting; 4 times out of 10 vs2008 will crash when opening a solution which uses telerik controls. The crash report mentions telerik.vsx. This happens on my laptop as well as my main dev pc.

Any other reports of this or fixes available?

Cheers 
Martin P
Andrey
Telerik team
 answered on 24 Mar 2010
1 answer
47 views

HI

I am trying to bind a selfreferencing grid using client side javascript. I am not using any server side code in any event. When i am able to bind the grid without selfreferencing but i add this line in my ascx page.
when i add this line my page gets in deadlock. it doesn't load.

 

 

<

SelfHierarchySettings KeyName="OrgID" ParentKeyName="ParentID" />

I use following code to bind the grid at client side.

 

loadGrid: function() {  
 
        MyService.GetList(oncallback, onError, onTimeOut);  
 
 
    },  
 
    oncallback: function(data) {  
        var orgGrid = $find('<%= OrgGrid.ClientID %>');
        var tableView = Grid.get_masterTableView();  
        if (data.length > 0) {  
            tableView.set_dataSource(data);  
            tableView.dataBind();  
        }  
 
    }, 

This is just a part of code. and the way i am binding the grids. It worked fine when binding normal grid. But when adding <SelfHierarchySettings KeyName="OrgID" ParentKeyName="ParentID" /> in the system gets in unstable state. it shows continuesly loading. I want to set these properties at client side but there is no method for setting this.
Please suggest.
Thanx

Yavor
Telerik team
 answered on 24 Mar 2010
0 answers
65 views
Dear Sir

I am working in Arabic site
I need to change the direction of advanced form (Appointment option page) direction to be right to left

and how can I related  it with css class

Thanks
Hamdy
Top achievements
Rank 1
 asked on 24 Mar 2010
1 answer
164 views
Hi,
I am binding a value to a Radslider in a Radgrid, this works fine in editmode, however on insert mode I ger the "Unable to cast...." error message. I'm assuming I need to find the control on itemcommand, however, how do I do that and set the value to for the slider to zero for insert mode?

    <telerik:RadSlider ID="RadSlider1" runat="server"   
                LargeChange="25" SmallChange="25" Value='<%# Bind("percent_complete") %>' 
                MinimumValue="0" MaximumValue="100" 
                Width="200" Height="40"   
                ItemType="Tick" TrackPosition="TopLeft" Skin="Sitefinity">  
    </telerik:RadSlider> 

protected void RadGrid_ItemCommand(object source, GridCommandEventArgs e)   
    {  
        if ((e.CommandName == RadGrid.InitInsertCommandName))  
        {  
             ?  
   
 
        }  
    }  
Nikolay Rusev
Telerik team
 answered on 24 Mar 2010
13 answers
391 views
Howdy,

I am evaluating using the TimePicker control and was wondering if there is anyway to add "paging" or some mechanism to reduce the size of the "flyout".  I need to display times from 12:00 AM to 11:45 PM in 15 minute intervals.  But that makes the fly out extremely large and awkward.  We currently just have an Hour drop down with 1 - 12, a Minute drop down with 00:00, 00:15, 00:30, 00:45, and then a AM, PM drow down.  As far as I can tell you don't have a control that mimics this type of functionality.  Am I wrong?

Thanks

dbl
Martin
Telerik team
 answered on 24 Mar 2010
5 answers
767 views
I want to do something with the RadWindow and wanted to check first if it's possible before I spend too much time.  Here's what I want do to.

1.  I have a page that displays some details for of a data object. 

2.  I would like to put a link on part of this page to pop up a modal RadWindow with some edit fields and an OK/Cancel button to allow the user to edit these details.

3.  When the user clicks OK on the popup, I want the popup to do a postback to process the data and store it int he DB.  I then want the popup to go away.

4.  After the data is stored by the postback of the popup, I want the base window to refresh and reload the new data from the DB.

Is this an intended scenario for the RadWindow?  If so, are there examples, or do you have suggestions on how to do it.

Thanks,
Mark DeMichele
Georgi Tunev
Telerik team
 answered on 24 Mar 2010
1 answer
160 views
I've created a simple grid to display a couple columns from an RSS feed using an XmlDataSource. The columns display fine but I want to group by a substring of one of the columns. The code for the grid is below (I hope this is educational for anyone else who wants to do this).

In short, there are three columns, c1, c2, and c3. These show RSS data 'title', 'pubDate', and 'description'. Rather than showing the whole publication date, for this example I just want to extract the first three characters of the day of the week so that I can group on it.

This isn't working with database columns, it's using XPath(expression) to render nodes as columns. So the GroupByField FieldName references below are invalid. Therefore, at runtime this error displays:
Telerik.Web.UI.GridGroupByException: Field pubDate not found in the source table. Please check the expression syntax.

It seems that the FieldName must actually be a database field name, not a column name from the grid. I've tried using the alias syntax but haven't been successful. I don't want to just use the fieldname, I want to group on a substring of that field, so it seems like the GroupByExpression needs to be something like this:
FieldName="XPath("pubDate").ToString().Substring(0,3)" 
 
But because of the quotes that's not going to work.

So can this be accomplished in markup? If not, how would it be done in code? (I tend toward C#)

Thanks!!


<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="RSS1" 
  GridLines="None" AllowSorting="True" ShowGroupPanel="True">  
  <HeaderContextMenu EnableAutoScroll="True">  
  </HeaderContextMenu> 
  <MasterTableView DataSourceID="RSS1" GroupLoadMode="Client">  
    <GroupByExpressions> 
      <telerik:GridGroupByExpression> 
        <SelectFields> 
          <telerik:GridGroupByField FieldName="pubDate" HeaderText="Day" /> 
        </SelectFields> 
        <GroupByFields> 
          <telerik:GridGroupByField  FieldName="pubDate" SortOrder="Ascending" /> 
        </GroupByFields> 
      </telerik:GridGroupByExpression> 
    </GroupByExpressions> 
    <RowIndicatorColumn> 
      <HeaderStyle Width="20px"></HeaderStyle> 
    </RowIndicatorColumn> 
    <ExpandCollapseColumn> 
      <HeaderStyle Width="20px"></HeaderStyle> 
    </ExpandCollapseColumn> 
    <Columns> 
      <telerik:GridTemplateColumn UniqueName="c1" Groupable="false" HeaderText="Title" 
        ReadOnly="True">  
        <ItemTemplate> 
          <a target="_blank" href='<%# XPath("link") %>'>  
            <%# System.Web.HttpUtility.HtmlEncode(XPath("title").ToString())%> 
          </a> 
        </ItemTemplate> 
      </telerik:GridTemplateColumn> 
      <telerik:GridTemplateColumn UniqueName="c2" Groupable="true" HeaderText="Day" 
        ReadOnly="True">  
        <ItemTemplate> 
          <%# System.Web.HttpUtility.HtmlEncode(XPath("pubDate").ToString().Substring(0,3))%> 
        </ItemTemplate> 
      </telerik:GridTemplateColumn> 
      <telerik:GridTemplateColumn UniqueName="c3" Groupable="false" HeaderText="Description" 
        ReadOnly="True">  
        <ItemTemplate> 
          <%# System.Web.HttpUtility.HtmlEncode(XPath("description").ToString())%> 
        </ItemTemplate> 
      </telerik:GridTemplateColumn> 
    </Columns> 
  </MasterTableView> 
  <ClientSettings AllowColumnsReorder="true" AllowDragToGroup="true" /> 
</telerik:RadGrid> 
<asp:XmlDataSource ID="RSS1" runat="server" DataFile="http://mydomain.com/blog/feed" 
  TransformFile="~/XSL.xsl" XPath="rss/channel/item"></asp:XmlDataSource> 

Here is the XSL which removes namespace info:
<?xml version="1.0" encoding="utf-8"?>  
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">  
  <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>  
  <xsl:template match="*">  
    <!-- Remove any prefixes --> 
    <xsl:element name="{local-name()}">  
      <!-- Work through attributes --> 
      <xsl:for-each select="@*">  
        <!-- Remove any attribute prefixes --> 
        <xsl:attribute name="{local-name()}">  
          <xsl:value-of select="."/>  
        </xsl:attribute> 
      </xsl:for-each> 
      <xsl:apply-templates/> 
    </xsl:element> 
  </xsl:template> 
</xsl:stylesheet> 
Yavor
Telerik team
 answered on 24 Mar 2010
0 answers
111 views
In my application, we have Rooms. In a simple example, we can easily show this grouping by creating a Rooms resource and setting the group by attribute in the RadScheduler tag. We also have people that will be attending the appointments and resources that may be assigned/dynamically created for each appointment. I finally had time to do some reading/playing and am comfortable with the idea/process of using a custom provider to handle most of this, but was curious if anyone had already developed something like they could either share or share pointers on.

Thanks,
Kevin
Kevin Price
Top achievements
Rank 1
 asked on 24 Mar 2010
1 answer
104 views
I'm trying to duplicate fundtionality I built in a prior framework.

In my Radgrid, I need one column to show both hyperlink or just gridbound based upon a value in the row.

For instance:

If status = 'waiting' column 1 should just show 'waiting' not as a hyperlink

If status = 'received' column 1 should show 'received' but it should be a hyperlink to page1.aspx with a keyfield

if status = 'lost' column 1 should show 'lost' but it should be a hyperlink to page2.aspx with keyfield.

So, the question is, in my Radgrid can I make one particular column behave as two different types based upon some other value in the row?  I can't find any examples of this.

Thanks for any help,
JC
John Cooney
Top achievements
Rank 1
 answered on 24 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?