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

I have a problem with the RadGrid and the create/update popup.

The radgrid is in a modal dialog (call with javascript showModalDialog).  

<telerik:RadGrid ID="grdExternalCosts" runat="server" AllowPaging="True" ShowFooter="true" AllowSorting="True" AutoGenerateColumns="False" ShowStatusBar="true" OnPreRender="grdExternalCosts_PreRender" OnNeedDataSource="grdExternalCosts_NeedDataSource" OnUpdateCommand="grdExternalCosts_UpdateCommand" OnInsertCommand="grdExternalCosts_InsertCommand" DeleteCommand="grdExternalCosts_DeleteCommand">
<MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="ExternalCostID" EditMode="PopUp">
   <EditFormSettings>
     <PopUpSettings Modal="false" ZIndex="500" />
   </EditFormSettings>
   <Columns>
   ...
  </Columns>
   <EditFormSettings UserControlName="ExternalCostsDetail.ascx" EditFormType="WebUserControl">
      <EditColumn UniqueName="EditCommandColumn1"></EditColumn>
   </EditFormSettings>
</MasterTableView>
</telerik:RadGrid>

The modal screen is showing nicely but when I click the add new record button, I get an error saying 'the session has expired. The window will be closed. Refresh the main page before continuing'.  And when I look at the hyperlink it is the same as the page that I have in the modal dialog, not the user control for inserting a new record. 

What can I do to fix this?

Kind regards

Suzy 
Konstantin Dikov
Telerik team
 answered on 14 Jan 2015
2 answers
131 views
Hi,

I'm facing very odd behavior with RadGrid and WebForms MVP. Long story short is that during paging ObjectDatasource calls for Select method twice. 

I compared it with standard ASP GridView and it works well, just a single call. Can please somebody tell me a secret - why is that happening?

I'm attaching an example website solution with examples of RadGrid (radgrid.aspx) and GridView (AspGridView.aspx), both userControls have the same codeBehind, difference is only in grid (radGrid or GridView). Just put a breakpoint on Select method, and you will notice that every time you change the page in Telerik's grid, datasource is being asked twice.

https://drive.google.com/file/d/0B3Da7JHcNzvcNGdrU2lna3BFYUE/view?usp=sharing

Thank you
Vasil
Telerik team
 answered on 14 Jan 2015
1 answer
715 views
Hi,

I'm trying to create a grid with a template column - see below.    Please see attached print screen.  There is something that looks weird behind the button.  I don't know how to fix this.

        <telerik:RadGrid ID="grd" runat="server" AutoGenerateColumns="False">
            <ClientSettings>
                <Scrolling AllowScroll="true" ScrollHeight="300px" UseStaticHeaders="true" />  
            </ClientSettings> 
            <MasterTableView AutoGenerateColumns="False" TableLayout="Fixed" DataKeyNames="OrderId">
                <Columns  >
                    <telerik:GridTemplateColumn UniqueName="TemplateColumn">
                        <ItemTemplate >
                            <telerik:RadButton ID="id" runat="server" Text='<%# Eval("Id") %>'></telerik:RadButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>

Thanks for your help.
            </MasterTableView>
        </telerik:RadGrid>






Maria Ilieva
Telerik team
 answered on 14 Jan 2015
6 answers
737 views
Hi,
What is the property or how I can show the calendar so that users can only select a specific day. Example: Only Saturday.

Thanks,
Vasil
Telerik team
 answered on 14 Jan 2015
1 answer
234 views
I have created a sample web site that consists of a Master Page with a RadTabStrip and three tabs that link to three content pages ==> PageOne.aspx, PageTwo.aspx, and PageThree.aspx. The Master Page displays the current date/time which changes as each new tab is clicked.

My question, is there a way to have the new pages load without having to reload the Master Page, using Ajax or something. In this simple example, the date / time would not update as each new tab is clicked.

If so, how would I do this.  How would I change this.

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Untitled Page</title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
   <form id="form1" runat="server">
   <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
   </telerik:RadScriptManager>
   <div>
      <asp:Label ID="lblDateTime" runat="server" Text="Label"></asp:Label>
   </div>
   <div>
      <telerik:RadTabStrip ID="RadTabStrip" runat="server">
         <Tabs>
            <telerik:RadTab Text="Page One" NavigateUrl="PageOne.aspx" Value="PageOne.aspx"></telerik:RadTab>
            <telerik:RadTab Text="Page Two" NavigateUrl="PageTwo.aspx" Value="PageTwo.aspx"></telerik:RadTab>
            <telerik:RadTab Text="Page Three" NavigateUrl="PageThree.aspx" Value="PageThree.aspx"></telerik:RadTab>
         </Tabs>
      </telerik:RadTabStrip>
      <br /><br />
      <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
         
      </asp:ContentPlaceHolder>
   </div>
   </form>
</body>
</html>
 
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="PageOne.aspx.vb" Inherits="PageOne" %>
 
<%@ MasterType VirtualPath="~/MasterPage.master" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <b>Page One</b>
</asp:Content>
 
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="PageTwo.aspx.vb" Inherits="PageOne" %>
 
<%@ MasterType VirtualPath="~/MasterPage.master" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <b>Page Two</b>
</asp:Content>
 
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="PageThree.aspx.vb" Inherits="PageOne" %>
 
<%@ MasterType VirtualPath="~/MasterPage.master" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <b>Page Three</b>
</asp:Content>
 
On Page Load
Public Sub SetCurrentTab()
      Dim tab As RadTab = RadTabStrip.FindTabByValue(System.IO.Path.GetFileName(Request.Url.ToString()))
 
      If tab IsNot Nothing Then
         tab.Selected = True
      End If
   End Sub
End Class

Boyan Dimitrov
Telerik team
 answered on 14 Jan 2015
1 answer
176 views
Greetings,

Has anybody uploaded a library of custom RadButton icons anywhere?  I would love to get ahold of some icons that extend the embedded icons for additional features like a calculator or a cash register or dollar sign.

Thank you!

Matt
Danail Vasilev
Telerik team
 answered on 14 Jan 2015
3 answers
124 views
I noticed that if you enlarge the width of the box and then release your mouse button, you cannot reduce the width of the box to less than what it was when you released the button previously.

Any suggestions would be great!

Thanks,
Bala
Danail Vasilev
Telerik team
 answered on 14 Jan 2015
1 answer
79 views
protected void Button1_Click(object sender, EventArgs e)
{
    int PartyRowId = 0;
    foreach (UploadedFile file in AsyncUpload1.UploadedFiles)
    {
        byte[] bytes = new byte[file.ContentLength];
        file.InputStream.Read(bytes, 0, Convert.ToInt32(file.ContentLength));
        string json3 = "{'PartyRowId':" + PartyRowId + ",'CommonCategoryRowId':" + PartyRowId + ",'CommnonCategoryAttributesRowId':" + PartyRowId + ",'PartyDoc':" + bytes + "}";
          
 
    }
}


Here i am getting json as

{'PartyRowId':0,'CommonCategoryRowId':0,'CommnonCategoryAttributesRowId':0,'PartyDoc':System.Byte[]}

Not retreving the byte info.....

could u pls help me
Boyan Dimitrov
Telerik team
 answered on 14 Jan 2015
1 answer
227 views
I have two custom controls (A and B) on same page, corresponding to two radgrids.

Both .ascx files of these controls include:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
</telerik:RadWindowManager>

<telerik:RadNotification ID="n1" runat="server" Text="" Position="Center"
  AutoCloseDelay="5000" Width="450" Title="" KeepOnMouseOver="true"
  EnableRoundedCorners="true" Animation="Resize" ContentIcon="warning"
  AnimationDuration="700" TitleIcon="none" Font-Size="12px" Font-Bold="True"
  ShowCloseButton ="true">
</telerik:RadNotification>


...and in both .vb files I am using the following code to flash a message:

n1.Title = "Error Adding"
n1.Text = "Must have valid or non-Zero received qty!"
n1.Show()

What would be the possible reasons for the messages to come out empty (the window opens with no message) in only one of the custom controls?

In other words...
In all cases, where the message is generated in custom control A, it comes out fine.
In all cases, where the message is generated in custom control B, it comes out EMPTY.


Thanks for your time...
Marin Bratanov
Telerik team
 answered on 14 Jan 2015
1 answer
111 views
Hi....
     Is there a way that we can get the resourceID when there is a resource grouping done in OnClientTimeSlotClick event.

Thanks in advance.
Venkat

Got it....

 

 

function OnClientTimeSlotClick(sender, eventArgs) {

 

var

 

 

slot = eventArgs.get_targetSlot();

 

 

 

 

var

 

 

currentRoom = slot.get_resource(); 
}
or

 

function

 

 

OnClientAppointmentInserting(sender, eventArgs) {

 

 

 

var slot = eventArgs.get_targetSlot();

 

 

 

var start = slot.get_startTime();

 

 

 

var end = slot.get_endTime();

 

 

 

var currentRoom = slot.get_resource();

 

eventArgs.set_cancel(

 

true);

 

}

Olivier
Top achievements
Rank 2
 answered on 14 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?