Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
167 views
Hello,

When I create new RadWindow on page (by using JS radopen function) It creates horizontal and vertical scrollbar on host form element. I digged this and it is caused by bigger than orginal restrictionZoneID form. For example when "form" element has 1900x1040px the "TelerikModalOverlay" has 1920x1044px. (see attached file)

Is there any method to avoid this?

My code:

<asp:Content ID="Main" runat="server" contentplaceholderid="PlaceHolderMain">
         
         
        <telerik:RadFormDecorator ID="RadFormDecorator" Skin="Office2007" runat="server" />
        <telerik:RadWindowManager ID="RadWindowManager" ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true"
                                  EnableShadow="true" Skin="Office2007" runat="server" >
            <Windows>
                 
                <telerik:RadWindow ID="RZPositionPickerRadWindow" Title="Wybierz rachunek zamkniÄ™ty" NavigateUrl="ReconnetRZPositionsPickerDialog.aspx" Modal="true"
                                   Width="1000" Height="550" Skin="Office2007" Behaviors="Move, Close, Resize" EnableShadow="false"
                                   OnClientClose="RZPositionPickerRadWindow_OnClose" EnableViewState="false" RestrictionZoneID="aspnetForm" runat="server">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
</asp:Content>
Svetlina Anati
Telerik team
 answered on 13 Jul 2012
4 answers
155 views
Dear support team,

i cannot upload a file to my server.
I use the example from "http://demos.telerik.com/aspnet-ajax/upload/examples/async/monitorprogress/defaultvb.aspx?product=asyncupload".
In the "TargetFolder" property i use a Virtual Directory from my IIS "TestDir". e.x. TargetFolder="TestDir"
The file is NOT uploaded and i do not receive any error message.
Can you please help me to save my file in the server?

I have latest version.

Thank you in advance for you time.
Best regards,
George.

<script type="text/javascript">
        function fileUploaded(sender, args) {
            var name = args.get_fileName();
            var $ = $telerik.$;
 
            $(".info-panel").
                append($("<div>" + name + "</div>")).show();
        }
</script>
 
<div class="upload-panel">
                    <%-- For the purpose of this demo the files are discarded.
             In order to store the uploaded files permanently set the TargetFolder property to a valid location. --%>
                    <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" OnClientFileUploaded="fileUploaded"
                        MultipleFileSelection="Automatic" TargetFolder="~/ImportPPC">
                    </telerik:RadAsyncUpload>
                    <telerik:RadProgressArea runat="server" ID="RadProgressArea1">
                    </telerik:RadProgressArea>
                </div>
                <div class="info-panel">
                    Uploaded files in the target folder:
                    <br />
                </div>

 
Peter Filipov
Telerik team
 answered on 13 Jul 2012
1 answer
52 views
Hi,

I have a grid and in that i have by default sorting by date desc and default group by by date and i is by default expended. The problem is that the sorting order is desc of date but the date is only taking the date and the month part in the not measuring by the sorting.
 
Please see the attachment.

I have used following code for sorting and grouping

 <SortExpressions >
                            <telerik:GridSortExpression FieldName="UpdatedDate" SortOrder="Descending"/>
                        </SortExpressions>
  <GroupByExpressions>
                            <telerik:GridGroupByExpression>
                                <GroupByFields>
                                    <telerik:GridGroupByField FieldName="UpdatedDate" SortOrder="Descending"  FormatString="{0:yy/mm/dd}" />
                                </GroupByFields>
                                <SelectFields>
                                    <telerik:GridGroupByField FieldName="UpdatedDate" />
                                </SelectFields>
                            </telerik:GridGroupByExpression>
                        </GroupByExpressions>
                        <GroupHeaderTemplate>
                            <asp:Label Text='<%#String.Format("{0:MM/dd/yy}", Eval("UpdatedDate"))%>' runat="server"
                                ID="lblDate" Style="font-weight: bold; color: Black;"></asp:Label>
                        </GroupHeaderTemplate>
Andrey
Telerik team
 answered on 13 Jul 2012
1 answer
217 views
Have an aggravating problem here and any help would be great.  Basically one of our clients beefed up their security and implemented OWASP.  Now, some of our existing site functionality is returning a security violation.  I narrowed down one of the major issues to the RadTab.  Once a page containing a RadTabStrip strip posts back, the OWASP returns a security violation.  Unfortunately, we don't have access to the logs and the client has given us a few snippets but they seem to be SQL Injection related and also pattern matching on the view state.

I then created a blank page with one RadTabStrip with 4 RadTab/RadPageViews, each containing a letter of the alphabet and one button that would post back.  Upon clicking the button, the security violation threw.  So I am about 99.99% positive it is returning a false-positive with something the RadTab is posting back.  I then modified one of our existing pages to implement JQuery tabs instead of the RadTabs.  This worked successfully, but the problem is this would be a somewhat lengthy overhaul and was hoping someone out there might have an idea for me.  Now please note that the client refuses to make any exceptions in the OWASP security.  Frustrating, but this is what I have to deal with.


Genady Sergeev
Telerik team
 answered on 13 Jul 2012
1 answer
105 views
Hi,

I am using rad bar chart with the scrolling option. It works fine. But the scroll appear inside the plot area, so I cannot able to view least value in the chart. For example in the YAxis I have value like 0, 1000, 2000, 3000, 4000 etc... In XAxis I have one value with 100, the scroll overlap on the plot area and it shows only the half of the bar height. How do I set the scroll out side the plot area, or any other way to do that. (And I need scroll mode only in 'XOnly')Thanks in advance.
Evgenia
Telerik team
 answered on 13 Jul 2012
1 answer
123 views
Hi,

Is it possible to set a background image for an HtmlChart? Or has that functionality not been built in yet?

Thanks
Princy
Top achievements
Rank 2
 answered on 13 Jul 2012
3 answers
118 views
Hello everyone,

My head is going to blow up :D
I am generating a RadGrid in code-behind. First, i was using a default skin to be focused on functions, and not appearance.
I reached what i wanted to have on my grid, and now, i am trying to apply custom css class.

So, i removed the default skin from the grid by setting this :
EnableEmbeddedSkins="false" Skin=""

I have created a random class, for example this :
.myClass
{
     background-color:blue;
}

In my code-behind, i set the CssClass property :
GCG_headerGroup = new GridColumnGroup();
GCG_headerGroup.HeaderStyle.CssClass = "myClass";

Then, i add my columngroup to my grid, etc. But this is not working.
When i have a look on the HTML generated code, i see that there is still "rgMultiHeaderRow" class, and "rgHeader". My CssCLass aren't there. I don't want to set a unique css class for headers but severaln, and have it inside my css files in order to modify easily what i want.

Please see in attachement my grid with default skin : defaultskin.jpg
And what i want to achieve : grid.jpg. I made this one with attribute in ASPX page, but i want to build css inside css files.

Is it possible to do that ? Why is it so hard to set css classes ? Am i doing this wrong ?
Maxime
Top achievements
Rank 1
 answered on 13 Jul 2012
5 answers
193 views

Inside radpageview
asp:FileUpload error come on button click in
fileup.postedfile is come null

Thanks Advance
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 13 Jul 2012
2 answers
121 views


See the Attachment ,

string RMS = FileUpL.UploadedFiles[0].GetName();      this's the way i'm getting the file name in server side ,
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Error Come Like That

Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 13 Jul 2012
1 answer
79 views
Hi,
I have a grid that is bound to a data source:

<telerik:RadGrid ID="gvVerwendungen" runat="server" PageSize="15" 
                         AllowPaging="True" Width="100%"  AutoGenerateColumns="false"
                         OnNeedDataSource="gvVerwendungen_NeedDataSource" ShowStatusBar="true">
  
            <MasterTableView Width="100%" Summary="RadGrid table"  ShowFooter="true">
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                        <ItemTemplate>
                            <asp:CheckBox ID="Auswahl" runat="server" AutoPostBack="True" OnCheckedChanged="Auswahl_ToggleRowSelection" />
                        </ItemTemplate>
                        <HeaderTemplate>
                            <asp:CheckBox ID="headerChkbox" runat="server" AutoPostBack="True" />
                        </HeaderTemplate>
                    </telerik:GridTemplateColumn>
  
                    <telerik:GridBoundColumn FooterText="Dienststelle" UniqueName="Dienststelle" 
                                             HeaderText="Dienststelle" DataField="Dienststelle">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FooterText="Beginn" UniqueName="Beginn" 
                                             HeaderText="Beginn" DataField="Beginn"
                                             DataType="System.DateTime" DataFormatString="{0:dd/MM/yy}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FooterText="Sachbezug" HeaderText="Sachbezug"
                                             DataField="Bezug">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn FooterText="Status" UniqueName="VerwendungsStatus"
                                             DataField="VerwendungsStatus">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
  
            <PagerStyle Mode="NextPrevAndNumeric" />
  
        </telerik:RadGrid>

In the code behind there is the event code:

protected void gvVerwendungen_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
               if (mitarbeiter != null && mitarbeiter.VerwendungseintraegeAktuelleUndGeplante != null)
                {
                    this.gvVerwendungen.DataSource = mitarbeiter.VerwendungseintraegeAktuelleUndGeplante;
                }
                             
        }

This works fine.
For the selection of the row I want to use a checkbox:
protected void Auswahl_ToggleRowSelection(object sender, EventArgs e)
       {
           ((sender as CheckBox).NamingContainer as GridItem).Selected = (sender as CheckBox).Checked;
           bool checkHeader = true;
             
             
           foreach (GridDataItem dataItem in gvVerwendungen.MasterTableView.Items)
           {
               // Auswahl is the name of the ckeckbox-column
               if (!(dataItem.FindControl("Auswahl") as CheckBox).Checked)
               {
                   checkHeader = false;
                     
                   break;
               }
           }
           GridHeaderItem headerItem = gvVerwendungen.MasterTableView.GetItems(GridItemType.Header)[0] as GridHeaderItem;
           (headerItem.FindControl("headerChkbox") as CheckBox).Checked = checkHeader;
           if (gvVerwendungen.SelectedItems.Count > 0)
           {
               // gvVerwendungen is the name of the grid
               GridDataItem dataItem = gvVerwendungen.SelectedItems[0] as GridDataItem;
               // Question: How can I get the bound custom object?
               // Problem: The custom object has no ID
           }
           else
           {
               tbStellenzeichen.Text = "Nothing";
           }
       }

My Question: How can I get the custom object instance of the current row?

For a hint, I would be grateful
Kind regards.
Christian
Andrey
Telerik team
 answered on 13 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?