Telerik Forums
UI for ASP.NET AJAX Forum
15 answers
591 views
I'm sure this is a simple one.

We are just looking at the RadScheduler's potential to give us a nice and quick Calendar for our application.

Our application is well under way. We have our own Activity table and supporting pages to display add and edit activities.

In a nutshell we don't need the telerik Advanced Edit form. We need it so that clicking an activity shows our add/edit form.

Is this possible? Anyone done this type of thing before? Any tips of potential problems?

Brad
ProgrammerNet
Top achievements
Rank 1
 answered on 22 Apr 2016
0 answers
172 views

Hi

  I am using rad grid view with template column,inside template column i add asp image control ,by default in design time it bind the one image,when user click the row,i need to change image url ,so in client side itself it change image.

This is rad grid design code
        <telerik:RadGrid ID="ResultGrid" AllowPaging="true" PageSize="75" AllowSorting="true"
                                AllowFilteringByColumn="true" AllowMultiRowSelection="true" AutoGenerateColumns="false"
                                ClientSettings-Resizing-AllowColumnResize="true" ClientSettings-ClientEvents-OnRowContextMenu="ResultGrid_OnRowContextMenu"
                                runat="server">
                                <PagerStyle Visible="false" />
                                <MasterTableView AllowAutomaticUpdates="true" ClientDataKeyNames="Database">
                                    <Columns>
                                                                              
                                        <telerik:GridBoundColumn ReadOnly="true" ItemStyle-CssClass="GridCellSpace" HeaderText="Database"
                                            UniqueName="Database" DataField="Database">
                                        </telerik:GridBoundColumn>
                                       

                                        <telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="3%" ReadOnly="true"
                                            HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" UniqueName="Preview"
                                            HeaderText="Preview">
                                            
                                            <ItemTemplate>
                                                <asp:Image ID="Image2" ImageUrl= "~/image/AdminImages/btn_search.png" runat="server" />
                                         
                                            </ItemTemplate>
                                            
                                        </telerik:GridTemplateColumn>
                                    </Columns>
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </MasterTableView>
                           
                            </telerik:RadGrid>

 

 

Here Image2 point to "~/image/AdminImages/btn_search.png",so once user click the row i need to change clicked row image url to "~/image/AdminImages/btn_got.png"  in client side itslef

Regards 

   Aravind

Aravind
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 22 Apr 2016
1 answer
620 views

Hello,

I have my aspx page with radgrid, but I do NOT see the property like OnNeedDataSource="RadGrid1_NeedDataSource"

But I am still  be able to get to the event in code behind file. Is it possible with radgrid and am not sure.

What would be the possible cases here?

Viktor Tachev
Telerik team
 answered on 22 Apr 2016
1 answer
67 views

It would be great if you could change the Header Text and save as part of the layout.

I have an application that is used by different customers. The base tables are the same but the customers want to name the columns differently.

I really want this something they can change and save as a user or system setting.

I am trying to come up with a good way to have a standard page that allows this functionality that I can use throughout my site.

Question 1. Can this be done in the layout saving/presistance?

Question 2. Is there a good way to provide a means to click on a header and allow modification of the header text.

Tried putting something in the context menu without success?

Any help would be much appreciated.

Thanks!!!

Konstantin Dikov
Telerik team
 answered on 22 Apr 2016
8 answers
287 views
Hello,

I am using Telerik RadTreeview with checkboxes. I am saving the checked node ids to database. The scenario is when I select a particular dropdown I am making the checkboxes on the treeview selected based on the ids I get from the database. The issue revolves when I deselect a node and then on saving the Rad treeview it is still showing the checkbox as selected on the server side.

Please advise!

Thank you,
Asok
Ivan Danchev
Telerik team
 answered on 22 Apr 2016
2 answers
75 views

Hi,

In the below code am using dropdowns and listbox controls. I need to bind the value from DB for these controls in code behind.

<telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" runat="server" ShowStatusBar="true"
AutoGenerateColumns="False" PageSize="3" AllowSorting="True" AllowMultiRowSelection="False"
AllowPaging="false" AllowAutomaticDeletes="false" AllowAutomaticInserts="false"
AllowAutomaticUpdates="false"
OnDetailTableDataBind="RadGrid1_DetailTableDataBind" OnNeedDataSource="RadGrid1_NeedDataSource" >
<MasterTableView DataKeyNames="EmpID" AllowMultiColumnSorting="True"
Width="100%" CommandItemDisplay="Top" Name="Students">
<DetailTables>
<telerik:GridTableView DataKeyNames="Semester,Grade" Width="100%" runat="server" CommandItemDisplay="Top" Name="Details">
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="EmpID" MasterKeyField="EmpID"></telerik:GridRelationFields>
</ParentTableRelation>
<Columns>
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn1">
<HeaderStyle Width="20px"></HeaderStyle>
</telerik:GridEditCommandColumn>
<telerik:GridBoundColumn HeaderText="semester" DataField="Semester"></telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Grade" DataField="Grade"></telerik:GridBoundColumn>
<telerik:GridButtonColumn UniqueName="DeleteColumn1" Text="Delete" CommandName="Delete"> </telerik:GridButtonColumn>
</Columns>
<EditFormSettings EditFormType="Template" >
<FormTemplate>
<table cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" style="border-collapse: collapse;">
<tr>
<td style="padding-left: 5px; width: 50%;" align="left">
<asp:Label ID="Label3" runat="server" CssClass="DisplayLabel" Text="Semester"></asp:Label> <br />
<asp:DropDownList ID="ddlSemester" runat="server">
<asp:ListItem Selected="True"> -- Select -- </asp:ListItem>                                                    
</asp:DropDownList>
</td>
<td style="padding-left: 5px; width: 50%;" align="left">
<asp:Label ID="Label1" runat="server" CssClass="DisplayLabel" Text="Grade"></asp:Label> <br />
<asp:DropDownList ID="ddlGrade" runat="server">
<asp:ListItem Selected="True"> -- Select -- </asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td align="right" colspan="2">
<asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' CssClass="button"></asp:Button>&nbsp;
<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" CssClass="button"></asp:Button>
</td>
</tr>
</table>
</FormTemplate>
</EditFormSettings>
<NoRecordsTemplate>
<div>
There are no records to display
</div>
</NoRecordsTemplate>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn1">
<HeaderStyle Width="20px"></HeaderStyle>
</telerik:GridEditCommandColumn>
<telerik:GridBoundColumn HeaderText="Student ID" DataField="EmpID"></telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Student Name" DataField="EmpName"></telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Degree" DataField="Degree"></telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Department" DataField="Dept"></telerik:GridBoundColumn>
<telerik:GridButtonColumn UniqueName="DeleteColumn2" Text="Delete" CommandName="Delete"> </telerik:GridButtonColumn>
</Columns>
<NoRecordsTemplate>
<div>
There are no records to display
</div>
</NoRecordsTemplate>
<EditFormSettings EditFormType="Template" >
<FormTemplate>
<table cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" style="border-collapse: collapse;">
<tr>
<td style="padding-left: 5px; width: 30%;" align="left">
<asp:Label ID="Label3" runat="server" CssClass="DisplayLabel" Text="Student ID"></asp:Label>
<br />
<asp:TextBox ID="TextBox1" runat="server" Width="90%" Text='<%# Bind("EmpID") %>'></asp:TextBox>
</td>
<td style="padding-left: 5px; width: 30%;" align="left">
<asp:Label ID="Label6" runat="server" CssClass="DisplayLabel" Text="Student Name"></asp:Label>
<br />
<asp:TextBox ID="TextBox2" runat="server" Width="90%" Text='<%# Bind("EmpName") %>'></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td style="padding-left: 5px; width: 30%;" align="left">
<asp:Label ID="Label7" runat="server" CssClass="DisplayLabel" Text="Degree"></asp:Label>
<br />
<asp:ListBox ID="ListBox1" runat="server" Width="50%" AppendDataBoundItems="true" SelectionMode="Multiple">
<asp:ListItem Selected="True"> -- Select -- </asp:ListItem>
</asp:ListBox>
</td>
<td style="padding-left: 5px; width: 30%;" align="left">
<asp:Label ID="Label8" runat="server" CssClass="DisplayLabel" Text="Department"></asp:Label>
<br />
<asp:ListBox ID="ListBox2" runat="server" Width="50%" AppendDataBoundItems="true" SelectionMode="Multiple">
<asp:ListItem Selected="True"> -- Select -- </asp:ListItem>
</asp:ListBox>
</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td align="right" colspan="2">
<asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' CssClass="button"></asp:Button>&nbsp;
<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" CssClass="button"></asp:Button>
</td>
</tr>
</table>
</FormTemplate>
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>

 

In code behind

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{

if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
{
GridEditableItem item = e.Item as GridEditableItem;

if (e.Item.OwnerTableView.Name == "Students")
{
GridEditFormItem editFormItem = (GridEditFormItem)e.Item;
ListBox listBox1= editFormItem.FindControl("ListBox1") as ListBox;

}

}

}

Am getting null value when find the listbox.

Kindly help me to sort out this issue.

Regards,

Ganeshkumar

 

 

 

 

Konstantin Dikov
Telerik team
 answered on 22 Apr 2016
3 answers
125 views

We are using Rad Editor, to attach the images (ImageManager/Document Manager) is not loading any images in the image list (IE Version 11).

Allowed file types are :

Editor.DocumentManager.SearchPatterns = "*.jpg,*.gif,*.png,*.xlsx"

<radE:RadEditor ID="txtSummary" runat="server" Width="100%">
 <Tools>
  <radE:EditorToolGroup Tag="FileManagers">
  <radE:EditorTool Name="ImageManager"></radE:EditorTool>
  <radE:EditorTool Name="FlashManager"></radE:EditorTool>
  <radE:EditorTool Name="SilverlightManager"></radE:EditorTool>
  <radE:EditorTool Name="MediaManager"></radE:EditorTool>
  <radE:EditorTool Name="DocumentManager"></radE:EditorTool>
  <radE:EditorTool Name="TemplateManager"></radE:EditorTool>
  </radE:EditorToolGroup>
 
  <radE:EditorToolGroup>
   <radE:EditorTool Name="Bold"></radE:EditorTool>
   <radE:EditorTool Name="Italic"></radE:EditorTool>
   <radE:EditorTool Name="Underline"></radE:EditorTool>
                                                <radE:EditorSeparator></radE:EditorSeparator>
    <radE:EditorTool Name="ForeColor"></radE:EditorTool>
    <radE:EditorTool Name="BackColor"></radE:EditorTool>
                                                <radE:EditorSeparator></radE:EditorSeparator>
   <radE:EditorTool Name="FontName"></radE:EditorTool>
   <radE:EditorTool Name="RealFontSize"></radE:EditorTool>
</radE:EditorToolGroup>
</Tools>
<ImageManager ViewPaths="~/~/ProcedureFiles"
 UploadPaths="~/~/ProcedureFiles"
 DeletePaths="~/~/ProcedureFiles"
 EnableAsyncUpload="true" />
 
<DocumentManager ViewPaths="~/ProcedureFiles/"
  UploadPaths="~/ProcedureFiles/"
  DeletePaths="~/ProcedureFiles/"
  EnableAsyncUpload="true" />
 
</radE:RadEditor>

Its throwing the following errors.

Unhandled exception at line 3803, column 12 in http://localhost/Library/ScriptResource.axd?d=-OwWv7kMazlnT84or3DaABf0Rx3lQ3jmA23fkYROVeBatFujmuauLIOffg5E69PMauAcYj9hBzbh8kAq-T8iFUCOAxNRVGeQUpLXW6_l01e-dFoiBsjO8w4bz4J-tvV9P7uGFxdmN_8RMMkQtTyLBrgcIC9PteUcXEfE6EKLkfB8xU_Aa_DzLhvik6qe1rYN0&t=ffffffffcc58dd65
0x800a139e - JavaScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.

Unhandled exception at line 267, column 1 in http://localhost/Library/ScriptResource.axd?d=LQ5Whl16UJM7jxyUHzS1jKxpZYzOZUx9VwHSufySjIRoyPSM-aLuM1VswJv4TvItpsxCHzNhr49Uktpj_AUkINu9wBkENNExNSVMWC8tkgzGcN-yIiEBIkl4fR0XtDib-kZvZ39n4s_FzcI_oOYfaSs-LxNm3Fgvy1X3Csu-GCs1&t=fffffffffaf2a061
0x800a138f - JavaScript runtime error: Unable to get property 'PageRequestManager' of undefined or null reference

 

Can anyone please help to resolve it !!!

Ianko
Telerik team
 answered on 22 Apr 2016
2 answers
401 views

I have a RadGrid on an ASP.Net page with VB.net as the code-behind.

The columns are not auto-generated.  Some columns are hidden when the RadGrid is first loaded by setting the Display property to false.  This is the Summary View.  I have a RadioButtonList to allow the user to choose between Summary View and Detail View.  When the user selects Detail View, the columns that were hidden have their Display property set to True and then can see the hidden columns and their data.  This is done in the PreRender event procedure for the RadGrid.

I need to add a new column that has a link, image button, push button, or something that when clicked on will open a new window using radopen in a javascript function with a different ASP.Net page that has some of values from the row that was clicked on.

Also I am using the RadTabStrip so the user can see the windows that were opened.

I have looked at several threads in this forum regarding people trying to do the same thing or something similar and have tried the sample code that someone from Telerik provided or sample code other people posted.  Nothing worked.  I have tried a GridButtonColumn and a GridTemplateColumn.  

For now, I have set up a simple Javascript function that calls the alert function for testing.  The javascript function was put in a separate javascript file called scripts.js which is loaded by the ASP.Net page with RadGrid by using the following line of code: <script src="/Scripts/scripts.js" type="text/javascript"></script> .

The closest I was able to get something to work just showed the alert window pop up but was not able to access the data from the row that was clicked on.

One of the things I have tried caused an error to occur when selecting Detail View.

Please help.  Thanks!

Sincerely,

Keith Jackson

Keith
Top achievements
Rank 1
 answered on 21 Apr 2016
1 answer
151 views

Hi,

We are upgrading our application framework from 3.5 to 4.5? Facing following javascript errors in webresource.axd in some pages
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled

Is telerik 2008 version supports any .Net framwork higher than 2.0? if yes, any recomendations?

Please help.

Venu.

Marin Bratanov
Telerik team
 answered on 21 Apr 2016
1 answer
122 views

Dear users,

for a winform application i use a database like in the attached picture suggest-db.jpg with success, inspired and modified for my app starting from http://www.telerik.com/blogs/data-binding-with-radscheduler-for-winforms.

Here in a 2nd table AppointmentsResources the AppointmentID and the ResourceID is stored.

Is it possible to use the same db structure for ASP.NET AJAX scheduler because there a different datasources is used for the ResourceTypes Collection.

For me it seems not, because i can't update my AppointmentsResources table, just the dataset for the scheduler itself.

Any suggestion how to bring my resource value into AppointmentsResources.

Or must i have a seperate field for every resourcetype im my Appointment Table.

Kind regards

Martin

 

Nencho
Telerik team
 answered on 21 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?