Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
153 views
Greetings,
I have a problem with assigning data to schedule at code behind.
in html, i have already created a resourcetype for the schedule.

<ResourceTypes>
         <telerik:ResourceType ForeignKeyField="UserID" KeyField="UserID" TextField="fullname" Name="myResource" />
</ResourceTypes>
at the code behind, I can find the resourcetype and attach a dataset to it. however, although the grouping is done, the appointments are not shown, so I have to concatenate 2 datasets and assign them to scheduler as datasource (and this creates problems). How can I bind data to scheduler without using scheduler.datasource = dataset and scheduler.databind() mehtods ? because i want to add the second dataset as another resouce and
here is what i am using at the moment

public void BindSchedule()
       {
           DataSet ds2 = myObj.GetScheduleData(ddlGroup.SelectedValue);
 
           DataSet ds1 = myObj.EngineerDailyAssignmentGet(ddlGroup.SelectedValue);
 
           ds2.Merge(ds1);
           ResourceType t = radZeitPlan.ResourceTypes.FindByName("myResource") as ResourceType;
           t.DataSource = ds2;
            
           radScheduler.DataSource = ds1;
           radZeitPlan.DataBind();
            
           radZeitPlan.GroupBy = "myResource";
       }
Plamen
Telerik team
 answered on 15 Aug 2013
4 answers
130 views
Hi,

Looking back through the forum there was talk back in 2011 of implementing a date header template so additional data could be added into the day header area. This has been on my wish list for ages, and I'm wondering did anything ever get implemented?

David Penny
Adam
Top achievements
Rank 1
 answered on 14 Aug 2013
1 answer
203 views
how to get class name without TypeOf because this method return "Objet" ?
Carlos Javier
Top achievements
Rank 1
 answered on 14 Aug 2013
1 answer
117 views
Hi,
I am having an installation of ASP.N ET AJAX on my Visual Studio 2010, but for some reason the menu toolbox of telerik shows only other products.
I have tried uninstalling and reinstalling but it doesn't fix the problem.

help will be appreciated.

Thank you.
Rumen
Telerik team
 answered on 14 Aug 2013
9 answers
532 views
I see where you set cookies to set the storage location:
RadPersistenceManager1.StorageProviderKey = CookieName;
  RadPersistenceManager1.StorageProvider = new CookieStorageProvider(CookieName);
But I just want to keep it for that user session.  I don't want to store it.  I tried enabling the view state, but that didn't seem to do anything

Right now it saves it for all users, so when someone applies a filter everyone gets it and people are wondering where the data is. On top of that, the radgrid doesn't indicate that there's a filter (I'm on the metro theme).
Angel Petrov
Telerik team
 answered on 14 Aug 2013
1 answer
270 views
1. Is the padding-left:22px for the RadTextBox necessary in class .RadInputRTL?
2. Is the change I mentioned above, was done from version: 2013.2.717.40? Are there any new css changes? 

*The css change I mentioned above affected all our forms layout.

Thanks.

Venelin
Telerik team
 answered on 14 Aug 2013
2 answers
138 views
I need to display a confirmation of some sort, preferably just a simple Label that will say complete or failed after a user inserts or updates a record in my RadGrid. This seems like it should be so simple but it does not appear that I can reach my label from within the InsertCommand event. So how do I detect that the insert or update has completed then display the ASP label with the confirmation? 
John
Top achievements
Rank 1
 answered on 14 Aug 2013
5 answers
795 views
I am evaluating Telerik component for a project and I am running into some issue that I hope someone could assist me with.

I have a button inside a nestedviewtemplate which is embedded inside a grid control. I have populated the grid with my data using the OnNeedDataSource property, I was also able to get detailed records on the ListView, however, I needed to perform an update to some tables when a button inside the nestedviewtemplate is clicked.

I could not find the button inside the click event. Also, I do not know how to wire the click event to my button since it cannot be referenced. I have my codes attached.

I will appreciate any assistance while I continue to search the forum for possible prior solution to this type of question

ASPX Codes:
===========
                <telerik:RadGrid ID="grdExtrUntReq" <br>                runat="server" <br>                AllowPaging="True" <br>                CellSpacing="0" <br>                CssClass="RadGridSearch"<br>                GridLines="None" <br>                OnNeedDataSource="grdExtrUntReq_NeedDataSource" <br>                PageSize="10"> <br>                    <MasterTableView AutoGenerateColumns="False"><br>                        <NoRecordsTemplate><br>                            No records<br>                        </NoRecordsTemplate><br>                        <RowIndicatorColumn Visible="True"><br>                            <HeaderStyle Width="20px"></HeaderStyle><br>                        </RowIndicatorColumn><br>                        <ExpandCollapseColumn Visible="True"><br>                            <HeaderStyle Width="20px"></HeaderStyle><br>                        </ExpandCollapseColumn><br>                        <Columns><br>                            <telerik:GridTemplateColumn DataField="personid" HeaderText="ID" UniqueName="TemplateColumn"><br>                                <ItemTemplate><br>                                    <asp:Label ID="lblID" runat="server" Text='<%# Eval("personid") %>'></asp:Label><br>                                    <asp:HiddenField ID="hfID" runat="server" Value='<%# Eval("personid") %>' /><br>                                </ItemTemplate><br>                            </telerik:GridTemplateColumn><br>                            <telerik:GridTemplateColumn DataField="fullname" HeaderText="Full Name" UniqueName="TemplateColumn1"><br>                                <ItemTemplate><br>                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("fullname").ToString() %>'></asp:Label><br>                                </ItemTemplate><br>                            </telerik:GridTemplateColumn><br>                            <telerik:GridTemplateColumn DataField="ayear" HeaderText="Year" UniqueName="TemplateColumn2"><br>                                <ItemTemplate><br>                                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("ayear").ToString() %>'></asp:Label><br>                                </ItemTemplate><br>                            </telerik:GridTemplateColumn><br>                            <telerik:GridTemplateColumn DataField="levelcode" HeaderText="Level" UniqueName="TemplateColumn3"><br>                                <ItemTemplate><br>                                    <asp:Label ID="Label3" runat="server" Text='<%# Eval("levelcode").ToString() %>'></asp:Label><br>                                </ItemTemplate><br>                            </telerik:GridTemplateColumn><br>                            <telerik:GridTemplateColumn DataField="semcode" HeaderText="Seminoles" UniqueName="TemplateColumn4"><br>                                <ItemTemplate><br>                                    <asp:Label ID="Label4" runat="server" Text='<%# Eval("semcode").ToString() %>'></asp:Label><br>                                </ItemTemplate><br>                            </telerik:GridTemplateColumn><br><br>                        </Columns><br>                        <br>                        <br>                        <NestedViewTemplate><br>                        <telerik:RadListView <br>                        ID="lvExtrUntReqApprovalList" <br>                        runat="server" <br>                        OnNeedDataSource="lvExtrUntReqApprovalList_NeedDataSource"<br>                        ItemPlaceholderID="phExtraUntReq"><br>                            <LayoutTemplate><br>                                <fieldset><br>                                    <legend style="padding: 5px;"><b>Request Details</b><br>                                    </legend><br>                                        <asp:PlaceHolder ID="phExtraUntReq" runat="server"></asp:PlaceHolder><br>                                </fieldset><br>                            </LayoutTemplate><br>                            <ItemTemplate><br>                            <table><br>                            <tr><br>                            <td style="font-style:italic;">Full Name:</td><br>                            <td style="font-weight:bold"><br>                            <asp:Label ID="Label8" runat="server" Text='<%# Eval("fullname") %>'><br>                            </asp:Label><br>                            </td><br>                            </tr><br>                            <tr><br>                            <td style="font-style:italic;">Overall Grade:</td><br>                            <td style="font-weight:bold"><br>                            <asp:Label ID="Label9" runat="server" Text='<%# Eval("grade") %>'><br>                            </asp:Label><br>                            </td><br>                            </tr><br>                            <tr><br>                            <td style="font-style:italic;">Requested Unit(s):</td><br>                            <td style="font-weight:bold"><br>                            <asp:Label ID="Label10" runat="server" Text='<%# Eval("unitrequested") %>'><br>                            </asp:Label><br>                            </td><br>                            </tr><br>                            <tr><br>                            <td style="font-style:italic;">Request Date & Time:</td><br>                            <td style="font-weight:bold"><br>                            <asp:Label ID="Label12" runat="server" Text='<%# Eval("daterequested") %>'><br>                            </asp:Label><br>                            </td><br>                            </tr><br>                            <tr><br>                            <td>Approve/Reject Request:</td><br>                            <td><br>                                <asp:CheckBox ID="chkAprv" runat="server" Text="Approve" /> <br>                                <asp:CheckBox ID="chkRej" runat="server" Text="Reject" /><br>                                <cc1:MutuallyExclusiveCheckBoxExtender ID="chkAprvE" runat="server" TargetControlID="chkAprv" Key="AprvRej" /> <br>                                <cc1:MutuallyExclusiveCheckBoxExtender ID="chkRejE" runat="server" TargetControlID="chkRej" Key="AprvRej" /><br>                            </td><br>                            </tr><br>                            <tr><br>                            <td style="font-style:italic;">Unit(s) Approved:</td><br>                            <td style="font-weight:bold"><br>                                <asp:DropDownList ID="ddlUntAprv" runat="server"><br>                                <asp:ListItem Text="Select..." Value=""></asp:ListItem><br>                                <asp:ListItem Text="1" Value="1"></asp:ListItem><br>                                <asp:ListItem Text="2" Value="2"></asp:ListItem><br>                                <asp:ListItem Text="3" Value="3"></asp:ListItem><br>                                <asp:ListItem Text="4" Value="4"></asp:ListItem><br>                                <asp:ListItem Text="5" Value="5"></asp:ListItem><br>                                <asp:ListItem Text="6" Value="6"></asp:ListItem><br>                                <asp:ListItem Text="7" Value="6"></asp:ListItem><br>                                <asp:ListItem Text="8" Value="6"></asp:ListItem><br>                                <asp:ListItem Text="9" Value="6"></asp:ListItem><br>                                <asp:ListItem Text="10" Value="6"></asp:ListItem><br>                                <asp:ListItem Text="11" Value="6"></asp:ListItem><br>                                <asp:ListItem Text="12" Value="6"></asp:ListItem><br>                                </asp:DropDownList><br>                            </td><br>                            </tr><br>                            <tr><br>                            <td><br>                               <asp:Button ID="btnExUntReq" runat="server" Text="Submit" onclick="btnExUntReq_Click" /></td><br>                            </tr><br>                            </table><br>                            </ItemTemplate><br>                        </telerik:RadListView><br>                    </NestedViewTemplate><br>                        <br>                        <br>                        <EditFormSettings><br>                            <EditColumn FilterControlAltText="Filter EditCommandColumn column"><br>                            </EditColumn><br>                        </EditFormSettings><br>                    </MasterTableView><br>                </telerik:RadGrid>

CS Codes
========
   
protected void grdExtrUntReq_NeedDataSource(object source, GridNeedDataSourceEventArgs e)<br>    {<br>        //Get year<br>        LookUpRecordsInformation l1 = LookUps.GetApplicationSettingValues("CURRENT_YEAR");<br>        string sYear = l1.sSettingValue;<br><br>        //Get seminole<br>        LookUpRecordsInformation l2 = LookUps.GetApplicationSettingValues("CURRENT_SEMINOLE");<br>        string sSeminole = l2.sSettingValue;<br><br>        string sApproverID = Page.User.Identity.Name.ToString();<br><br>        grdExtrUntReq.DataSource = GetRecords.GetUnitRequestListForApproval(sYear, sSeminole, sApproverID);<br>    }<br><br>    protected void lvExtrUntReqApprovalList_NeedDataSource(object sender, RadListViewNeedDataSourceEventArgs e)<br>    {<br><br>        //Get year<br>        LookUpRecordsInformation l1 = LookUps.GetApplicationSettingValues("CURRENT_YEAR");<br>        string sYear = l1.sSettingValue;<br><br>        //Get seminole<br>        LookUpRecordsInformation l2 = LookUps.GetApplicationSettingValues("CURRENT_SEMINOLE");<br>        string sSeminole = l2.sSettingValue;<br><br>        GridDataItem parentItem = ((sender as RadListView).NamingContainer as GridNestedViewItem).ParentItem as GridDataItem;<br>        string sID = (parentItem.FindControl("hfID") as HiddenField).Value;<br>        (sender as RadListView).DataSource = GetRecords.GetUnitRequestList(sID, sYear, sSeminole);<br>    }<br><br><br>        protected void btnExUntReq_Click(object sender, EventArgs e)<br>    {<br>        //Got completely lost here....on how to wire button btnExUntReq to fire the codes to perform my updates<br>    <br>    bool success = UpdateRecords.UpdateUntRequestList(sID, sYear, sSeminole);<br>    }
Kostadin
Telerik team
 answered on 14 Aug 2013
1 answer
113 views
Hello,
i am adding a resource in radschedular in which the property of resource AllowMultiplevalues is true. Now i want to ask that is there any way to find the particular values which are selected by the user and on which event we can do this??

  
<telerik:RadScheduler ID="RadScheduler1" runat="server"  DataDescriptionField="abc_description"
                DataEndField="schedule_todate" DataKeyField="abc_id" DataRecurrenceField="RecData"
                DataRecurrenceParentKeyField="RecParent" DataSourceID="SqlDS_abc" DataStartField="schedule_fromdate"
                DataSubjectField="abc_title" EnableDescriptionField="True" SelectedView="MonthView"      >
                <ResourceTypes>
                 <telerik:ResourceType DataSourceID="SqlDS_DBGroup" ForeignKeyField="dbGrp_id"
                        KeyField="dbGrp_id
" Name="DB_Group" TextField="dbgrp_name" AllowMultipleValues="true" />             
                </ResourceTypes>
 </telerik:RadScheduler>
 <asp:SqlDataSource ID="SqlDS_DBGroup" runat="server" ConnectionString="<%$ ConnectionStrings:DB_LiveConnectionString %>"
                DeleteCommand="DELETE FROM ref.abc WHERE (abc_id= @abc_id)" InsertCommand="INSERT INTO ref.abc(dbgrp_name
, schedule_fromdate, schedule_todate, abc_description, RecParent, RecData, abc_type_id,user_fkid, grp_fkid) VALUES (@dbgrp_name
, @schedule_fromdate, @schedule_todate, @abc_description
, @RecParent, @RecData, ISNULL(@abc_type_id
,-1),@user_fkid,ISNULL(@grp_fkid
,-1))"
                SelectCommand="DECLARE  @return_value int EXEC  @return_value = [dbo].[selectActivity] @user_fkid"
 >
Plamen
Telerik team
 answered on 14 Aug 2013
5 answers
325 views
Hi,

i use FileExplorer, and i can't delete file.

Uploading file is ok
I test permissions with the function FullPermissionsTest, everything is ok.

    string physicalPathToTestFolder = System.IO.Path.Combine(testPhysicalPath, "");
                System.IO.DirectoryInfo testDir = System.IO.Directory.CreateDirectory(physicalPathToTestFolder);// Create folder
                testDir.GetDirectories();// List folders
                string testFilePath = System.IO.Path.Combine(testDir.FullName, "plpA034-C020540.jpg");// test file paths
                System.IO.File.Create(testFilePath).Close();// Create a file
                testDir.GetFiles("*.*");// List files
                System.IO.File.OpenRead(testFilePath).Close();// Open a file
  System.IO.File.Delete(testFilePath);// delete the test file


Notice that all paths are set at run time but initialpath is not set (because if i put a path (the same as viewpath eg) i ve got an error.
At design time : enableviewstate = true 

The message is : the selected file could not be deleted because the application did not have enough permissions...
im on Q2 2013 sp1

im stuck since 3 days... :/

please help 

ty


Vessy
Telerik team
 answered on 14 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?