Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views
I have a radPanelbar, and ItemClick server side event attached to it. But this event is not firing when i click on the expand button of the item. What exactly i need to do in order to execute the code in the ItemClick event when the expand button is clicked.

Thanks in advance.
<telerik:RadPanelBar runat="server" ID="rpbFilters" ExpandMode="FullExpandedItem" Skin="Windows7">
               <Items>
                              <telerik:RadPanelItem Text="Item1" Expanded="False">
                                             <ContentTemplate>
                                                            <telerik:RadListBox runat="server" ID="radChkList1" ClientIDMode="Inherit" CheckBoxes="true" >
                                                            </telerik:RadListBox>
                                             </ContentTemplate>
                              </telerik:RadPanelItem>
                              <telerik:RadPanelItem Text="Item2" Expanded="False">
                                             <ContentTemplate>
                                                            <telerik:RadListBox runat="server" ID="radChkList2" ClientIDMode="Inherit" CheckBoxes="true" >
                                                            </telerik:RadListBox>
                                             </ContentTemplate>
                              </telerik:RadPanelItem>
               </Items>
</telerik:RadPanelBar>
 
 
 Private Sub rpbFilters_ItemClick(sender As Object, e As Telerik.Web.UI.RadPanelBarEventArgs) Handles rpbFilters.ItemClick
               'Load data
End Sub
Princy
Top achievements
Rank 2
 answered on 22 Oct 2012
1 answer
64 views
Hallo there

I have a grid with a grid table view inside. I automatically expand all rows. But i would like to hide the expand column. Can you provide a solution in css. thanks in advance
allen

Princy
Top achievements
Rank 2
 answered on 22 Oct 2012
1 answer
65 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
111 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
66 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
105 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
167 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
499 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
61 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
226 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?