Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
30 views
Hi,

I'm trying to get the  monthview setup with resources down the left hand side. 
However, the resources don't line up with the main scheduler view.
This is happening when we have multiple Appoinments in a month.
This is causing problem , becuase appointment is not showing under correct resource.

Please help to resolve this issue.
Veronica
Telerik team
 answered on 12 Jul 2011
1 answer
109 views
Hello,

I have a grid with multiple row select option set to true. I need to implement a function which is called on grid row select at client side and that function selects other rows in grid based on a column value. For example , Assume grid with 10 rows and 5 columsn,  if I select row 2 and my matching column value is also present in row 4 , row 7 and row 9. Then row 4, 7, and 9 should be automatically selected.

Let me know how to implement this using client side function OnRowSelect ()

Thanks
Shinu
Top achievements
Rank 2
 answered on 12 Jul 2011
2 answers
85 views
When i click add button in Header of TreeList i will show form template to add record, after that i click add button in item template it's also show form template to add record. I put blank in textbox afterthat I click save asp validate catch blank text in two form template.Anybody help me how to prevent show form template twice. I have attachment for that scenario. Thanks
Henry John
Top achievements
Rank 1
 answered on 12 Jul 2011
8 answers
210 views
Hi

I have a scollable RadGrid and would like to drag and drop items within the grid (i.e. to re-order them). This is fine within the visible grid area itself but the grid does not automatically scroll if you drag to its bounds (probably not surprising in a web control!).

The mouse wheel does scroll the grid allowing me to drop to an initially non-visible row. I would like the up/down/page up/page down keys to do this but they are disabled during the drag operation. However if I drag with the right mouse button the keys work as expected (but the context menu is displayed on release).

Is there anything I can do to allow the up/down/page up/page down keys to scroll the grid while the drag is in progress?

Thanks
Russell Mason
Virendra Shinde
Top achievements
Rank 1
 answered on 12 Jul 2011
1 answer
142 views
I have a radGrid that has about 5 columns.  The RadGrid is setup to me in inplace edit mode when doing an insert.  I have subscribed to the OnCommand client event to capture the insert client side before it is sent to the server.  The event IS firing but I cannot figure out for the life of me of how to get the inplace data that the user is trying to insert.

Any help would be GREATLY appreciated.

-Jason
Shinu
Top achievements
Rank 2
 answered on 12 Jul 2011
1 answer
64 views
Hi,

Was just wondering if there's a simple way of re-arranging the Update/Cancel buttons when in In-line Edit Mode?

I'm using two images for my update (check mark) and cancel (red x). Is there a way to place my Update Button on the far left side of the Grid, and have my Cancel Button on the far right side of the grid when in edit mode?

Best Regards,

Landon
Princy
Top achievements
Rank 2
 answered on 12 Jul 2011
1 answer
42 views
For the TreeView, i am trying to set up through a datasoure.
I have the following code within my .aspx file but I do not see the RadTreeView.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadTreeView.aspx.cs"   %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
  
    protected void SqlDataSource1_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
    {
  
    }
</script>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
      
        <telerik:RadTreeView ID="RadTreeView1" Runat="server" DataFieldID="id_num" 
            DataFieldParentID="manager" DataSourceID="SqlDataSource1" DataTextField="fname" 
            DataValueField="fname">
        </telerik:RadTreeView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:nayan_alphametrixConnectionString2 %>" 
            SelectCommand="SELECT [id_num], [fname], [manager] FROM [TreeView]" 
            onselecting="SqlDataSource1_Selecting">
        </asp:SqlDataSource>
      
        <telerik:RadButton ID="RadButton1" runat="server">
        </telerik:RadButton>
      
    </div>
    </form>
</body>
</html>


I am not sure what I am doing wrong. I am basically using the wizard for the datasource. Thank you.
Shinu
Top achievements
Rank 2
 answered on 12 Jul 2011
4 answers
139 views

 Problem: after put rgDataRetrieval.MasterTableView.FilterExpression=... on grid PreRender makes grid all the column filter function not work. Please help!

 

I have a radgrid, has allow filter for all the columns turn to true.
I also need to have a date manually filtered by a search button click to filter the datagrid manually by start and end date.

I put the following code on PreRender, the serach button manually filter works fine, but after put  rgDataRetrieval.MasterTableView.FilterExpression=... in PreRender, the grid column auto filter for all the columns does not work right- not work at all

protected
void rgDataRetrieval_PreRender(object sender, EventArgs e)

 

{

 

 

DateTime startDate =Convert.ToDateTime("1/1/1900");

 

 

 

DateTime endDate = Convert.ToDateTime("1/1/2900");

 

 

 

if (rdpFrom.SelectedDate!=null)

 

startDate=rdpFrom.SelectedDate.Value;

 

 

if (rdpTo.SelectedDate!=null)

 

endDate=rdpTo.SelectedDate.Value.AddDays(1);

 

 

if (rdpFrom.SelectedDate != null || rdpTo.SelectedDate != null)

 

{

rgDataRetrieval.MasterTableView.FilterExpression =

 

null;

 

rgDataRetrieval.MasterTableView.FilterExpression =

 

"(([DownloadEnd] >= '" + startDate +

 

 

 

"') AND ([DownloadEnd] <= '" + endDate + "')) ";

 

rgDataRetrieval.MasterTableView.Rebind();

}

}


Shinu
Top achievements
Rank 2
 answered on 12 Jul 2011
0 answers
70 views
Can not execute button click even when set  autopostback of RadDatePicker properties  is true.
Telerik version: 2011.1.315.40
Help me. please!
hai
Top achievements
Rank 1
 asked on 12 Jul 2011
3 answers
224 views
I have a RadGrid setup so that double clicking a row opens a form under the row to allow editing. The form itself lives in a web user control.

On this form one of the fields is a CheckBox. It looks like this.

<td><asp:CheckBox ID="chkIsActive" runat="server" Checked='<%# DataBinder.Eval( Container, "DataItem.con_Is_Active") %>' /></td>
 
The code in the 'Checked=' bit sees that on edit the Checked property gets set to True or False. Perfect.

However, when I hit the Add New Record button, this line gets a problem.

Specified cast is not valid.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Specified cast is not valid.

Source Error:

Line 24:          <tr>
Line 25:          <td align="right">Active:</td>
Line 26:          <td><asp:CheckBox ID="chkIsActive" runat="server" Checked='<%# DataBinder.Eval( Container, "DataItem.con_Is_Active") %>' /></td>
Line 27:          <td></td>
Line 28:         <td></td>

Source File: c:\Dev\RadGrid\RadGrid\Controls\ContactDetails.ascx    Line: 26



It's pretty easy to understand why.  DataItem.con_Is_Active has no value on an Add New Record insert.

My question is, were do I intercept this to prevent this error on Adding a new Record?

I've looked for but have been unable to find the InitInsertButtons click event if any such event exists..

I'm sure this is simple I just don't know where to put such a check.  I suppose what I'd like to do is set the  DataItem.con_Is_Active property some default value (like 'False') before the it gets to this point.

Brad
Top achievements
Rank 1
 answered on 12 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?