Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
169 views
Hey.

I'm building my grid programmatic, and in my itembound method i need to do some lookups on spesific columns based on the Id.
So when i create the grid i need to specify which column is a lookup column.

I was hoping i could use attributes, but columns don't have this property.

public static void DefineColumn(string strFile, RadGrid hraGrid)   
{   
   hraGrid.ItemDataBound += new GridItemEventHandler(default_ItemDataBound);   
   
   GridBoundColumn myCol = new GridBoundColumn();   
   hraGrid.MasterTableView.Columns.Add(myCol);   
  
   myCol.attribute["Type"] = "TextLookup";  
  
   myCol.DataField = ;   
   myCol.UniqueName = strBuf;   
   myCol.SortExpression = strBuf;   
  
   GridBoundColumn myCol2 = new GridBoundColumn();   
   hraGrid.MasterTableView.Columns.Add(myCol);   
     
   myCol2.DataField = ;   
   myCol2.UniqueName = strBuf;   
   myCol2.SortExpression = strBuf;          
}   

itembound method
foreach (GridColumn col in e.Item.OwnerTableView.RenderColumns) 
{           
    if (col.type == "TextLookup") 
    {      
      item[0].Text = (string)getText(iTextID); 
    } 
} 

Princy
Top achievements
Rank 2
 answered on 09 Apr 2009
1 answer
98 views
Hi All,

I just changed from q4 2006 to q1 2009, and where I was happily loading various aspx forms into my "ContentPane" this functionality no longer works.

?? 

 

int confuser = DateTime.Now.Millisecond; //Confuse and Eliminate IE7 caching

 

SubPlanId = 0;

Session[

"SubPlanId"] = "False";

 

contentPane.ContentUrl =

"ContactsAllocated.aspx?" + confuser +

 

 

"&OwnerId=" + SelectedRolePlayer_Id +

 

 

"&PlanId=" + planId + "&SPlanId=" + SubPlanId ;

Markup is

 

 

<telerik:RadSplitter ID="RadSplitter" runat="server"

 

 

    LiveResize="true" Orientation="Vertical" width="100%" height="99%"

 

 

 

 

    ResizeWithBrowserWindow="true">

 

 

    ...
    ...

 

    <telerik

:RadPane ID="NavPane" runat="server"

 

 

        MaxWidth="800" MinWidth="200" Width="20%"

 

 

        Height="99%" Scrolling="None" >

 

 

        <Table..........></Table>
        <TreeView......></TreeView>

 

    </

telerik:RadPane>

 

 

 

 

 

 

    <telerik:RadSplitBar ID="RadSplitbar2" runat="server"

 

 

        CollapseMode="Both" ></telerik:RadSplitBar>

 

 

 

 

 

 

    <telerik:RadPane ID="contentPane" runat="server" Scrolling="None"

 

 

            ContentUrl="" Height="100%" Width="100%" MinWidth="600"

 

 

            style="font-size: medium; background-color:White" Collapsed="false"

 

 

            >

 

 

 

 

            <

telerik:RadSplitter ID="RadSplitter2" runat="server"

 

 

                    LiveResize="true" Orientation="Horizontal"

 

 

                    Visible="true">

 

 

        

 

                 <

telerik:RadPane...............>

 

                      <RadGrid............>

                      <RadGrid............>

                </telerik:RadPane>

 

 

        </telerik:RadSplitter>

 

 

 

 

 

 

    </telerik:RadPane> <%--contentPane --%>

 

 

 

 

 

</telerik:RadSplitter>

 

 

           
Thanks
Neal

Svetlina Anati
Telerik team
 answered on 09 Apr 2009
1 answer
299 views
Hello,

  I have a problem with on-the fly generated columns in the radgrid. This radgrid is created ad design time, left empty, everything is done later in runtime. 

 Grid properties are:
ViewerTable.Width = Unit.Percentage(95);  
ViewerTable.ShowGroupPanel = false;  
ViewerTable.AutoGenerateColumns = false;  
ViewerTable.AllowPaging = false;  
ViewerTable.GroupingEnabled = true;  
ViewerTable.ClientSettings.Resizing.AllowColumnResize = true;  
ViewerTable.ClientSettings.Scrolling.AllowScroll = true; 

  1. I set the width for every column when created, so if there is a longer text put in it gets wraped - which is ok. The problem occurs if the sum of the columns is less than the width of the grid itself. Then at the last column, which is now a little higher due to the wraped text, "breaks" header line of the grid.
  2. The last column is missing right border line. I have read that this could happen when the cells are empty but these are not. The line is missing on the whole column border, not just (possible) empty cells.

Issues can be seen here.

I'm sure that I'm just missing something.

Thank you for your help,

 Marko.

Dimo
Telerik team
 answered on 09 Apr 2009
1 answer
206 views
Hello,

in my applicatioin (small Workflow) I need to change to the next tab with a click on a button.

Are there examples how to do this?

Tanks
Christian
Shinu
Top achievements
Rank 2
 answered on 09 Apr 2009
1 answer
52 views
Hi all,

        I am using RadComboBox as FilterTemplate in GridBoundColumn as shown :

<telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"UniqueName="Name">
     <FilterTemplate> 
         <telerik:RadComboBox ID="rcbFilterIssueNames" DataTextField="Name" runat="server" AutoPostBack="true" ShowToggleImage="true"OnSelectedIndexChanged="rcbFilterIssueNames_SelectedIndexChanged" Skin="Office2007"Width="300" OnItemsRequested="rcbFilterIssueNames_ItemsRequested">
         </telerik:RadComboBox> 
     </FilterTemplate>
</telerik:GridBoundColumn>

.cs page code :
protected void rcbFilterIssueNames_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
        {
            
        }

 When i click on DropDown of ComboBox in Grid(FilterTemplate) control does not come to .cs page. Can anyone suggest me why this problem is?

Thanks,
Josh.

Josh
Top achievements
Rank 1
 answered on 09 Apr 2009
1 answer
66 views
HI,

I would like to create a grid same as the example in the demo site http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx but when I implement it I cannot click the tab?  What causes this problem? How can I fix it?

Thanks,
El Roy
Dimo
Telerik team
 answered on 09 Apr 2009
8 answers
173 views
Hi there,
I'm trying to find PSD files for Q1 2009 but the latest I could find that contains PSD files is Q3 2008. The PSD file of Q3 2008 and the TabStripStates.png image file of Q1 2009 are radically different and I'm desperate to find some information on how create modified png files and how to ask our graphic designer to generate them. Any information is appreciated.

--
Ali B
Alex Gyoshev
Telerik team
 answered on 09 Apr 2009
3 answers
181 views
Hi,

I found out that I can move a file by dragging it.
Is there a way to copy it instead (the common CTRL key does not work).

Regards

Manfred
ManniAT
Top achievements
Rank 2
 answered on 09 Apr 2009
2 answers
148 views
Hi,

I have a radgrid being displayed, and at any given instance it will have a minimum of 500 rows. 
This grid is resulting in the webpage taking a very long time to load, and we have also defined a context menu to be opened on right click of this grid. This context menu never showsup, rather this operation result in a IE hang.

Need your help at the earliest possible.

Thanking you in advance.
Parodist
Top achievements
Rank 1
 answered on 09 Apr 2009
1 answer
56 views
Greetings,

I'm currently using Q1 2009 and have skinned the Grid to use Default 2008.

I'm using this within Sharepoint 2007 so everying gets set programatically.

Since I'm using a custom skin the FiltlerMenu does not get skinned. I've looked at the documentation to apply skinning, but can't seem to figure it out on my own.

How would someone who is deriving the grid programatically skin the Filtermenu?

I'd appreciate any assistance with this.

Thanks,

-Matt
Dimo
Telerik team
 answered on 09 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?