Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
169 views
Hi there,

I have a radgrid with cell values including the id of a record. I want when I double click on the row in the grid to capture the value representing the id of the record. How can I achieve this.

eg

ID|NAME|ADDRESS
-----------------------------------------------
5|JOHN|56 SMITH ST
7|MIKE|87 MOLLY ST
8|ALEX|11 TEMS ST

I want when I double-click on the grid's first row, to capture id 5 on the serverside.

Once I capture this id 5, I will pass it in a query to the database to get the full details of the record and display the it on a separate tab in my application.

Please help!
Monsi Lache
Top achievements
Rank 1
 answered on 14 May 2010
1 answer
134 views
hello all,
i have radgrid with radcombobox in filtertemplate 

it works fine 

but on clear filter button  i rebind grid upto this everything is fine and i manged to clear all filter text box to set empty 

but my radcombo is not reset on clear button click 

how can i achive this 
Princy
Top achievements
Rank 2
 answered on 14 May 2010
1 answer
62 views
Please have a look at the attached image.
Using Firefox firebug to examine its css, it shows

.RadGrid_WebBlue td.rgGroupCol, .RadGrid_WebBlue td.rgExpandCol {
background:none repeat scroll 0 0 #8EA3B9;
border-color:#8EA3B9;
}

How to change the background color of grid expanded column?

Many thanks

Toby
Dimo
Telerik team
 answered on 14 May 2010
1 answer
125 views
Hello i am trying to execute this sample code but keep getting an error

<input type="button" value="LEFT PANE" onclick="LoadExternalContent('http://www.google.com','RightPane');" /> 
         
<script type="text/javascript" language="javascript">  
            function LoadExternalContent(url, targetPaneID) {  
                //obtain reference to the parent page             
                //var splitterPageWnd = window.parent;  
                //call a method from the parent page-->  
                var splitterObject = GetMainSplitter();  
                var splitter = $find("MainSplitter");  
                alert(splitterObject);  
                var _pane = splitter.GetPaneByID("LeftPane");  
                var pane = splitterObject.GetPaneById("LeftPane");  
                if (!pane) return;  
                pane.set_contentUrl(url);  
            }  
 
        </script> 

I get an Error stating that Splitter doesnt have the property GetPaneById

Any Ideas?
Petio Petkov
Telerik team
 answered on 14 May 2010
1 answer
99 views
hi all,

i have two datepicker on page viz. date1 and date2

i disable all dates in date2 which are less than date1 now it is always date1<date2

i use ondayrender(...,..) event for date2  and set date1's autopostback=true.. it works fine and

now i added radajaxmanager as 


<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="RadDatePicker2"> 
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadDatePicker1" /> 
                             <telerik:AjaxUpdatedControl ControlID="RadDatePicker2" /> 
                             
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 

and now it wont work more :( plz help me 


Shinu
Top achievements
Rank 2
 answered on 14 May 2010
6 answers
358 views
hey,
       i am encountering this exception while trying to enable grid filtering,
'GridItem' is a type and cannot be used as an expression.

<telerik:GridBoundColumn HeaderText="<%$Resources:Created %>" UniqueName="Created"
                                        SortExpression="PostDate" DataField="PostDate" DataFormatString="<%$Resources:DateFormat %>">
                                        <FilterTemplate>
                                            From
                                            <telerik:RadDatePicker ID="FromOrderDatePicker" runat="server" Width="85px" ClientEvents-OnDateSelected="FromDateSelected"
                                                MinDate="01-01-1900" FocusedDate='<%#Eval("Status.Title") %>' DbSelectedDate='<%#Eval("Status.Title") %>' />
                                            to
                                            <telerik:RadDatePicker ID="ToOrderDatePicker" runat="server" Width="85px" ClientEvents-OnDateSelected="ToDateSelected"
                                                MinDate="01-01-1900" FocusedDate='<%#Eval("Status.Title") %>' DbSelectedDate='<%#Eval("Status.Title") %>' />
                                            <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

                                                <script type="text/javascript">
                                                    function FromDateSelected(sender, args) {
                                                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");

                                                        var date = FormatSelectedDate(sender);

                                                        tableView.filter("OrderDate", date, "GreaterThanOrEqualTo");

                                                    }
                                                    function ToDateSelected(sender, args) {
                                                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");

                                                        var date = FormatSelectedDate(sender);

                                                        tableView.filter("OrderDate", date, "LessThanOrEqualTo");
                                                    }
                                                    function FormatSelectedDate(picker) {
                                                        var date = picker.get_selectedDate();
                                                        var dateInput = picker.get_dateInput();
                                                        var formattedDate = dateInput.get_dateFormatInfo().FormatDate(date, dateInput.get_displayDateFormat());

                                                        return formattedDate;
                                                    }
                                                </script>

                                            </telerik:RadScriptBlock>
                                        </FilterTemplate>
                                    </telerik:GridBoundColumn>
any help please
GlenB
Top achievements
Rank 1
 answered on 14 May 2010
0 answers
89 views
Hello,

I have a radchart and I added tooltips for the items. Everything works fine IF I disable the chart scroll bars:

RadChart1.ClientSettings.ScrollMode = ChartClientScrollMode.None

But if I enable the scroll bars:
RadChart1.ClientSettings.ScrollMode = ChartClientScrollMode.Both
then tooltips cannot be seen anymore!

Why is this happening? Is this a bug?

Thank you,
M. Rusu

 

 

 

M. R.
Top achievements
Rank 1
 asked on 13 May 2010
6 answers
163 views
Hello,

I need a button in editmode of RadGrid as shown in image. On click of this button i need to show a popup which will have two textboxes of usernname and password and a button. on click of button i need to perform database operation. How it can be done?

Thanks
Amarinder
Jeremy Yoder
Top achievements
Rank 1
 answered on 13 May 2010
3 answers
161 views
Team,

1) RG1.jpg is my webPage.
2) RG2.jpg is after exporting Radgrid to MS Word 2003.

Problem is, I want to remove the Hyperlink, and Alignment should be Right.

Kindly provide me the soln.

Thanks,
Rajesh N.
Daniel
Telerik team
 answered on 13 May 2010
4 answers
229 views

Hi,

I am having a problem using File Explorer. Uploading works fine but when I try to rename or delete any file or folder, an error pops up saying that "The selected file could not be deleted because the application did not have enough permissions...".

I have gone through the earlier posts in forums regarding this problem but could not get to find out the solution. I am using ASP.NET AJAX Q3 2009 SP2 version and the declarations of file explorer in my codes are as follow:

> in .aspx

<telerik:RadFileExplorer ID="fileExplorer" runat="server" 
DisplayUpFolderItem="True" 
EnableCopy="True" Skin="Windows7" 
OnClientLoad="OnClientLoad" 
Configuration-MaxUploadFileSize="2000000000" 
Width="524px" TreePaneWidth="150px">  
</telerik:RadFileExplorer> 

> in .aspx.cs
protected void Page_Load(object sender, EventArgs e)  
    {  
        if (!Page.IsPostBack)  
        {  
            string[] searchPatterns = new string[1];  
            searchPatterns[0] = "*.*";  
            fileExplorer.Configuration.SearchPatterns = searchPatterns;  
 
            string[] paths = new string[1];  
            paths[0] = "~\\Root\\" + (string)Session["userName"];  
 
            fileExplorer.Configuration.ViewPaths = paths;  
            fileExplorer.Configuration.UploadPaths = paths;  
            fileExplorer.Configuration.DeletePaths = paths;  
        }  
    } 

Kindly suggest me a simple solution to sort this problem out. Thanks

Regards
Muhammad Farjad
Muhammad Farjad
Top achievements
Rank 1
 answered on 13 May 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?