Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
hi.
how r u.

can you help me?

i have a web form data entry. it has a RadGrid and some RadTexBoxes to insert and update out of RadGrid.
my problem:
 after update data by TextBoxes, when call DataBind method from RadGrid all of States in RadGrid Losts.
the sort, filter, ....

how can i resolve this problem?

(excuse me for my bad english skill ;)  )
Shinu
Top achievements
Rank 2
 answered on 22 Oct 2012
1 answer
130 views

<telerik:RadGrid ID="grdIn" runat="server" OnLoad="grdIn_OnLoad" OnNeedDataSource="grdIn_NeedDataSource"

                                    SkinID="CR" GridLines="None" AllowPaging="True"  AutoGenerateColumns="False" OnItemDataBound="grdIn_ItemDataBound"

                                    AllowMultiRowSelection="true" Width="925px">

                                    <MasterTableView PageSize="10"

                                        DataKeyNames="ID">

                                      

                                        <NoRecordsTemplate>

                                            <div style="text-align: left; width: 100%">

                                                <asp:Label ID="lblEmptyMsg" runat="server" meta:resourcekey="lblEmptyMsg2Resource1"></asp:Label></div>

                                        </NoRecordsTemplate>

                                    </MasterTableView>

                                    <PagerStyle AlwaysVisible="True" />

                                    <ClientSettings EnableRowHoverStyle="true">

                                        <Selecting AllowRowSelect="True" />

                                        <Scrolling AllowScroll="True"></Scrolling>

                                        <ClientEvents OnGridCreated="GridCreated" />

                                    </ClientSettings>

                                </telerik:RadGrid>



 protected void btne_Click(object sender, EventArgs e)
    {
          foreach (Telerik.Web.UI.GridItem objGrdItem in grdIn.Items)
            {    if (objGrdItem.Selected)
                {
                   int Id = (int)(objGrdItem.OwnerTableView.DataKeyValues[objGrdItem.ItemIndex]["ID"]);
                 
                 }
            }

}






Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Oct 2012
1 answer
96 views
I have a Radgrid in one of the columns of main Radgrid.

Display of rows is working fine.

I need to open all the rows of child radgrid when I click the edit on main row.

How do I do this?

Thanks
  
Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Oct 2012
0 answers
137 views
Hello

I am considering the following scenario: I have working asp.net web site with radscheduler (option with webservice binding). Everything is working fine but I would like to add such scheduler to winforms application. I have been trying to consume SchedulerWebService (this is a part of asp.net page) but I have found it is json service so it is not such easy as I thought - there are deserialization problems..
Do you have any advices? My webservice method is as follows
public List<AppointmentData> GetJSONScheduler(SchedulerInfo schedulerInfo)

I am succesfully receiving appointments but I can't deserialize List<AppointmentData> from json response.
I have been trying
but I am receiving e

DataContractJsonSerializer dJSON =
new DataContractJsonSerializer(typeof(List<AppointmentData>);
List<AppointmentData> sr = (List<AppointmentData>)dJSON.ReadObject(str);
//sbResponse is taken from the stream of webrequest response
JavaScriptSerializer jscriptDeserializer = new JavaScriptSerializer();
jscriptDeserializer.RecursionLimit = 100;
List<AppointmentData> srResult = jscriptDeserializer.Deserialize<List<AppointmentData>>(sbResponse.ToString());
xceptions about root element is missing or value __type cannot be null..
I would like to avoid string manipulation with the response (replacing elements with proper types)
Or do you have easier solution for such operations?
Solution with direct access to db is unacceptable - I am performing few operations with appointments before I am returning it to the client and I would like to have such method in one place
One web service, many clients (wpf, winforms, asp.net)..

Thanks in advance
Regards
host
Top achievements
Rank 1
 asked on 21 Oct 2012
2 answers
187 views
hello,
I am new to telerik
my radupload works great on localhost but since i have uploaded it to the test website
  •   it does not show any browse option
  • add button does not do anything

i have set default to 5 and max to 10

<telerik:RadUpload ID="RadUpload1" runat="server"  TargetFolder="~/images/cars/"
                maxfileinputscount="10"
                            maxfilesize="1000000" ControlObjectsVisibility="All"
                Skin="Web20" InitialFileInputsCount="5"  >
        </telerik:RadUpload>


Thanks
Wizhunt Inc.
Top achievements
Rank 1
 answered on 20 Oct 2012
13 answers
593 views
I tried to follow this article http://www.telerik.com/help/aspnet-ajax/ajax-disable-controls-during-ajax.html
But it only works with ASP.NET Button, not with RadButton.
How to make it work with RadButton?
Thanks

Lamk.
Iman
Top achievements
Rank 1
 answered on 20 Oct 2012
0 answers
94 views
Hi

in my module's ascx-File I have the following code (shortened):

<asp:Repeater ID="rptMain" runat="server">
    <ItemTemplate>
        <Telerik:RadToolTip ID="RadToolTip" runat="server" TargetControlID="btnPhone" IsClientID="false" HideEvent="ManualClose">
            <table width="100%" border="0" cellpadding="2" cellspacing="0">
                <tr valign="top">
                    <td><asp:ImageButton ID="btnPhoneStartP" runat="server" ImageUrl="~/DesktopModules/MaganSoft.PerKad.CandidateActive/Images/phone_green.png" CommandName="PhoneStart" CommandArgument='<%# Container.DataItem.PhoneNumberP %>' AlternateText="Made Call" ToolTip="Made Call" Visible='<%# IIF(Container.DataItem.PhoneNumberP <> "", True, False) %>' /></td>
                    <td><asp:ImageButton ID="btnPhoneStopP" runat="server" ImageUrl="~/DesktopModules/MaganSoft.PerKad.CandidateActive/Images/phone_red.png" CommandName="PhoneStop" CommandArgument='<%# Container.DataItem.PhoneNumberP %>' AlternateText="Missed Call" ToolTip="Missed Call" Visible='<%# IIF(Container.DataItem.PhoneNumberP <> "", True, False) %>' /></td>
                </tr>
            </table>
        </Telerik:RadToolTip>
    </ItemTemplate>
</asp:Repeater>

And in Code-Behind:

Protected Sub rptMain_ItemCommand(source As Object, e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles rptMain.ItemCommand
    If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
        If e.CommandName = "PhoneStart" Then
            Dim strPhoneNumber As String = e.CommandArgument
            Dim lblFirstName As Label = CType(e.Item.FindControl("lblFirstName"), Label)
            Dim lblLastName As Label = CType(e.Item.FindControl("lblLastName"), Label)
            Dim strGUID As String = System.Guid.NewGuid.ToString
            Dim strCompanyName As String = Null.NullString
            Dim strName As String = lblFirstName.Text & " " & lblLastName.Text
 
            m_MaganSoftHelperMethods.CreateXMLPhoneCalls(strGUID, strName, strCompanyName, strPhoneNumber, Server.MapPath(Path.Combine(PortalSettings.HomeDirectory, "madecalls.xml")), "madecalls.xml", "madecalls", "madecall")
        End If
 
        If e.CommandName = "PhoneStop" Then
            Dim strPhoneNumber As String = e.CommandArgument
            Dim lblFirstName As Label = CType(e.Item.FindControl("lblFirstName"), Label)
            Dim lblLastName As Label = CType(e.Item.FindControl("lblLastName"), Label)
            Dim strGUID As String = System.Guid.NewGuid.ToString
            Dim strCompanyName As String = Null.NullString
            Dim strName As String = lblFirstName.Text & " " & lblLastName.Text
 
            m_MaganSoftHelperMethods.CreateXMLPhoneCalls(strGUID, strName, strCompanyName, strPhoneNumber, Server.MapPath(Path.Combine(PortalSettings.HomeDirectory, "missedcalls.xml")), "missedcalls.xml", "missedcalls", "missedcall")
        End If
    End If
End Sub

Whereever I set a brakpoint inside the ItemCommand-Event the debugger never reaches it.

Can anyone give me a helping hint?

Thank you very much
Martin
Martin
Top achievements
Rank 1
 asked on 20 Oct 2012
3 answers
260 views
Good day!

Before, I was binding a scheduler through code behind. With the timezoneoffset set to zero, for example, an appointment that is saved in the database as 8:00 AM shows up correctly. When I decided to use web service binding, the appointment shows up at 12:00 AM. Why is this so?

Thanks,
Palani
Top achievements
Rank 1
 answered on 20 Oct 2012
2 answers
238 views
Hi,
Actually i am using rad upload control to upload the files, i am using target physical folder path because i need to keep all uploaded files out side the my website. I want to  keep all uploaded file outside the our existing website where i am uploading the files but when we are giving the physical path file is unable to write over there.  I am giving path like D:\uploaded but on that path file is unable to write. I am giving all permission like network services, Asp.net etc to that folder but still i am facing the problem, so please suggest me some solutions.
Waseem
Top achievements
Rank 1
 answered on 20 Oct 2012
4 answers
1.1K+ views
Hello there.
I am using RadUpload and It is working correctly now, but occuring this error when I clicking on UPLOAD button in rad image manager or rad document manager.
What should I do?
To make my issue clearly:

I am going to upload my file to Dir1/Dir2/uploadingimage.gif
I have dir1 directory.
I will create dir2 directory from my C# code behind.
I am selecting uploadingimage.gif and click upload button.
Then I am having this error.

Server Error in '/' Application.

Access to the path 'C:\inetpub\wwwroot\Test2\News\File\images\001\pu001021020\bgr.png' is denied.

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.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\Test2\News\File\images\DIR1\
DIR2
\bgr.png' is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\Test2\News\File\images\DIR1\DIR2\bgr.png' is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +10546931
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +2580
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +138
   System.IO.FileStream..ctor(String path, FileMode mode) +91
   System.Web.HttpPostedFile.SaveAs(String filename) +151
   Telerik.Web.UI.PostedFile.SaveAs(String fileName, Boolean overwrite) +54
   Telerik.Web.UI.Widgets.FileSystemContentProvider.StoreFile(UploadedFile file, String path, String name, String[] arguments) +120
   Telerik.Web.UI.RadFileExplorer.ProcessUploadedFiles() +959
   Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) +169
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Waseem
Top achievements
Rank 1
 answered on 20 Oct 2012
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?