Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
134 views
hello

I am using telerik Reportviewer in webparts (sharepoint 2013)

when i run report it gives following error
403 FORBIDDEN

when report parameters are less it works fine  ,but  if parameters are more  then it gives above error.

below attached. is the  error image

thanks
waiting for reply.
kishor

Stef
Telerik team
 answered on 30 Sep 2014
5 answers
150 views
Hello geeks,

In our project we're using telerik's Radtreelist which contains the fields. And this treelist is postback everytime after clicking clicking on + symbol also on clicking of book button which is available after clicking on + symbol. Please help. I'm posting my code as well.

This is .aspx code.

<telerik:RadTreeList ID="rtlAvailableSlots" runat="server" OnNeedDataSource="rtlAvailableSlots_NeedDataSource"
        ParentDataKeyNames="ParentID" DataKeyNames="ID" PageSize="10" AutoGenerateColumns="false"
        AllowSorting="true" AllowPaging="false" HeaderStyle-Height="0%" Height="100%"
        OnItemCommand="rtlAvailableSlots_ItemCommand" OnItemCreated="rtlAvailableSlots_ItemCreated">
        <Columns>
            <telerik:TreeListBoundColumn DataField="ID" UniqueName="ID" Visible="false" />
            <telerik:TreeListBoundColumn DataField="Name" UniqueName="Name" />
            <telerik:TreeListBoundColumn DataField="AdviserName" UniqueName="AdviserName" />
            <telerik:TreeListBoundColumn DataField="BookDetail" UniqueName="BookDetail" Visible="false" />
             <telerik:TreeListBoundColumn DataField="Appt_Mode" UniqueName="Appt_Mode" Visible="false" />
            <telerik:TreeListButtonColumn ButtonType="LinkButton" DataTextField="BookLinkText"
                CommandName="BookAppt">
            </telerik:TreeListButtonColumn>
            <telerik:TreeListImageColumn UniqueName="VideoImageColumn" DataImageUrlFields="VideoImageText"
                DataImageUrlFormatString="~/Graphics/Video16.png" ItemStyle-HorizontalAlign="Center">
            </telerik:TreeListImageColumn>
            <telerik:TreeListImageColumn UniqueName="ImagesColumn" DataImageUrlFields="PreferImageText"
                DataImageUrlFormatString="~/Graphics/{0}.png" ItemStyle-HorizontalAlign="Center"
                DataAlternateTextField="PreferToolTip">
            </telerik:TreeListImageColumn>
            <telerik:TreeListBoundColumn DataField="FacilityId" UniqueName="FacilityId" Visible="false" />
            <telerik:TreeListBoundColumn DataField="FacilityResource" UniqueName="FacilityResource" Visible="false" />
            <telerik:TreeListBoundColumn DataField="AdviserResource" UniqueName="AdviserResource" Visible="false" />
            <telerik:TreeListBoundColumn DataField="TravelDetail" UniqueName="TravelDetail" Visible="false" />
        </Columns>
        <ClientSettings>
            <ClientEvents OnKeyPress="showSpinner" />
        </ClientSettings>
    </telerik:RadTreeList>




This is .cs.

 
                if (!IsPostBack)
                {
                    rtlAvailableSlots.ExpandedIndexes.Add(new TreeListHierarchyIndex { LevelIndex = 0, NestedLevel = 0 });
                    rtlAvailableSlots.ExpandedIndexes.Add(new TreeListHierarchyIndex { LevelIndex = 1, NestedLevel = 0 });
                    rtlAvailableSlots.ExpandedIndexes.Add(new TreeListHierarchyIndex { LevelIndex = 2, NestedLevel = 0 });
                }
Angel Petrov
Telerik team
 answered on 30 Sep 2014
1 answer
808 views
Hi ,
i want to implement client side pagination in radgrid how i can achieve it ?

below is the code for binding the data from client side , here only i am getting full set of data ,so next time when i click on pagenumber i don't want to do post back and i don't want to hit Database when i click on page number and also no postback. 

can any one send me sample code how to implement client side pagination.

 var serviceURL = 'http://localhost:1100/Invoice/InvoiceService.svc';
               // debugger;
                var jsonData;
                $.get(serviceURL, null, function (jsonData) {
                    try {
                        if (jsonData.length > 0) {
                         //   alert(jsonData);
                         //   debugger;
                            var grid = $find("<%=rgSiteorAcctDtls.ClientID%>");
                            var MasterTable = grid.get_masterTableView();
                             MasterTable.set_dataSource(jsonData);
                          MasterTable.dataBind();
                        }
                    }
                    catch (e)
                    { alert(e.message); }

                }
                ); 


.aspx code


<telerik:RadGrid ID="rgSiteorAcctDtls" ShowStatusBar="true" runat="server" AutoGenerateColumns="false" Skin="DV"
                            EnableEmbeddedSkins="false" GridLines="None" AllowMultiRowSelection="true"
                            BorderStyle="None" PageSize="5" AllowPaging="true" >
<MasterTableView>
   <Columns>
<telerik:GridBoundColumn DataField="VendorName"  HeaderText="Vendor" />
 <telerik:GridBoundColumn DataField="SiteName" HeaderText="Site "  />
some other columns...
 >

i tried below url but no help

http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/client-side/programmatic/defaultcs.aspx







Angel Petrov
Telerik team
 answered on 30 Sep 2014
6 answers
920 views
Hi there,

The question is similar to Radgrid export after filtering, and I follow the solution.

This

foreach (GridFilteringItem filter in radGrid.MasterTableView.GetItems(GridItemType.FilteringItem))
{
      filter.Visible = false;
}
radGrid.MasterTableView.ExportToExcel();

and this

radGrid.ExportSettings.IgnorePaging = true;
radGrid.ExportSettings.ExportOnlyData = true;
radGrid.ExportSettings.FileName = "MyFile_" + DateTime.Now.ToShortDateString();
radGrid.MasterTableView.ExportToExcel();

It doesn't work.

I still get the whole data.

Is there any property I miss?

This is my define in .aspx

<telerik:RadGrid ID="RadGrid1" runat="server" ActiveItemStyle-Wrap="false" AllowFilteringByColumn="False" AllowPaging="False" AllowSorting="True" AlternatingItemStyle-Wrap="false" AutoGenerateColumns="False"
    CellSpacing="0" CommandItemStyle-Wrap="false" DataSourceID="SqlDataSource1" EnableLinqExpressions="False" GridLines="None" HeaderStyle-Wrap="false" Height="600" ItemStyle-Wrap="false" OnPreRender="RadGrid1_PreRender"
    PagerStyle-AlwaysVisible="true" PageSize="20" SelectedItemStyle-Wrap="false" ShowGroupPanel="True" Skin="Web20" Width="1200" >
    <grouppanel text="<%$ Resources:MessageResource, MSG_RECMain_Group_Drop %>"></grouppanel>
    <groupingsettings casesensitive="false" showungroupbutton="true" />
    <clientsettings allowdragtogroup="true" enablepostbackonrowclick="false" enablerowhoverstyle="true">
        <selecting allowrowselect="true" enabledragtoselectrows="false" />
        <clientevents ongridcreated="RadGrid1_GridCreated" onrowselected="RowSelected"></clientevents>
        <resizing allowcolumnresize="True" allowresizetofit="true" allowrowresize="false" clipcellcontentonresize="true" enablerealtimeresize="false" resizegridoncolumnresize="false" />
        <scrolling allowscroll="true" usestaticheaders="true" />
    </clientsettings>
    <mastertableview allowmulticolumnsorting="False" datakeynames="PCID" datasourceid="SqlDataSource1">
        <rowindicatorcolumn visible="False"></rowindicatorcolumn>
        <expandcollapsecolumn created="True"></expandcollapsecolumn>
        <CommandItemSettings ShowExportToExcelButton="true" />
        <Columns></Columns>
    </mastertableview>
</telerik:RadGrid>
skywillnosky
Top achievements
Rank 1
 answered on 30 Sep 2014
8 answers
191 views

    Limiting the dropdown height in certain circumstances using the DropDownHeight property is fine, but why does the autocomplete dropdown not behave the same way as all the other dropdowns in your control suite in that a scrollbar will appear if the dropdown is too large for the vertical space available?
Ivan Zhekov
Telerik team
 answered on 29 Sep 2014
6 answers
191 views
My tabstrip doesn't fit into space allowed. I would like to print my tab text in two line to make tabs shorter. Intuitive solution to decrease width and increase height doesn't seem to work

 <telerik:RadTabStrip runat="server" ID="RadTabStrip1"
                        Orientation="HorizontalTop"  Align="Center"  
                        style="width:100%; margin-top:10px;"
                        SelectedIndex="0" MultiPageID="rmpValueAdded"             
                        Skin="Default">
                        <Tabs>
                            <telerik:RadTab Text="Total Value Added" Width="100px" Height="50px"/>
                            <telerik:RadTab Text="Employee Compensation"/>
                            <telerik:RadTab Text="Proprietor Income"/>
                            <telerik:RadTab Text="Other Property Type Income"/>
                            <telerik:RadTab Text="Tax on Production and Imports"/>
                        </Tabs>
</telerik:RadTabStrip>

Please help
David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 29 Sep 2014
1 answer
192 views
Hi All,

My question for client side code only using JavaScript.
I have a RadDropDownTree in my Form. In that DropDown I have some some data.
Suppose.
Central
    Middle Central
            Chicago
    Texoma
..
.
.
above mention is same data.

Now What I want is when User Select Chicago then Select text in client area of that dropdown should be anything like 'ABCD' or anything. I just want to set the
Selected text of that DropDownTree. I tried below mention code but is not working, In my RadDropDownTree, it still showing emptymessage.

var combo = $find("<%= RadDropDownLocations.ClientID %>");
combo._selectedText = "Davolio" + ";" + "Leverling";

Can someone guide me how can I set the text in DropDownTree


Vijay
Top achievements
Rank 1
 answered on 29 Sep 2014
1 answer
93 views
Hi there:

Im currently using the RadNumericTextBox to let users enter a value that ranges from 5000, to 0,0001. 
Im using the NumericTextBox since it does not allow charecters etc, and i like that.

My issue is when a user enters 0,0001 the box formats it to: 0,00 .

And when the user inputs 5000 it formats it to 5.000,00.

I want the user input to be true and not automaticly alter their input.

In the event that my application needs to accept 12 digit whole IDs, i want the textbox to just have that (e.g 123456789876).
Not have it changed to: 123.456.789.876,00

If i set DecimalDigits to 0 it ofcourse wont allow me to enter digits.
If i set GroupSeparator to ="" . It removes the group seperators but still adds digits to the end..

Thanks in advance.
Vasil
Telerik team
 answered on 29 Sep 2014
7 answers
217 views
I have a project (that is already well underway) that i thought could benefit from the pagelayout control. I began to rough-up a test page with the pagelayout control that i could import in my existing code into,  if the pagelayout control seemed to work well.
I encountered an issue right away. The existing page splits the whole screen into 5 columns. One for each week day. How can i divide the columns up when there are a total of 12 columns in the pagelayout that would need to divide into 5 distinct columns? I looked at a couple frameworks like Bootstrap and Gumby for solutiions to "odd number" column layouts, but most of the solutions seemed to be some pretty messy hacks. My vision would be for the days to stack upon each other on a mobile device and beside each other on ipad and above resolutioins. I have written some responsive design solutions with media queries, but their maintainability has always seemed half-baked. I was hoping for this solution to be relatively plug and play, because god knows there is enough complexity within the application itself. Adding another layer of complexity (i.e. a new framework like radpagelayout) makes no sense at this time, so i was hoping you or someone else in the community might have experience with such a modification.
Ivan Zhekov
Telerik team
 answered on 29 Sep 2014
4 answers
910 views
Hi
I am creating some charts and i have some requirement where
charts are rendered dynamically
ex: user 1 can have 3 charts, 1 line, 1 bar, 1 pie 
user2 can have 4 charts etc

also i need to provide dropdown on each chart so they can toggle back and forth so users can see same chart in pie/line/bar view etc

i was able to create charts in aspx and bind them in code behind but was looking if there is some sample available for creating charts from codebehind dynamically as some instances there could be 10 charts so i don't want to hardcode radhtml1, to 10 etc on aspx.

i need to provide drill downs also which i saw sample on telerik site which i will test and incorporate.
thanks for help

Danail Vasilev
Telerik team
 answered on 29 Sep 2014
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?