Hi all, please help with implementing below logic.
<asp:Button id="btn1" />
<asp:Panel id="pnlMain">
<asp:Button id="btn2" />
<asp:Panel id="pnlInner"> </asp:Panel>
</asp:Panel>
Ajaxified by:
RadAjaxMagager.AjaxSettings.AddAjaxSetting(btn1, pnlMain);
RadAjaxMagager.AjaxSettings.AddAjaxSetting(btn2,pnlInner);
Issue is: Then I clicking btn2, pnlMain updates too. I do not want to pnlMain to be updated on click btn2.
Is it possible? Why does it updates?
Hi,
Is there anyway Refresh TreeView from Client Side without RadAjaxManager?
Because my RadAjaxManager not working properly all the times(some times it works and some times it doesn't)
function RefreshTree(
{ var myajaxManager = $find("<%= RadAjaxManager.ClientID %>")
mya
jaxManager.ajaxRequest("client");getting error "Cannot read property 'ajaxRequest' of null"
We are having a hard time figuring out a solution to a long running issue. We are using a RadListBox to display a list of items such as names on a page. There are 2 lists where 1 is the selector list and the second is the "selected" list. When the selector list gets to contain somewhere in the range of 2,500+ names, the transfer runs unacceptably slow. We've tried to disable viewstate, but that breaks our code since we need to handle the transfer on the server side via an AJAX call. When we debug the code, it takes almost 25 seconds for the server-side CodeBehind method to execute.
Please advise on what can be done to improve performance for a RadListBox with transfer enabled that contains large lists of data.
Thank you,
Ed Sudit
<
telerik:RadGrid
ID
=
"rgvwUserList"
runat
=
"server"
AllowAutomaticDeletes
=
"True"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
AllowFilteringByColumn
=
"True"
AllowPaging
=
"True"
AllowSorting
=
"True"
AutoGenerateColumns
=
"False"
CellSpacing
=
"0"
DataSourceID
=
"sdsUserList"
EnableLinqExpressions
=
"False"
GridLines
=
"None"
PageSize
=
"20"
ShowGroupPanel
=
"True"
Width
=
"900px"
>
<
ClientSettings
AllowDragToGroup
=
"True"
/>
<
MasterTableView
AutoGenerateColumns
=
"False"
CommandItemDisplay
=
"None"
DataKeyNames
=
"StaffID"
DataSourceID
=
"sdsUserList"
EditMode
=
"EditForms"
HorizontalAlign
=
"NotSet"
Width
=
"100%"
>
<
Columns
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
HeaderText
=
"Edit"
ItemStyle-HorizontalAlign
=
"Center"
UniqueName
=
"EditCommandColumn"
>
<
ItemStyle
CssClass
=
"MyImageButton"
Wrap
=
"False"
/>
</
telerik:GridEditCommandColumn
>
<
telerik:GridTemplateColumn
AllowFiltering
=
"False"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
/>
<
HeaderTemplate
>Photo</
HeaderTemplate
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
<
ItemTemplate
>
<
asp:Image
ID
=
"imgPhoto"
runat
=
"server"
ImageUrl='<%#EVAL("PhotoPath") %>' Width="50"/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"DisplayName"
FilterControlAltText
=
"Filter DisplayName column"
HeaderText
=
"DisplayName"
ItemStyle-Width
=
"20%"
ReadOnly
=
"True"
SortExpression
=
"LastName"
UniqueName
=
"DisplayName"
/>
</
Columns
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<
div
align
=
"center"
>
<
asp:FileUpload
ID
=
"fuPhotoPath"
runat
=
"server"
SkinID
=
"FileUpload"
Width
=
"290"
/>
<
asp:Button
ID
=
"btnAddPhoto"
runat
=
"server"
CommandArgument='<%#Bind("StaffID")%>' OnCommand="UploadPhoto" SkinID="ButtonLittle" Text="Add"/>
</
div
>
</
FormTemplate
>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>
Hi,
I'm sure this is something silly on my part, but I can't spot it.
The following code works:
var x = 'text';
var y = 'Red';
var selectedColorButtonValue = String(x + y);
var selectedColorButton = toolBar.findItemByValue(selectedColorButtonValue);
Now, since the actual value of y is dynamic and only known at run time, I have this code:
var selectedColorButtonValue = getColorButtonValue(fontColor); // Returns 'Red' for this demo
selectedColorButtonValue = String('text' + selectedColorButtonValue);
var selectedColorButton = toolBar.findItemByValue(selectedColorButtonValue);
The above does NOT work. The toolbarbutton that I'm trying to find is not found!
The toolbarbutton in question is one of several items in a RadToolBarSplitButton.
I have written to the console, and the value of selectedColorButtonValue appears fine.
Can anyone spot what I'm doing wrong.
Thanks
Jim
<EditFormSettings EditFormType="Template"> |
<FormTemplate> |
<asp:Label ID="Label4" runat="server" Text='<%# Bind("id") %>'></asp:Label> |
<uc1:edit_user ID="edit_user1" runat="server" id_user='<%# Bind("id") %>' /> |
</FormTemplate> |
<EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" |
uniquename="EditCommandColumn"> |
</EditColumn> |
</EditFormSettings> |
<EditFormSettings EditFormType="WebUserControl" UserControlName="edit_user.ascx"> |