Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
481 views

Hi,
In my Pivot table i want to set the width for each column of row Filed.

I set the column width like this.

                        <telerik:PivotGridRowField DataField="Maintype"  Caption="" CellStyle-Width="60px"     >
                </telerik:PivotGridRowField>
                   <telerik:PivotGridRowField DataField="subtype"  Caption="" CellStyle-Width="60px"  >
                </telerik:PivotGridRowField               
                <telerik:PivotGridRowField DataField="Listtype"  Caption="" CellStyle-Width="110px"  >
                </telerik:PivotGridRowField>

but i found some stange result as the width for each column is in irregular form.
means first column width set to second column and last column with is not changing
Please check the attached image for details.

I dont want to use the RowHeaderCellStyle widh ,because this will set the same width for all the row field column.

I want to set the Individual column width of rowfield.



Konstantin Dikov
Telerik team
 answered on 22 Mar 2016
1 answer
195 views

Hi,

I'm interested in changing the order of the columns at runt-time for columns created in design-view. I have tried in Grid_PreRender but it doesn't work

Also, is it possible mix dynamically created columns with columns created in design?

 

Thanks,

catalin

Viktor Tachev
Telerik team
 answered on 22 Mar 2016
1 answer
145 views

Hi Telerik team,

i strucked in getting result in rad grid footer. bcoz itemdatabound firing twice in vb.net, result is getting doubled.

 

Dim total As Integer
    Protected Sub grdAddList_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles grdAddList.ItemDataBound
        Try

            If TypeOf e.Item Is GridDataItem Then
                Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
                Dim fieldValue As Integer = Integer.Parse(dataItem("Amount").Text)
                total = (total + fieldValue)
            End If

            If TypeOf e.Item Is GridFooterItem Then
                Dim footerItem As GridFooterItem = CType(e.Item, GridFooterItem)
                footerItem("Amount").Text = "Total: " + total.ToString()
            End If
          

        Catch ex As Exception
            Dim strExpMsg As String
            strExpMsg = className & "." & MethodBase.GetCurrentMethod().Name & "()" & "->" & ex.Message.ToString()
            ExceptionHandler(strExpMsg, ex, Me.strUserName)
        End Try
    End Sub

 

Thanks,

Lokesh

 

Viktor Tachev
Telerik team
 answered on 22 Mar 2016
4 answers
424 views
Hey!

I have a GridTemplateColumn where I define a TextBox and a Button in the EditItemTemplate property. How is it possible to fire the onClick event of the button.

I have tried the following:
<asp:ImageButton ID="Button" runat="server" ImageUrl="~/Resources/key.png" OnClick="Button_Click" />

... but this doesn't work I always get the following compilation error "...does not contain a definition for 'Button_Click' and no extension method ... (are you missing a using directive or an assembly reference?)".

I don't know what I made wrong - can anybody help me?

Kostadin
Telerik team
 answered on 22 Mar 2016
5 answers
388 views

Hi there;

Two questions:

1.  I'm currently rendering a radar chart inside a DIV, which has text-align set to center.  The chart continually renders on the left side of the DIV, though.  Is there a trick I'm missing?

2.  Some of the x axis labels are truncated.  Is there a way to prevent this?

Thanks,

Jason

<div class="ChartContainer">
<telerik:RadHtmlChart ID="radarRCM" runat="server" Width="400px" >
    <Legend>
        <Appearance Visible="false"></Appearance>
    </Legend>
    <PlotArea>
        <Series>
            <telerik:RadarLineSeries DataFieldY="Score" Name="RadarLineSeries1">
                <LabelsAppearance Visible="false"></LabelsAppearance>
            </telerik:RadarLineSeries>
        </Series>
        <XAxis DataLabelsField="Discipline" >
        </XAxis>
    </PlotArea>
 
    <Zoom Enabled="False"></Zoom>
</telerik:RadHtmlChart>
</div>

Stamo Gochev
Telerik team
 answered on 22 Mar 2016
18 answers
605 views
Hi guys,

I always have compilation error about Telerik.Web.UI.dll, once in a day.
It is "Metadata file '....\Telerik.Web.UI.dll' could not be opened -- Not enough storage is available to process this command

Do you have any idea about it?

FYI: I am using trial version Q1 2010 Ajax

AGT
Bruce
Top achievements
Rank 1
 answered on 21 Mar 2016
12 answers
591 views
I need to build a file download manager that will let users select multiple files and download them all at once with no other prompts than the first to determine where on their local machine to save the files. Is it possible to do this with the FileExplorer control? If it is not possible, does anyone have any recommendations about a third-party control that would enable this functionality?
Vessy
Telerik team
 answered on 21 Mar 2016
6 answers
128 views
My requirements have changed in that I need to display calandar using scheduler with only avialable free slots. ie if 15:00 was booked it wouldnt be visible in the time slot area. I managed this fine with the rad time picker so have a time span list already working is their anyway i can use this same list to have the same affect.
Hristo Valyavicharski
Telerik team
 answered on 21 Mar 2016
4 answers
622 views

Hi,

We use a scheduler in our site which by default loads all the appointments for everyone on that given day.

We have a separate drop down which has user names. When a username is selected from the list, schedule for that user is loaded in the scheduler.

When the scheduler is empty , it loads well.

In some cases where the calendar is full with appointments, when i select a user from the drop down, I get the error given below. I get this error before it goes to  dropdown_selectedindexchange event.  Does this have anything to do with the view state? What fix is needed to get it working ?

 

'System.Web.HttpUnhandledException' was thrown. ---> System.Web.HttpException: Maximum request length exceeded.
   at System.Web.HttpRequest.GetEntireRawContent()
   at System.Web.HttpRequest.FillInFormCollection()
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

 

Thanks,

Ravi

Ivan Danchev
Telerik team
 answered on 21 Mar 2016
0 answers
131 views

Below is my code

@{Html.Telerik().Window()
    .Name("SupportDetailCommentPopup")
    .Title("Comment")
    .Content(@<text>
        <form>
            <div class="popup-validation-summary" style="display: none;">
                <ul class="popup-validation-message-list"></ul>
            </div>
            <textarea id="SupportDetailCommentText" maxlength="255" style="width: 280px; height:100px" class="t-input ignoreForUnsavedChanges"></textarea>
            <ul class="editor-fields">
                <li>
                    @Html.Label("Updated By")
                    <div id="SupportDetailCommentLastUpdatedByText"></div>
                </li>
                <li>
                    @Html.Label("Last Updated Date")
                    <div id="SupportDetailCommentLastUpdatedDateText"></div>
                </li>
            </ul>

            <input type="button" value="Save" id="FundsAvailableForMonthPopUpSave" onclick="" class="t-button button-spacing" />
            <input type="button" value="Cancel" onclick="" class="t-button button-spacing" />
        </form>
    </text>)
    .Modal(true)
    .Visible(false)
    .Draggable(true)
    .ClientEvents(e => e.OnOpen("SupportDetailCommentPopUpOpen"))
    .Width(300);
}

  $(document).on("click", ".comment-style", function (e) {
            e.preventDefault();
            PopulateSupportDetailCommentPopUp(e);
            $("#SupportDetailCommentPopup").data('tWindow').open();//getting Exception on this line
        }); 

        function PopulateSupportDetailCommentPopUp(e)
        {
            var vm={CommentText:"test",LastUpdated:"SRJ",LastUpdatedDate:"March 21, 2016"};
            
            $("#SupportDetailCommentPopup").data('viewModel', vm);
            $('#SupportDetailCommentText').val(vm.CommentText);
            $("#SupportDetailCommentLastUpdatedByText").text(vm.LastUpdatedBy);
            $("#SupportDetailCommentLastUpdatedDateText").text(vm.LastUpdatedDate);
    
        }
sushil
Top achievements
Rank 1
 asked on 21 Mar 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?