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

Is there a Radcontext menu for web forms intelerik.
I need to add 4 context menu to a button .

Is it a way to do in telerik? I'm using the trial version.

Thanks,
ZR
Princy
Top achievements
Rank 2
 answered on 24 Jul 2009
3 answers
100 views
I am using the following javascript function

function

 

OnEndRequest(sender,args) {

 

alert();

 

var treeviewInstance = $find("<%= treeFramework.ClientID %>");

 

alert(treeviewInstance);

 

var selectedNode = treeviewInstance.getSelectedNode();

 

 

if (selectedNode != null)

 

{

selectedNode.ScrollIntoView();

}

}

It gives an errror that getSelectedNode();method is not supported..

I tried using get_SelectedNode() but no help.


Actually i want to scroll to selected node on ajax request..

Yana
Telerik team
 answered on 24 Jul 2009
5 answers
225 views
I have a grid with templated columns inside an AJAX panel. This column has a computed value. This causes a run-time error stating that the controls can not be modified because there is a code block within the controls collection. If I take the grid out of the panel it works fine but I only want to update the grid though. How do I get around this or fix it? Here is my column and it is in a grid contained in a standard AJAX panel.

                    <telerik:GridTemplateColumn UniqueName="DateLocked" Groupable="false" DataField="DateLocked" SortExpression="DateLocked" HeaderText="Date Locked"> 
                        <ItemTemplate> 
                            <asp:Label Text='<%# (Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "DateLocked")) > DateTime.MinValue.AddYears(1))? DataBinder.Eval(Container.DataItem, "DateLocked") : "N/A" %>' ID="DateLockedLabel" runat="server"></asp:Label> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
 


Associated with this error is the fact that the AJAX manager configuration screen does not list the controls on the page so that I can set the properties to let the update panel handle the AJAX calls for the grid.
sotero
Top achievements
Rank 1
 answered on 24 Jul 2009
1 answer
329 views
Hi,

For the filtering options in RadGrid, can I customize the options I have. I want to show only "Contains" and "EqualTo" for a particular column, can that be done?

Thanks
Shinu
Top achievements
Rank 2
 answered on 24 Jul 2009
3 answers
170 views
When I followed the procedure below to dynamically modify the HeaderText in a column I found that the sorting feature for that column was lost.


Is there a fix for the problem.

Note: I've added more detail on this in the thread for the actual link above.
Shinu
Top achievements
Rank 2
 answered on 24 Jul 2009
5 answers
226 views

aspx:

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
   
                <telerik:RadGrid ID="grdDashb2" runat="server" AllowFilteringByColumn="True"

                    AllowPaging="True" AllowSorting="True" GridLines="None" 
                    ShowGroupPanel="True" AutoGenerateColumns="False" 
                    OnNeedDataSource="grdDashb2_NeedDataSource"

                    OnItemCreated="grdDashb2_ItemCreated"

                    OnDataBound="grdDashb2_OnDataBound" 
                    OnItemCreated="grdDashb2_ItemCreated"

                    OnColumnCreated="grdDashb2_ColumnCreated"
                    OnPreRender="grdDashb2_PreRender">

<

MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="Client" AllowSorting="true" 

                        AllowPaging="true" DataKeyNames="TopicId,TopicParentId,TopicName,Tm" Width="100%" 
                        EditMode="EditForms" ClientDataKeyNames="TopicId">  
 
                        <SelfHierarchySettings ParentKeyName="TopicParentId" KeyName="TopicId" /> 
 
                        <Columns> 
                            <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" AllowFiltering="false">  
                                <ItemTemplate> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                              
                            <telerik:GridNumericColumn DataType="System.Decimal" DataField="Kmo" 
                                HeaderText="AFR" SortExpression="Kmo" /> 
                                  
                            <telerik:GridTemplateColumn DataField="Tm" UniqueName="Tm" HeaderText="Light">   
                                <FilterTemplate> 
                                    <telerik:RadComboBox ID="ARF_RadComboBox"  
                                        SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Tm").CurrentFilterValue %>'
                                        runat="server" 
                                        OnClientSelectedIndexChanged="TrafficlightColorIndexChanged">  
                                        <Items> 
                                            <telerik:RadComboBoxItem Text="All" /> 
                                            <telerik:RadComboBoxItem Text="item1" Value="item1"/>  
                                            <telerik:RadComboBoxItem Text="item2" Value="item2"/>  
                                            <telerik:RadComboBoxItem Text="item3" Value="item3"/>  
                                        </Items> 
                                    </telerik:RadComboBox> 
 
                                    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">  
                                    <script type="text/javascript">  
                                    function TrafficlightColorIndexChanged(sender,args) {  
                                        var tableView=$find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");  
                                        tableView.filter("Tm",args.get_item().get_value(),"EqualTo");  
                                    }  
                                    </script> 
                                    </telerik:RadScriptBlock> 
                                </FilterTemplate> 
                                  
                                <ItemTemplate> 
                                     
                                    <asp:Image ID="imgAFR" runat="server" ImageUrl='<%# ReturnUrl(Eval("Tm").ToString) %>'/> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                        </Columns> 
 </MasterTableView> 

cs:

        protected
 void grdDashb2_PreRender(object sender, System.EventArgs e)  
        {  
            if (grdDashb2.MasterTableView.FilterExpression != string.Empty)  
            {  
                RefreshCombos();  
            }  
        }  
 
        protected void RefreshCombos()  
        {  
            grdDashb2.MasterTableView.FilterExpression = grdDashb2.MasterTableView.FilterExpression.ToString();  
            grdDashb2.MasterTableView.Rebind();  
        }  
 
        public string ReturnUrl(string Tm)  
        {  
            if (Tm != "" || Tm != string.Empty)  
            {  
                return "../Images/" + Tm;  
            }  
            else 
            {  
                return "../Images/blankgif.gif";  
            }  
        } 

Hi!

Me again!

I want to filter in a Hierarchy grid by "Tm"  column
<telerik:GridTemplateColumn DataField="Tm" UniqueName="Tm" HeaderText="Light">   

I follow this demo: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx.

No Hierarchy, so good. 
But when I filter with Hierarchy , server error: Object reference not set to an instance of an object .

I don't konw whether there is some different when filter in Hierarchy or not?

Later I will post a screenshot to describe the situation more clearly.

Thank you!

Best wishes
Airad
Airad
Top achievements
Rank 1
 answered on 24 Jul 2009
23 answers
334 views
http://demos.telerik.com/aspnet/prometheus/Editor/Examples/SaveInExternalFile/DefaultCS.aspx

this example allows you to hard code 

protected

 

string path = "test.html";

but what if users are selecting their files via the template manager dialog - how do i pass that file name to the string path?

 

John
Top achievements
Rank 1
 answered on 23 Jul 2009
2 answers
189 views
Hi,

Is there a way to get the RadPane to automatically stretch to fill the screen?  I have a simplified example below where "paneBody" doesn't stretch to fit the screen even though I have RadSplitter height set to 100%. 


<

 

body>

 

 

 

<form id="form1" runat="server">

 

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

 

 

 

</telerik:RadScriptManager>

 

 

 

<telerik:RadSplitter ID="Main" runat="server" Width="100%" Height="100%" Orientation="Horizontal"  LiveResize="true" >

 

     

<telerik:RadPane ID="paneHeader" runat="server" Height="45px" MaxHeight="45" Index="0">

 

         Header

     <

/telerik:RadPane>

 

     

<telerik:RadPane ID="paneBody" runat="server" >

 

         

line 1 of 5<br /><br /><br /><br /><br /><br /><br />

 

         

line 2 of 5<br /><br /><br /><br /><br /><br /><br />

 

         

line 3 of 5<br /><br /><br /><br /><br /><br /><br />

 

         

line 4 of 5<br /><br /><br /><br /><br /><br /><br />

 

         

line 5 of 5<br /><br /><br /><br /><br /><br /><br />

 

     

</telerik:RadPane>

 

     

<telerik:RadPane ID="footer" runat="server" Height="40px"> 
        
footer

 

     

</telerik:RadPane>

 

 

 

</telerik:RadSplitter>

 

 

 

</form>

 

 

 

</body>

Thanks,
Kasia

 

 

 

 

 

Kasia
Top achievements
Rank 1
 answered on 23 Jul 2009
1 answer
72 views
Greetings:

We've developed a custom image chooser using the DialogOpener. Which we take the resulting args object and retrieve the src path and URL encode it and pass the ImageUrl to our thumbnail generator.

We build the script server side and register it to the page.

We had no issues in IE6, IE7 until the most recent updates.

function callBackFunction(sender, args){
var selectedItem = args.value.attributes[0].value;
..... custom code ....
}

the problem is, with the most recent updates, in IE7 or IE8 compatibility mode it returns null. this works great in IE 8, and FF 3.x
Would there be any chance there is another property that could be available that I am not aware of?

Thanks 
Russell
RWA
Top achievements
Rank 1
 answered on 23 Jul 2009
2 answers
129 views
Hi,
I've got a few questions related to the expand/collaps column:
1. Is there a way to hide the expand/collaps columns when there are no sub-items for a row
2. is there a way to hide the expand/collaps column itself if none of the rows has sub-items
3. I would like to add a collaps All rows/Expand All rows button

Thanks in advance, Eyal.
egoren
Top achievements
Rank 1
 answered on 23 Jul 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?